Commit cad610e1 by Owo Sugiana

Discount denda Kota Bogor

1 parent 975e873c
0.4.2 2026-08-31
----------------
- Discount denda Kota Bogor
0.4.1 2026-08-07 0.4.1 2026-08-07
---------------- ----------------
- Kota Bekasi tidak lagi ada dinamika tagihan pokok, cukup dalam discount - Kota Bekasi tidak lagi ada dinamika tagihan pokok, cukup dalam discount
......
...@@ -3,7 +3,7 @@ requires = ['setuptools >= 64'] ...@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project] [project]
name = 'sismiop-models' name = 'sismiop-models'
version = '0.4.1' version = '0.4.2'
dependencies = [ dependencies = [
'sqlalchemy', 'sqlalchemy',
'zope.sqlalchemy', 'zope.sqlalchemy',
......
...@@ -20,8 +20,8 @@ DISC_POKOK_2025 = [ ...@@ -20,8 +20,8 @@ DISC_POKOK_2025 = [
(date(2025, 4, 28), date(2025, 5, 27), 0.1), (date(2025, 4, 28), date(2025, 5, 27), 0.1),
(date(2025, 5, 28), date(2025, 6, 28), 0.05), (date(2025, 5, 28), date(2025, 6, 28), 0.05),
] ]
DISC_DENDA_AWAL = date(2026, 6, 1) DISC_DENDA_AWAL = date(2026, 9, 1)
DISC_DENDA_AKHIR = date(2026, 6, 30) DISC_DENDA_AKHIR = date(2026, 12, 31)
DISC_POKOK_AWAL = date(2026, 2, 24) DISC_POKOK_AWAL = date(2026, 2, 24)
DISC_POKOK_AKHIR = date(2026, 3, 23) DISC_POKOK_AKHIR = date(2026, 3, 23)
...@@ -128,17 +128,19 @@ class Inquiry(BaseInquiry, Common): ...@@ -128,17 +128,19 @@ class Inquiry(BaseInquiry, Common):
def hitung_discount_denda(self): def hitung_discount_denda(self):
if not (DISC_DENDA_AWAL <= self.tgl_bayar <= DISC_DENDA_AKHIR): if not (DISC_DENDA_AWAL <= self.tgl_bayar <= DISC_DENDA_AKHIR):
return return
if self.invoice.thn_pajak_sppt > '2025': if self.invoice.thn_pajak_sppt > '2026':
return return
if not self.is_e_sppt(): if not self.is_e_sppt():
print('Tidak terdaftar di tabel e_sppt') print('Tidak terdaftar di tabel e_sppt')
return return
if self.invoice.thn_pajak_sppt == '2026':
self.discount_denda = int(0.5 * self.denda)
return
if self.tahun_lunas('2026'): if self.tahun_lunas('2026'):
print(f'Tahun 2026 lunas') print(f'Tahun 2026 lunas')
else: self.discount_denda = int(0.5 * self.denda)
print(f'Tahun 2026 belum lunas')
return return
self.discount_denda = self.denda print(f'Tahun 2026 belum lunas')
def hitung_discount(self): # Override def hitung_discount(self): # Override
self.discount_pokok = self.discount_denda = 0 self.discount_pokok = self.discount_denda = 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!