final update tunggakan invoice
This commit is contained in:
@@ -93,7 +93,7 @@ class Generateinvoice extends CI_Controller {
|
|||||||
$this->db->select_sum('total_bayar');
|
$this->db->select_sum('total_bayar');
|
||||||
$this->db->where('customer_id', $invi['customer_id']);
|
$this->db->where('customer_id', $invi['customer_id']);
|
||||||
$this->db->where('status !=', 'paid');
|
$this->db->where('status !=', 'paid');
|
||||||
$this->db->where('id !=', $invoice_id); // exclude invoice sekarang
|
$this->db->where('id <', $invoice_id); // exclude invoice sekarang
|
||||||
|
|
||||||
$row = $this->db->get('invoices')->row();
|
$row = $this->db->get('invoices')->row();
|
||||||
|
|
||||||
|
|||||||
@@ -514,7 +514,7 @@ class Invoices extends CI_Controller {
|
|||||||
$this->db->select_sum('total_bayar');
|
$this->db->select_sum('total_bayar');
|
||||||
$this->db->where('customer_id', $data->customer_id);
|
$this->db->where('customer_id', $data->customer_id);
|
||||||
$this->db->where('status !=', 'paid');
|
$this->db->where('status !=', 'paid');
|
||||||
$this->db->where('id !=', $id); // exclude invoice sekarang
|
$this->db->where('id <', $id); // exclude invoice sekarang
|
||||||
|
|
||||||
$row = $this->db->get('invoices')->row();
|
$row = $this->db->get('invoices')->row();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user