Commit 90b15e71 by Owo Sugiana

Rumus discount Kota Bekasi

1 parent 7b29e332
0.3.60 2026-07-30
-----------------
- Rumus discount Kota Bekasi
0.3.59 2026-07-08
-----------------
- Bug fixed Kota Banjar saat reversal
......
......@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name = 'sismiop-models'
version = '0.3.59'
version = '0.3.60'
dependencies = [
'sqlalchemy',
'zope.sqlalchemy',
......
......@@ -25,19 +25,12 @@ from .binjai import (
)
"""
Ketentuan:
1. Tahun Pajak <= 2018 denda 2% max 24 bulan
2. 2019 <= Tahun Pajak <= 2023 denda 2% max 15 bulan
3. Tahun Pajak >= 2024 denda 1% max 24 bulan
"""
AWAL_DISC = date(2026, 2, 20)
AKHIR_DISC = date(2026, 5, 31)
AWAL_DISC = date(2026, 8, 1)
AKHIR_DISC = date(2026, 9, 9)
BUKU_DISC_POKOK = [
(100000, 0.29),
(500000, 0.1),
(100000, 0.17),
(500000, 0.08),
(2000000, 0.05),
(5000000, 0.03),
(None, 0.02)]
......@@ -47,6 +40,12 @@ TAHUN_LUNAS = [str(x) for x in range(2021, 2027)]
def hitung_denda(
tagihan: int, jatuh_tempo: date, tgl_hitung: date,
tahun: str) -> tuple:
"""
Ketentuan:
1. Tahun Pajak <= 2018 denda 2% max 24 bulan
2. 2019 <= Tahun Pajak <= 2023 denda 2% max 15 bulan
3. Tahun Pajak >= 2024 denda 1% max 24 bulan
"""
if jatuh_tempo >= tgl_hitung:
return 0, 0
if tahun <= '2018':
......@@ -120,13 +119,14 @@ class Inquiry(BaseInquiry):
lunas = False
break
if lunas:
disc = 0.87
disc = 0.81
if disc:
self.discount_pokok = disc * self.tagihan
self.discount_pokok = int(self.discount_pokok)
def hitung_discount_denda(self):
self.discount_denda = self.denda
if self.invoice.thn_pajak_sppt <= '2025':
self.discount_denda = self.denda
def hitung_discount(self): # Override
self.discount_denda = self.discount_pokok = 0
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!