fix invoice
This commit is contained in:
@@ -66,6 +66,7 @@ class Generateinvoice extends CI_Controller {
|
||||
$detail = $this->db
|
||||
->where('invoice_id', $invoice_id)
|
||||
->order_by('tanggal', 'ASC')
|
||||
->order_by('id', 'DESC')
|
||||
->get('invoice_details')
|
||||
->result_array();
|
||||
|
||||
|
||||
@@ -536,7 +536,7 @@ class Invoices extends CI_Controller {
|
||||
$this->db->join('item_barcodes', 'item_barcodes.id = invoice_details.barcode_id', 'left');
|
||||
$this->db->where('invoice_details.invoice_id', $id);
|
||||
$this->db->order_by('tanggal','ASC');
|
||||
$this->db->order_by('id','ASC');
|
||||
$this->db->order_by('id','DESC');
|
||||
|
||||
$data = $this->db->get()->result();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user