Commit 866f65bc by Owo Sugiana

Perbaikan waktu denda Kabupaten Tasik

1 parent 10da3174
0.4.10 2026-06-01
0.4.10 2026-06-02
-----------------
- Di Kabupaten Tasik bila pembayaran lebih dari 1 bulan dari jatuh tempo maka
dikenakan denda 1% per bulan.
- Di Kabupaten Tasik mulai 1 Juni dikenakan denda 1% per bulan.
0.4.9 2024-04-20
----------------
......
......@@ -6,7 +6,6 @@ from opensipkd.hitung import (
hitung_denda,
round_up,
)
from opensipkd.waktu import next_month_day
from ..models.tasik_kabupaten import (
Kecamatan,
Kelurahan,
......@@ -18,8 +17,6 @@ from .default import (
)
# Dikenakan denda setelah 1 bulan dari jatuh tempo.
# Pak Yasir, 20 Mei 2026
PERSEN_DENDA = 1
AWAL_DENDA = date(2026, 6, 1)
......@@ -38,8 +35,7 @@ class Inquiry(BaseInquiry):
if tgl_bayar < AWAL_DENDA:
super().hitung_denda()
return
jt = self.invoice.tgl_jatuh_tempo
jt = next_month_day(jt.year, jt.month, jt.day)
self.bln_tunggakan, denda = hitung_denda(
self.tagihan, jt, PERSEN_DENDA, tgl_bayar)
self.tagihan, self.invoice.tgl_jatuh_tempo, PERSEN_DENDA,
tgl_bayar)
self.denda = round_up(denda)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!