Commit 56b8d89b by Owo Sugiana

Bug fixed Kota Tangerang pada max denda

1 parent 2b5c6936
......@@ -116,20 +116,23 @@ class Inquiry(BaseInquiry):
tgl_bayar <= pay_skpdkb_akhir) or (
thnskp == 2021 and tglskp >= masadari_office_2020 and
tglskp <= masasd_office_2020 and usahaid == reklame_id and
kini >= pay_awal and self.tgl_bayar <= pay_akhir) or (
tgl_bayar >= pay_awal and tgl_bayar <= pay_akhir) or (
thnskp >= 2020 and tglskp >= masadari_office_sebelum_2020 and
tglskp <= masasd_office_sebelum_2020 and
usahaid == reklame_id and self.tgl_bayar >= pay_awal and
self.tgl_bayar <= pay_akhir) or (
usahaid == reklame_id and tgl_bayar >= pay_awal and
tgl_bayar <= pay_akhir) or (
masa >= masadari_self_2020 and masa <= masasd_self_2020 and
usahaid == airtanah_id and self.tgl_bayar >= pay_awal and
self.tgl_bayar <= pay_akhir):
usahaid == airtanah_id and tgl_bayar >= pay_awal and
tgl_bayar <= pay_akhir):
self.denda = round_up(self.invoice.denda)
self.bln_tunggakan = None
else:
self.bln_tunggakan, denda = self.hitung_denda_waktu()
self.denda = round_up(
self.invoice.bunga + self.invoice.denda + denda)
max_denda = round_up(0.48 * self.tagihan)
if self.denda > max_denda:
self.denda = max_denda
def hitung_denda_waktu(self):
jatuh_tempo = self.invoice.jatuh_tempo
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!