Commit bd23c557 by Owo Sugiana

Tahun Terbit 2024 ke atas dendanya 1%

1 parent 2bd65cc6
0.5 2024-01-03
--------------
- Tahun Terbit 2024 ke atas dendanya 1%
0.4.13 2023-09-05
-----------------
- Discount Kabupaten Sukabumi
......
......@@ -59,6 +59,11 @@ class BaseInquiry:
self.invoice = self.get_invoice()
if not self.invoice:
return
tgl_kohir = self.get_tgl_kohir()
if tgl_kohir:
self.tahun_terbit = tgl_kohir.year
else:
self.tahun_terbit = self.invoice.masadari.year
if not self.is_available():
self.invoice = None
......@@ -312,9 +317,12 @@ class Inquiry(BaseInquiry):
self.denda -= self.discount_denda
def hitung_denda_waktu(self):
if self.tahun_terbit > 2023:
persen_denda = 1
else:
persen_denda = self.conf['persen_denda']
self.bln_tunggakan, self.denda_waktu = hitung_denda(
self.tagihan, self.invoice.jatuhtempotgl,
self.conf['persen_denda'],
self.tagihan, self.invoice.jatuhtempotgl, persen_denda,
self.tgl_bayar.date())
def get_discount_denda(self):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!