Commit 8ce4f1ab by iWan Mustaqim

Discount denda Kabupaten Kuningan

1 parent 8be0d74a
0.6.5 2025-07-31
----------------
- Discount denda Kabupaten Kuningan
0.6.4 2025-06-02 0.6.4 2025-06-02
---------------- ----------------
- Discount denda Kota Sukabumi - Discount denda Kota Sukabumi
......
...@@ -9,14 +9,20 @@ from .subang import ( ...@@ -9,14 +9,20 @@ from .subang import (
PREFIX = '3210' PREFIX = '3210'
AWAL_DISC = date(2024, 9, 5) AWAL_DISC = date(2025, 8, 1)
AKHIR_DISC = date(2024, 9, 30) AKHIR_DISC = date(2025, 10, 31)
class Inquiry(BaseInquiry): class Inquiry(BaseInquiry):
def get_discount_denda(self): # Override def get_discount_denda(self): # Override
if AWAL_DISC <= self.tgl_bayar.date() <= AKHIR_DISC: if AWAL_DISC <= self.tgl_bayar.date() <= AKHIR_DISC:
return self.denda_pokok, self.opsen_denda tgl_kohir = self.get_tgl_kohir()
if tgl_kohir:
tahun_terbit = tgl_kohir.year
else:
tahun_terbit = self.invoice.masadari.year
if 2014 <= tahun_terbit <= 2024:
return self.denda_pokok, self.opsen_denda
return 0, 0 return 0, 0
......
...@@ -3,7 +3,7 @@ requires = ['setuptools >= 64'] ...@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project] [project]
name = 'opensipkd-pad-models' name = 'opensipkd-pad-models'
version = '0.6.4' version = '0.6.5'
dependencies = [ dependencies = [
'sqlalchemy', 'sqlalchemy',
'zope.sqlalchemy', 'zope.sqlalchemy',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!