final update tunggakan invoice

This commit is contained in:
2026-08-05 13:43:32 +07:00
parent 0b94af8a26
commit 80ecad47a3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ class Generateinvoice extends CI_Controller {
$this->db->select_sum('total_bayar');
$this->db->where('customer_id', $invi['customer_id']);
$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();