Commit 45d884ac by Owo Sugiana

Tahun terbit 2024 diizinkan

1 parent 9ed5dbeb
...@@ -12,10 +12,6 @@ from ..models.banjar import ( ...@@ -12,10 +12,6 @@ from ..models.banjar import (
class Inquiry(BaseInquiry): class Inquiry(BaseInquiry):
# Cekal 2024, Pak Yasir, 3-1-2024
def is_available(self):
return super().is_available() and self.tahun_terbit < 2024
def get_invoice_model(self): # Override def get_invoice_model(self): # Override
return Invoice return Invoice
......
...@@ -89,10 +89,6 @@ NOTE_TGL_TERIMA = 'field terimatgl {tgl} >= ' + dmy(AKHIR_TERIMA) ...@@ -89,10 +89,6 @@ NOTE_TGL_TERIMA = 'field terimatgl {tgl} >= ' + dmy(AKHIR_TERIMA)
class Inquiry(BaseInquiry): class Inquiry(BaseInquiry):
invoice_id_structure = INVOICE_ID invoice_id_structure = INVOICE_ID
# Cekal 2024, Pak Yasir, 2-1-2024
def is_available(self): # Override
return super().is_available() and self.tahun_terbit < 2024
def hitung_denda(self): # Override def hitung_denda(self): # Override
bunga = self.invoice.bunga or 0 bunga = self.invoice.bunga or 0
self.denda = self.bunga = round_up(bunga) self.denda = self.bunga = round_up(bunga)
......
...@@ -17,10 +17,6 @@ INVOICE_ID = [ ...@@ -17,10 +17,6 @@ INVOICE_ID = [
class Inquiry(BaseInquiry): class Inquiry(BaseInquiry):
invoice_id_structure = INVOICE_ID invoice_id_structure = INVOICE_ID
# Cekal 2024, Iwan, 4-1-2024
def is_available(self): # Override
return super().is_available() and self.tahun_terbit < 2024
def get_kohir_model(self): # Override def get_kohir_model(self): # Override
return Kohir return Kohir
......
...@@ -22,10 +22,6 @@ AKHIR_DISC = date(2022, 3, 31) ...@@ -22,10 +22,6 @@ AKHIR_DISC = date(2022, 3, 31)
class Inquiry(BaseInquiry): class Inquiry(BaseInquiry):
invoice_id_structure = INVOICE_ID invoice_id_structure = INVOICE_ID
# Cekal 2024, Pak Yasir, 2-1-2024
def is_available(self): # Override
return super().is_available() and self.tahun_terbit < 2024
def get_discount_denda(self): # Override def get_discount_denda(self): # Override
tgl_bayar = self.tgl_bayar.date() tgl_bayar = self.tgl_bayar.date()
if tgl_bayar <= AKHIR_DISC: if tgl_bayar <= AKHIR_DISC:
......
...@@ -21,10 +21,6 @@ NOTE_TAHUN = str(AWAL_TAHUN) + ' <= field tahun {tahun} <= ' + str(AKHIR_TAHUN) ...@@ -21,10 +21,6 @@ NOTE_TAHUN = str(AWAL_TAHUN) + ' <= field tahun {tahun} <= ' + str(AKHIR_TAHUN)
class Inquiry(BaseInquiry): class Inquiry(BaseInquiry):
# Cekal 2024, Pak Yasir, 3-1-2024
def is_available(self): # Override
return super().is_available() and self.tahun_terbit < 2024
def get_discount_denda(self): # Override def get_discount_denda(self): # Override
tgl_bayar = self.tgl_bayar.date() tgl_bayar = self.tgl_bayar.date()
if tgl_bayar > AKHIR_TGL_BAYAR: if tgl_bayar > AKHIR_TGL_BAYAR:
......
...@@ -7,10 +7,6 @@ from ..models.ciamis import Kohir ...@@ -7,10 +7,6 @@ from ..models.ciamis import Kohir
class Inquiry(BaseInquiry): class Inquiry(BaseInquiry):
# Cekal 2024, Pak Yasir, 3-1-2024
def is_available(self):
return super().is_available() and self.tahun_terbit < 2024
def get_kohir_model(self): # Override def get_kohir_model(self): # Override
return Kohir return Kohir
......
...@@ -17,10 +17,6 @@ AKHIR_TGL_BAYAR = date(2021, 12, 31) ...@@ -17,10 +17,6 @@ AKHIR_TGL_BAYAR = date(2021, 12, 31)
class Inquiry(BaseInquiry): class Inquiry(BaseInquiry):
# Cekal 2024, Pak Yasir, 2-1-2024
def is_available(self): # Override
return super().is_available() and self.tahun_terbit < 2024
def get_discount_denda(self): # Override def get_discount_denda(self): # Override
tgl_bayar = self.tgl_bayar.date() tgl_bayar = self.tgl_bayar.date()
if self.invoice.tahun == 2020 and self.invoice.sptno == 6307: if self.invoice.tahun == 2020 and self.invoice.sptno == 6307:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!