Commit 10b263c4 by Owo Sugiana

Bug fixed saat bulan tunggakan nol

1 parent c76e53aa
......@@ -32,7 +32,7 @@ NOTE_TGL_BAYAR = 'Tanggal bayar {tgl} <= ' + dmy(AKHIR_TGL_BAYAR)
class Inquiry(BaseInquiry):
def hitung_denda_waktu(self): # Override
super().hitung_denda_waktu()
if self.invoice.bunga < 1:
if self.invoice.bunga < 1 or self.bln_tunggakan < 1:
return
denda_per_bln = self.denda_waktu / self.bln_tunggakan
max_denda = 24 * denda_per_bln
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!