Commit a3a515c9 by Owo sugiana

Rumus discount Kota Banjar

1 parent f184ac80
0.1.34 2022-2-24
----------------
- Rumus discount Kota Banjar
0.1.33 2022-1-31
----------------
- Rumus discount Kota Bogor
......
# Keputusan Wali Kota Subang
# NOMOR 973/ /2022
# 1. Tanggal bayar Maret - Desember 2022
# 2. Tahun pajak hingga 2021
# 3. Discount denda 100%
from datetime import date
from .default import (
Inquiry as BaseInquiry,
Reversal,
AvailableInvoice as BaseAvailableInvoice,
)
AWAL_DISC = date(2022, 3, 1)
AKHIR_DISC = date(2022, 12, 31)
class Inquiry(BaseInquiry):
def hitung_discount(self): # Override
if self.tgl_bayar < AWAL_DISC:
return
if self.tgl_bayar > AKHIR_DISC:
return
if self.invoice.thn_pajak_sppt > '2021':
return
self.discount = self.denda
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!