Commit 5f7fe665 by Owo Sugiana

Kabupaten Cirebon masih ada discount sebelum Agustus

1 parent 70f63f3a
......@@ -10,8 +10,17 @@ from .default import (
)
AWAL_DISC_POKOK = date(2024, 8, 1)
AKHIR_DISC_POKOK = date(2024, 10, 31)
AWAL_DISC_DENDA = date(2024, 1, 14)
AKHIR_DISC_DENDA = date(2024, 12, 31)
AWAL_DISC_POKOK_1 = date(2024, 1, 14)
AKHIR_DISC_POKOK_1 = date(2024, 3, 31)
AWAL_DISC_POKOK_2 = date(2024, 4, 1)
AKHIR_DISC_POKOK_2 = date(2024, 7, 31)
AWAL_DISC_POKOK_3 = date(2024, 8, 1)
AKHIR_DISC_POKOK_3 = date(2024, 10, 31)
class Inquiry(BaseInquiry):
......@@ -41,8 +50,21 @@ class Inquiry(BaseInquiry):
def hitung_discount(self): # Override
self.discount_pokok = self.discount_denda = 0
if self.invoice.thn_pajak_sppt == '2024':
if AWAL_DISC_POKOK <= self.tgl_bayar <= AKHIR_DISC_POKOK:
if self.invoice.thn_pajak_sppt < '2024':
if AWAL_DISC_DENDA <= self.tgl_bayar <= AKHIR_DISC_DENDA:
self.discount = self.discount_denda = self.denda
elif self.invoice.thn_pajak_sppt == '2024':
if AWAL_DISC_POKOK_1 <= self.tgl_bayar <= AKHIR_DISC_POKOK_1:
if self.invoice.pbb_yg_harus_dibayar_sppt <= 5000000:
potongan = 0.1
else:
potongan = 0.075
elif AWAL_DISC_POKOK_2 <= self.tgl_bayar <= AKHIR_DISC_POKOK_2:
if self.invoice.pbb_yg_harus_dibayar_sppt <= 5000000:
potongan = 0.05
else:
potongan = 0.025
elif AWAL_DISC_POKOK_3 <= self.tgl_bayar <= AKHIR_DISC_POKOK_3:
potongan = 0.079
else:
return
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!