Commit da44640c by aagusti

Discount denda Kabupaten Tasikmalaya

1 parent 60bc5ae8
0.2.6 2023-06-19
----------------
- Discount Kabupaten Tasikmalaya
0.2.5 2023-06-01
----------------
- Discount Kota Sukabumi
......
......@@ -17,7 +17,8 @@ from .base import (
)
MAX_DISC_DATE = date(2021, 12, 24)
AWAL_DISC = date(2023, 6, 20)
AKHIR_DISC = date(2023, 9, 30)
class Inquiry(BaseInquiry):
......@@ -61,9 +62,9 @@ class Inquiry(BaseInquiry):
self.tagihan = round_up(tagihan)
def hitung_discount(self): # Override
if self.tgl_bayar <= MAX_DISC_DATE and \
if AWAL_DISC <= self.tgl_bayar <= AKHIR_DISC and \
self.invoice.thn_pajak_sppt >= '2014' and \
self.invoice.thn_pajak_sppt <= '2021':
self.invoice.thn_pajak_sppt <= '2022':
self.discount = self.denda
else:
self.discount = 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!