Commit 24be694c by Owo Sugiana

Tampilkan nilai dalam integer ketimbang float

1 parent ba0702b5
......@@ -19,7 +19,7 @@ class Inquiry(BaseInquiry):
def hitung_discount(self): # Override
if self.invoice.denda_status == '1':
self.discount = self.invoice.denda_pbb or 0
self.discount = int(self.invoice.denda_pbb or 0)
def before_save(self, payment): # Override
payment.denda_sppt = self.denda - self.discount
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!