Commit a64daed7 by iwan

Discount denda Kabupaten Kuningan

1 parent 131f9a52
0.3.17 2024-09-05
-----------------
- Discount denda Kabupaten Kuningan
0.3.16 2024-09-03
-----------------
- Discount denda Kabupaten Tasikmalaya
......
......@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name = 'sismiop-models'
version = '0.3.16'
version = '0.3.17'
dependencies = [
'sqlalchemy',
'zope.sqlalchemy',
......
......@@ -10,8 +10,8 @@ from .cilegon import (
from .base import get_db_session
AKHIR_DISC = date(2023, 12, 31)
DISC_THN_PAJAK = ('2016', '2017', '2018', '2019', '2020', '2021', '2022')
AWAL_DISC = date(2024, 9, 5)
AKHIR_DISC = date(2024, 9, 30)
class Inquiry(BaseInquiry):
......@@ -44,9 +44,10 @@ class Inquiry(BaseInquiry):
else:
self.tagihan = round_up(tagihan)
def hitung_discount_denda(self):
if self.denda > 0 and self.tgl_bayar <= AKHIR_DISC and \
self.invoice.thn_pajak_sppt in DISC_THN_PAJAK:
def hitung_discount_denda(self): # Override
if self.denda < 1:
return 0
if AWAL_DISC <= self.tgl_bayar <= AKHIR_DISC:
return self.denda
return 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!