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