Commit e4f0d1ae by Owo Sugiana

Tambah Kota Bogor

1 parent a67bc010
0.5.4 2024-02-15
----------------
- Tambah Kota Bogor
0.5.3 2024-02-05
----------------
- Kabupaten Cirebon menggunakan PAD versi 2
......
from .tangerang_kab import (
Inquiry as BaseInquiry,
Reversal,
AvailableInvoice as BaseAvailableInvoice,
)
from opensipkd.hitung import hitung_denda
class Inquiry(BaseInquiry):
def hitung_denda_waktu(self): # Override
tgl_kohir = self.get_tgl_kohir()
if tgl_kohir:
tahun_terbit = tgl_kohir.year
else:
tahun_terbit = self.invoice.masadari.year
if tahun_terbit > 2023:
persen_denda = 1
else:
persen_denda = self.conf['persen_denda']
self.bln_tunggakan, self.denda_waktu = hitung_denda(
self.tagihan, self.invoice.jatuhtempotgl, persen_denda,
self.tgl_bayar.date())
def get_discount_denda(self): # Override
return 0
class AvailableInvoice(BaseAvailableInvoice):
def get_inquiry_class(self): # Override
return Inquiry
......@@ -14,7 +14,7 @@ from ..models.tangerang_kab import (
)
from .default import (
Inquiry as BaseInquiry,
Reversal,
Reversal as BaseReversal,
AvailableInvoice as BaseAvailableInvoice,
)
......@@ -86,6 +86,11 @@ class Inquiry(BaseInquiry):
return Payment
class Reversal(BaseReversal):
def get_payment_model(self): # Override
return Payment
class AvailableInvoice(BaseAvailableInvoice):
def get_inquiry_class(self): # Override
return Inquiry
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!