Commit 75cb9708 by Owo Sugiana

Opsen Kabupaten Ciamis

1 parent 607ef627
from opensipkd.hitung import hitung_denda
from .banjar import ( from .banjar import (
Inquiry as BaseInquiry, Inquiry as BaseInquiry,
Reversal as BaseReversal, Reversal as BaseReversal,
...@@ -20,6 +21,12 @@ class Inquiry(BaseInquiry): ...@@ -20,6 +21,12 @@ class Inquiry(BaseInquiry):
def get_kohir_model(self): # Override def get_kohir_model(self): # Override
return Kohir return Kohir
def get_persen_denda(self): # Override
tahun_terbit = self.invoice.masadari.year
if tahun_terbit > 2023:
return 1
return 2
class Reversal(BaseReversal): class Reversal(BaseReversal):
invoice_id_structure = INVOICE_ID invoice_id_structure = INVOICE_ID
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!