Commit 7bc6de9c by Owo Sugiana
2 parents 5f7fe665 752ec25e
0.3.11 2024-07-28
-----------------
- Kabupaten Cirebon discount pokok 7,9% periode 1 Agustus - 31 Oktober 2024.
- Kota Serang discount denda 100% periode 1 Agustus - 31 Agustus 2024.
0.3.10 2024-07-07
-----------------
......
from datetime import date
from sqlalchemy import func
from opensipkd.hitung import round_up
from ..models.serang_kota import PembayaranSppt
......@@ -9,6 +10,10 @@ from .default import (
)
AWAL_DISC_DENDA = date(2024, 8, 1)
AKHIR_DISC_DENDA = date(2024, 8, 31)
class Inquiry(BaseInquiry):
def get_payment_model(self): # Override
return PembayaranSppt
......@@ -34,6 +39,11 @@ class Inquiry(BaseInquiry):
else:
self.tagihan = round_up(tagihan)
def hitung_discount(self): # Override
self.discount_pokok = self.discount_denda = 0
if AWAL_DISC_DENDA <= self.tgl_bayar <= AKHIR_DISC_DENDA:
self.discount = self.discount_denda = self.denda
class Reversal(BaseReversal):
def get_payment_model(self): # Override
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!