Commit bdf44939 by Owo Sugiana

Bila status pembayaran lunas maka total tagihan dibuat nol

1 parent 78717c0e
0.4.13 2026-09-18
-----------------
- Bila status pembayaran lunas maka total tagihan dibuat nol.
0.4.12 2026-06-21
-----------------
- Kota Cimahi tambah ORM Perolehan untuk digunakan di payment report.
......
......@@ -116,7 +116,6 @@ class Inquiry(Common):
'Jenis': self.invoice.kd_jns_op,
})
self.hitung()
self.paid = self.is_paid() or self.total < 1
def hitung(self):
self.total_bayar = self.get_payment_amount()
......@@ -129,6 +128,8 @@ class Inquiry(Common):
self.hitung_denda()
self.hitung_discount()
self.total = self.tagihan + self.denda - self.discount
if self.is_paid():
self.total = 0
def hitung_denda(self):
if self.kode in self.kode_kurang_bayar:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!