Commit 22358d3d by Owo Sugiana

Discount denda Kabupaten Lebak

1 parent 4b73490b
0.4.6 2026-10-01
----------------
- Discount denda Kabupaten Lebak
0.4.5 2026-09-30
----------------
- Discount denda Kota Cimahi diperpanjang hingga 28 Desember
......
......@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name = 'sismiop-models'
version = '0.4.5'
version = '0.4.6'
dependencies = [
'sqlalchemy',
'zope.sqlalchemy',
......
from datetime import date
from .subang import (
Inquiry as BaseInquiry,
Reversal,
......@@ -5,6 +6,10 @@ from .subang import (
)
AWAL_DISC = date(2026, 10, 1)
AKHIR_DISC = date(2026, 12, 31)
class Inquiry(BaseInquiry):
def hitung_discount_pokok(self):
'''Berita Acara Hasil Pemeriksaan dengan Wajib Pajak Nomor:
......@@ -14,9 +19,16 @@ class Inquiry(BaseInquiry):
return int(potongan)
return 0
def hitung_discount_denda(self):
if AWAL_DISC <= self.tgl_bayar <= AKHIR_DISC:
if self.invoice.thn_pajak_sppt == '2026':
return self.denda
return 0
def hitung_discount(self): # Override
self.discount = self.discount_pokok = self.hitung_discount_pokok()
self.discount_denda = 0
self.discount_pokok = self.hitung_discount_pokok()
self.discount_denda = self.hitung_discount_denda()
self.discount = self.discount_pokok + self.discount_denda
class AvailableInvoice(BaseAvailableInvoice):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!