Commit d1fbdec1 by Owo Sugiana

Pangandaran 2004 - 2013 discount tanpa batas waktu

1 parent a50a2292
...@@ -17,14 +17,15 @@ from .base import ( ...@@ -17,14 +17,15 @@ from .base import (
AWAL_DISC = date(2024, 1, 18) AWAL_DISC = date(2024, 1, 18)
AKHIR_DISC = date(2024, 9, 30) AKHIR_DISC = date(2024, 9, 30)
AWAL_THN = '2014'
AKHIR_THN = '2023'
class Inquiry(BaseInquiry): class Inquiry(BaseInquiry):
def hitung_discount_denda(self): def hitung_discount_denda(self):
# 2004 - 2013 tanpa batas waktu, Gilang, 18-1-2024
if '2004' <= self.invoice.thn_pajak_sppt <= '2013':
return self.denda
if AWAL_DISC <= self.tgl_bayar <= AKHIR_DISC and \ if AWAL_DISC <= self.tgl_bayar <= AKHIR_DISC and \
AWAL_THN <= self.invoice.thn_pajak_sppt <= AKHIR_THN: '2014' <= self.invoice.thn_pajak_sppt <= '2023':
return self.denda return self.denda
return 0 return 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!