Commit 843efdcf by Owo Sugiana

Bug fixed rumus Kota Bogor

1 parent c7d2f3ab
......@@ -17,6 +17,7 @@ AKHIR_DISC = date(2021, 4, 30)
# Discount pokok berdasarkan bulan
NILAI_DISC = {2: 0.15, 3: 0.1, 4: 0.05}
THN_PAJAK_DISC = '2021'
class Common(Query):
......@@ -49,6 +50,7 @@ class Inquiry(BaseInquiry, Common):
return pst and pst.no_sk and pst.status_sk_peng_pst != '2'
def hitung_discount_pokok(self):
if self.invoice.thn_pajak_sppt == THN_PAJAK_DISC:
potongan = NILAI_DISC[self.tgl_bayar.month]
self.discount_pokok = int(potongan * self.tagihan)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!