Commit 628d27f8 by Owo Sugiana

Discount Kabupaten Majalengka

1 parent 6d921220
0.2.9 2023-08-08
----------------
- Discount Kabupaten Majalengka
0.2.8 2023-08-06 0.2.8 2023-08-06
---------------- ----------------
- Discount Kota Bekasi - Discount Kota Bekasi
......
...@@ -6,13 +6,18 @@ from .cilegon import ( ...@@ -6,13 +6,18 @@ from .cilegon import (
) )
AKHIR_DISC = date(2022, 12, 31) AWAL_DISC = date(2023, 8, 7)
AKHIR_DISC_2018_2022 = date(2023, 12, 31)
AKHIR_DISC_2023 = date(2023, 9, 8)
class Inquiry(BaseInquiry): class Inquiry(BaseInquiry):
def hitung_discount_denda(self): def hitung_discount_denda(self):
if self.tgl_bayar > AKHIR_DISC or \ if self.invoice.thn_pajak_sppt == '2023':
self.invoice.thn_pajak_sppt < '2012' or \ if AWAL_DISC <= self.tgl_bayar <= AKHIR_DISC_2023:
self.invoice.thn_pajak_sppt > '2022': return self.denda
return 0 if self.invoice.thn_pajak_sppt >= '2018' and \
return self.denda self.invoice.thn_pajak_sppt <= '2022':
if AWAL_DISC <= self.tgl_bayar <= AKHIR_DISC_2018_2022:
return self.denda
return 0
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!