Commit 508d4d3a by Owo Sugiana

Kota Tangerang berlaku denda surut yaitu seluruh tahun pajak sebesar 1%

1 parent 8f625f70
0.3.2 2024-06-12
0.3.3 2024-01-30
----------------
- Kota Tangerang berlaku denda surut yaitu seluruh tahun pajak sebesar 1%
0.3.2 2024-01-12
----------------
- Kota Bekasi menerapkan persen denda ganda untuk jatuh tempo sebelum 1 Januari 2024
......
from datetime import date
from .tangsel import (
Inquiry as BaseInquiry,
Reversal,
AvailableInvoice as BaseAvailableInvoice,
AvailableInvoiceTangsel as BaseAvailableInvoiceTangsel,
)
from ..models.tangsel import PembayaranSppt
AWAL_DISC = date(2023, 8, 1)
AKHIR_DISC = date(2023, 8, 31)
class Inquiry(BaseInquiry):
def get_payment_model(self): # Override
return PembayaranSppt
def hitung_discount(self): # Override
self.denda_sblm_diskon = self.denda
self.discount_denda = self.discount_pokok = 0
if self.tgl_bayar > AKHIR_DISC:
return
if self.tgl_bayar < AWAL_DISC:
return
self.discount_pokok = self.hitung_discount_pokok()
self.discount_denda = self.hitung_discount_denda()
self.discount = self.discount_pokok + self.discount_denda
def hitung_discount_pokok(self):
if self.invoice.thn_pajak_sppt <= '2014':
return int(0.5 * self.tagihan)
return 0
def hitung_discount_denda(self):
if self.invoice.thn_pajak_sppt <= '2022':
return self.denda
return 0
self.discount = self.discount_pokok = self.discount_denda = 0
class AvailableInvoice(BaseAvailableInvoice):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!