Commit efd6a811 by Owo Sugiana

Discount Pokok hanya untuk tahun pajak 2020 pada Tangerang Selatan

1 parent f987e3fb
......@@ -14,6 +14,7 @@ from ..default import (
from .models import PembayaranSppt
TAHUN_PAJAK_DISC_POKOK = ['2020']
PERIODE_DISC_POKOK = {
2020 : {
7: 0.15,
......@@ -75,6 +76,8 @@ class Inquiry(BaseInquiry):
return 0
def hitung_discount_pokok(self):
if self.invoice.thn_pajak_sppt not in TAHUN_PAJAK_DISC_POKOK:
return 0
if self.tgl_bayar.year not in PERIODE_DISC_POKOK:
return 0
bulan_disc = PERIODE_DISC_POKOK[self.tgl_bayar.year]
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!