Commit 4b73490b by Owo Sugiana

Discount denda Kota Cimahi diperpanjang hingga 28 Desember

1 parent 408c0a88
0.4.5 2026-09-30
----------------
- Discount denda Kota Cimahi diperpanjang hingga 28 Desember
0.4.4 2026-09-02 0.4.4 2026-09-02
---------------- ----------------
- Perubahan yang mendapat discount pokok di Kota Cimahi - Perubahan yang mendapat discount pokok di Kota Cimahi
......
...@@ -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.4' version = '0.4.5'
dependencies = [ dependencies = [
'sqlalchemy', 'sqlalchemy',
'zope.sqlalchemy', 'zope.sqlalchemy',
......
...@@ -7,7 +7,9 @@ from .sumedang import ( ...@@ -7,7 +7,9 @@ from .sumedang import (
AWAL_DISC_DENDA = date(2026, 8, 1) AWAL_DISC_DENDA = date(2026, 8, 1)
AKHIR_DISC_DENDA = date(2026, 9, 30) AKHIR_DISC_DENDA = date(2026, 12, 28)
AWAL_DISC_DENDA_2026 = date(2026, 10, 1)
AWAL_DISC_POKOK = date(2026, 9, 1) AWAL_DISC_POKOK = date(2026, 9, 1)
AKHIR_DISC_POKOK = date(2026, 9, 30) AKHIR_DISC_POKOK = date(2026, 9, 30)
...@@ -29,8 +31,11 @@ class Inquiry(BaseInquiry): ...@@ -29,8 +31,11 @@ class Inquiry(BaseInquiry):
self.discount_pokok = int(0.05 * self.tagihan) self.discount_pokok = int(0.05 * self.tagihan)
def hitung_discount_denda(self): def hitung_discount_denda(self):
if AWAL_DISC_DENDA <= self.tgl_bayar <= AKHIR_DISC_DENDA: if '2013' <= self.invoice.thn_pajak_sppt <= '2025':
if '2013' <= self.invoice.thn_pajak_sppt <= '2025': if AWAL_DISC_DENDA <= self.tgl_bayar <= AKHIR_DISC_DENDA:
self.discount_denda = self.denda
elif self.invoice.thn_pajak_sppt == '2026':
if AWAL_DISC_DENDA_2026 <= self.tgl_bayar <= AKHIR_DISC_DENDA:
self.discount_denda = self.denda self.discount_denda = self.denda
def before_save(self, pay): # Override def before_save(self, pay): # Override
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!