Commit 4801e774 by Owo Sugiana

Maksimum denda 0,48 dari tagihan pokok hanya untuk denda waktu, bunga tidak disertakan

1 parent a48e6371
0.3.2 2021-04-06
----------------
- Maksimum denda 0,48 dari tagihan pokok hanya untuk denda waktu.
0.3.1 2021-03-17 0.3.1 2021-03-17
---------------- ----------------
- Bila dokumen berjenis STPD maka tidak perlu lagi menghitung denda. - Bila dokumen berjenis STPD maka tidak perlu lagi menghitung denda.
......
...@@ -43,10 +43,6 @@ INVOICE_ID = [ ...@@ -43,10 +43,6 @@ INVOICE_ID = [
] ]
MAX_PORSI_DENDA = 0.48
NOTE_MAX_DENDA = 'maksimum denda waktu = 0,48 x tagihan pokok {pokok} = {maks}'
class BaseInquiry: class BaseInquiry:
invoice_id_structure = INVOICE_ID invoice_id_structure = INVOICE_ID
...@@ -296,12 +292,6 @@ class Inquiry(BaseInquiry): ...@@ -296,12 +292,6 @@ class Inquiry(BaseInquiry):
self.tgl_bayar.date()) self.tgl_bayar.date())
self.denda = self.denda_waktu + self.invoice.bunga self.denda = self.denda_waktu + self.invoice.bunga
self.denda = round_up(self.denda) self.denda = round_up(self.denda)
max_denda = MAX_PORSI_DENDA * self.tagihan
max_denda = round_up(max_denda)
if self.denda > max_denda:
self.denda = max_denda
s = NOTE_MAX_DENDA.format(pokok=self.tagihan, maks=max_denda)
self.notes.append(s)
self.discount_denda = self.get_discount_denda() self.discount_denda = self.get_discount_denda()
self.denda -= self.discount_denda self.denda -= self.discount_denda
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!