Commit 2037cb15 by Owo Sugiana

Kota Tangerang bug fixed denda

1 parent 56b8d89b
...@@ -143,9 +143,6 @@ class Inquiry(BaseInquiry): ...@@ -143,9 +143,6 @@ class Inquiry(BaseInquiry):
bln_tunggakan -= 1 bln_tunggakan -= 1
if bln_tunggakan < 1: if bln_tunggakan < 1:
bln_tunggakan = 0 bln_tunggakan = 0
tahun_terbit = int(self.invoice.periode[0:4])
if tahun_terbit < 2024:
persen = 2
type_ = self.get_type_name() type_ = self.get_type_name()
if type_: if type_:
type_ = type_.strip() type_ = type_.strip()
...@@ -155,6 +152,9 @@ class Inquiry(BaseInquiry): ...@@ -155,6 +152,9 @@ class Inquiry(BaseInquiry):
persen = 0.6 persen = 0.6
else: else:
persen = self.conf['persen_denda'] persen = self.conf['persen_denda']
tahun_terbit = int(self.invoice.periode[0:4])
if tahun_terbit < 2024:
persen = 2
persen = bln_tunggakan * persen persen = bln_tunggakan * persen
if persen > 48: if persen > 48:
persen = 48 persen = 48
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!