Commit 9224eb4a by Owo Sugiana

Rumus discount denda Kota Bekasi

1 parent 40c8ebec
0.1.46 2022-10-29
-----------------
- Rumus discount denda Kota Bekasi
0.1.45 2022-10-9
----------------
- Rumus discount denda Kota Bogor
......
......@@ -14,8 +14,8 @@ from .binjai import (
)
AWAL_DISC = date(2022, 3, 10)
AKHIR_DISC = date(2022, 3, 31)
AWAL_DISC = date(2022, 10, 28)
AKHIR_DISC = date(2022, 11, 28)
class Inquiry(BaseInquiry):
......@@ -29,10 +29,7 @@ class Inquiry(BaseInquiry):
return
if self.invoice.faktor_pengurang_sppt != 0:
return
if self.invoice.thn_pajak_sppt == '2022':
self.discount = int(0.1 * self.tagihan)
else:
self.discount = self.denda
self.discount = self.denda
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!