Commit ca4a998b by Owo Sugiana

Bug fixed rumus discount denda

1 parent 510885b7
...@@ -89,9 +89,8 @@ class Inquiry(BaseInquiry): ...@@ -89,9 +89,8 @@ class Inquiry(BaseInquiry):
self.discount_pokok = int(self.discount_pokok) self.discount_pokok = int(self.discount_pokok)
def hitung_discount_denda(self): def hitung_discount_denda(self):
if self.invoice.thn_pajak_sppt <= '2024': if AWAL_DISC_DENDA <= self.tgl_bayar <= AKHIR_DISC_DENDA:
if AWAL_DISC_DENDA <= self.tgl_bayar <= AKHIR_DISC_DENDA: self.discount_denda = self.denda
self.discount_denda = self.denda
def hitung_discount(self): # Override def hitung_discount(self): # Override
self.discount_denda = self.discount_pokok = 0 self.discount_denda = self.discount_pokok = 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!