Commit 022d498e by Owo Sugiana

Kota Tangerang discount pokok & denda periode Agustus 2024

1 parent 7bc6de9c
0.3.12 2024-07-30
-----------------
- Kota Tangerang discount pokok 25% untuk 1994 - 2014, discount denda 100%
untuk 1994 - 2023, periode 1 - 31 Agustus 2024.
0.3.11 2024-07-28
-----------------
- Kabupaten Cirebon discount pokok 7,9% periode 1 Agustus - 31 Oktober 2024.
......
......@@ -14,15 +14,10 @@ from .tangsel import (
)
AWAL_DISC = date(2024, 2, 26)
AKHIR_DISC = date(2024, 3, 31)
TAHUN_PAJAK_DISC_POKOK = '2024'
BUKU_DISC_POKOK = [
(100000, 0.2),
(500000, 0.1),
(2000000, 0.06),
(5000000, 0.04),
(None, 0.03)]
AWAL_DISC = date(2024, 8, 1)
AKHIR_DISC = date(2024, 8, 31)
TAHUN_PAJAK_DISC_POKOK = [str(x) for x in range(1994, 2014+1)]
TAHUN_PAJAK_DISC_DENDA = [str(x) for x in range(1994, 2023+1)]
def hitung_denda(tagihan, jatuh_tempo, tgl_hitung):
......@@ -68,19 +63,12 @@ class Inquiry(BaseInquiry):
self.discount = self.discount_pokok + self.discount_denda
def hitung_discount_pokok(self):
if self.invoice.thn_pajak_sppt <= '2014':
return int(0.4 * self.tagihan)
if self.invoice.thn_pajak_sppt != TAHUN_PAJAK_DISC_POKOK:
if self.invoice.thn_pajak_sppt in TAHUN_PAJAK_DISC_POKOK:
return int(0.25 * self.tagihan)
return 0
for max_tagihan, disc in BUKU_DISC_POKOK:
if max_tagihan is None:
break
if self.invoice.pbb_yg_harus_dibayar_sppt <= max_tagihan:
break
return int(disc * self.tagihan)
def hitung_discount_denda(self):
if self.invoice.thn_pajak_sppt <= '2023':
if self.invoice.thn_pajak_sppt in TAHUN_PAJAK_DISC_DENDA:
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!