Commit 68206f12 by Owo Sugiana

Nomor bayar Kabupaten Magelang berawalan 08

1 parent 868ecd9a
......@@ -14,11 +14,20 @@ from ..models.tangerang_kab import (
)
PREFIX = '08'
INVOICE_ID = [
['Prefix', 2, 'N'],
['Tahun', 4, 'N'],
['SptNo', 6, 'N'],
]
AWAL_MASA_DENDA_1_PERSEN = date(2024, 10, 1)
AWAL_BAYAR_DENDA_1_PERSEN = date(2025, 2, 1)
class Inquiry(BaseInquiry):
invoice_id_structure = INVOICE_ID
def hitung_denda_waktu(self): # Override
tgl_terbit = self.get_jatuh_tempo()
if tgl_terbit >= AWAL_MASA_DENDA_1_PERSEN and \
......@@ -38,6 +47,8 @@ class Inquiry(BaseInquiry):
class Reversal(BaseReversal):
invoice_id_structure = INVOICE_ID
def get_kohir_model(self): # Override
return Kohir
......@@ -46,5 +57,12 @@ class Reversal(BaseReversal):
class AvailableInvoice(BaseAvailableInvoice):
invoice_id_structure = INVOICE_ID
def get_inquiry_class(self): # Override
return Inquiry
def get_invoice_id(self, row): # Override
invoice_id = super().get_invoice_id(row)
invoice_id['Prefix'] = PREFIX
return invoice_id
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!