perbaikan di invoices
This commit is contained in:
@@ -1193,7 +1193,7 @@ class Invoices extends CI_Controller {
|
|||||||
public function get_accounts_assets()
|
public function get_accounts_assets()
|
||||||
{
|
{
|
||||||
$data = $this->db
|
$data = $this->db
|
||||||
->where_in('kode_akun', [101,102,207,201,202,203,204,205,209])
|
->where_in('tipe', ['asset','liability'])
|
||||||
->order_by('kode_akun', 'ASC')
|
->order_by('kode_akun', 'ASC')
|
||||||
->get('accounts')
|
->get('accounts')
|
||||||
->result();
|
->result();
|
||||||
|
|||||||
@@ -420,7 +420,7 @@ class Items extends CI_Controller {
|
|||||||
->or_like('i.nama_barang', $barcode, 'both')
|
->or_like('i.nama_barang', $barcode, 'both')
|
||||||
->or_like('ib.serial_number', $barcode, 'both')
|
->or_like('ib.serial_number', $barcode, 'both')
|
||||||
->group_end()
|
->group_end()
|
||||||
->limit(15)
|
// ->limit(15)
|
||||||
->get()
|
->get()
|
||||||
->result();
|
->result();
|
||||||
|
|
||||||
@@ -969,6 +969,8 @@ class Items extends CI_Controller {
|
|||||||
|
|
||||||
// hapus item
|
// hapus item
|
||||||
$this->db->delete('stock_logs',['item_id'=>$id]);
|
$this->db->delete('stock_logs',['item_id'=>$id]);
|
||||||
|
$this->db->delete('item_movements',['item_id'=>$id]);
|
||||||
|
$this->db->delete('item_barcodes',['item_id'=>$id]);
|
||||||
$this->db->delete('items',['id'=>$id]);
|
$this->db->delete('items',['id'=>$id]);
|
||||||
|
|
||||||
$j = $this->db->get_where('journals', [
|
$j = $this->db->get_where('journals', [
|
||||||
|
|||||||
@@ -365,7 +365,7 @@ $('.btn-add-bayar').click(function(){
|
|||||||
|
|
||||||
$('#tableBayar tbody').append(`
|
$('#tableBayar tbody').append(`
|
||||||
<tr>
|
<tr>
|
||||||
<td><select class="form-control account_id">${accountOptionsAssets}</select></td>
|
<td style="width: 60%;"><select class="form-control account_id select-search">${accountOptionsAssets}</select></td>
|
||||||
<td><input type="text" class="form-control debit text-end format-rupiah"></td>
|
<td><input type="text" class="form-control debit text-end format-rupiah"></td>
|
||||||
<td><button class="btn btn-danger btn-remove">X</button></td>
|
<td><button class="btn btn-danger btn-remove">X</button></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user