Commit d9b16af5 by Owo Sugiana

Discount Kota Tangerang

1 parent da44640c
0.2.7 2023-07-31
----------------
- Discount Kota Tangerang
0.2.6 2023-06-19 0.2.6 2023-06-19
---------------- ----------------
- Discount Kabupaten Tasikmalaya - Discount Kabupaten Tasikmalaya
......
...@@ -8,8 +8,8 @@ from .tangsel import ( ...@@ -8,8 +8,8 @@ from .tangsel import (
from ..models.tangsel import PembayaranSppt from ..models.tangsel import PembayaranSppt
AWAL_DISC = date(2023, 1, 16) AWAL_DISC = date(2023, 8, 1)
AKHIR_DISC = date(2023, 3, 31) AKHIR_DISC = date(2023, 8, 31)
class Inquiry(BaseInquiry): class Inquiry(BaseInquiry):
...@@ -28,24 +28,14 @@ class Inquiry(BaseInquiry): ...@@ -28,24 +28,14 @@ class Inquiry(BaseInquiry):
self.discount = self.discount_pokok + self.discount_denda self.discount = self.discount_pokok + self.discount_denda
def hitung_discount_pokok(self): def hitung_discount_pokok(self):
potongan = 0 if self.invoice.thn_pajak_sppt <= '2014':
if '1994' <= self.invoice.thn_pajak_sppt <= '2014': return int(0.5 * self.tagihan)
potongan = 0.7
elif self.invoice.thn_pajak_sppt == '2023':
if 100000 <= self.tagihan <= 500000:
potongan = 0.1
elif 500000 < self.tagihan <= 2000000:
potongan = 0.06
elif 2000000 < self.tagihan <= 5000000:
potongan = 0.04
elif self.tagihan > 5000000:
potongan = 0.03
if potongan:
return int(potongan * self.tagihan)
return 0 return 0
def hitung_discount_denda(self): def hitung_discount_denda(self):
return self.denda if self.invoice.thn_pajak_sppt <= '2022':
return self.denda
return 0
class AvailableInvoice(BaseAvailableInvoice): class AvailableInvoice(BaseAvailableInvoice):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!