Commit 37efb523 by Owo Sugiana

Kota Serang discount denda 100% periode 1 Agustus - 31 Agustus 2024

1 parent 7f4692c8
0.5.9 2024-07-28
----------------
- Kota Serang discount denda 100% periode 1 Agustus - 31 Agustus 2024.
0.5.8 2024-05-15
----------------
- Kabupaten Tangerang menerapkan persen denda ganda: jatuh tempo sebelum April
......
from datetime import date
from .tangerang_kab import (
Inquiry as BaseInquiry,
Reversal,
......@@ -6,6 +7,10 @@ from .tangerang_kab import (
from .tangsel import hitung_denda
AWAL_DISC = date(2024, 8, 1)
AKHIR_DISC = date(2024, 8, 31)
class Inquiry(BaseInquiry):
def get_discount_denda(self): # Override
return 0
......@@ -23,3 +28,8 @@ class Inquiry(BaseInquiry):
self.bln_tunggakan, self.denda_waktu = hitung_denda(
self.tagihan, self.invoice.jatuhtempotgl, persen_denda,
self.tgl_bayar.date())
def get_discount_denda(self): # Override
if AWAL_DISC <= self.tgl_bayar.date() <= AKHIR_DISC:
return self.denda
return 0
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!