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
----------------
- Discount Kota Bekasi
......
......@@ -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):
def hitung_discount_denda(self):
if self.tgl_bayar > AKHIR_DISC or \
self.invoice.thn_pajak_sppt < '2012' or \
self.invoice.thn_pajak_sppt > '2022':
return 0
return self.denda
if self.invoice.thn_pajak_sppt == '2023':
if AWAL_DISC <= self.tgl_bayar <= AKHIR_DISC_2023:
return self.denda
if self.invoice.thn_pajak_sppt >= '2018' and \
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!