Commit 56e0b94d by Owo Sugiana

Bug fixed discount 2025 Kota Bogor

1 parent d5466441
......@@ -94,10 +94,10 @@ class Inquiry(BaseInquiry, Common):
def hitung_discount_pokok(self):
if not self.is_e_sppt():
print('Belum terdaftar di ESPPT')
print('Tidak dapat discount karena belum terdaftar di ESPPT')
return
if self.is_pst():
print('Sudah dapat pengurangan pokok')
print('Tidak dapat discount karena sudah dapat pengurangan pokok')
return
disc = 0
if self.invoice.thn_pajak_sppt == '2026' and \
......@@ -108,8 +108,9 @@ class Inquiry(BaseInquiry, Common):
if self.invoice.pbb_yg_harus_dibayar_sppt <= max_tagihan:
break
elif self.invoice.thn_pajak_sppt == '2025':
for awal, akhir, disc in DISC_POKOK_2025:
for awal, akhir, disc_ in DISC_POKOK_2025:
if awal <= self.tgl_bayar <= akhir:
disc = disc_
break
if disc:
self.discount_pokok = disc * self.tagihan
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!