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
----------------
- Discount denda Kota Sukabumi
......
......@@ -9,13 +9,19 @@ from .subang import (
PREFIX = '3210'
AWAL_DISC = date(2024, 9, 5)
AKHIR_DISC = date(2024, 9, 30)
AWAL_DISC = date(2025, 8, 1)
AKHIR_DISC = date(2025, 10, 31)
class Inquiry(BaseInquiry):
def get_discount_denda(self): # Override
if AWAL_DISC <= self.tgl_bayar.date() <= AKHIR_DISC:
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
......
......@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name = 'opensipkd-pad-models'
version = '0.6.4'
version = '0.6.5'
dependencies = [
'sqlalchemy',
'zope.sqlalchemy',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!