Commit 843efdcf by Owo Sugiana

Bug fixed rumus Kota Bogor

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