Commit 2bb81b17 by Owo Sugiana

Bug fixed Kota Tangerang Selatan

1 parent 41c09004
......@@ -72,7 +72,7 @@ class Inquiry(BaseInquiry):
return 0
if self.invoice.thn_pajak_sppt <= '2014':
return 0.75
if '2015' <= self.invoice.thn_pajak_sppt <= '2023':
if self.invoice.thn_pajak_sppt <= '2024':
return 0.3
return 0
......@@ -91,6 +91,8 @@ class Inquiry(BaseInquiry):
self.discount_denda = int(disc * self.denda)
self.discount_pokok = self.hitung_discount_pokok(disc)
self.discount = self.discount_denda + self.discount_pokok
else:
self.discount_denda = self.discount_pokok = 0
def before_save(self, payment): # Override
# Sekedar catatan
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!