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 - Di Kabupaten Tasik mulai 1 Juni dikenakan denda 1% per bulan.
dikenakan denda 1% per bulan.
0.4.9 2024-04-20 0.4.9 2024-04-20
---------------- ----------------
......
...@@ -6,7 +6,6 @@ from opensipkd.hitung import ( ...@@ -6,7 +6,6 @@ from opensipkd.hitung import (
hitung_denda, hitung_denda,
round_up, round_up,
) )
from opensipkd.waktu import next_month_day
from ..models.tasik_kabupaten import ( from ..models.tasik_kabupaten import (
Kecamatan, Kecamatan,
Kelurahan, Kelurahan,
...@@ -18,8 +17,6 @@ from .default import ( ...@@ -18,8 +17,6 @@ from .default import (
) )
# Dikenakan denda setelah 1 bulan dari jatuh tempo.
# Pak Yasir, 20 Mei 2026
PERSEN_DENDA = 1 PERSEN_DENDA = 1
AWAL_DENDA = date(2026, 6, 1) AWAL_DENDA = date(2026, 6, 1)
...@@ -38,8 +35,7 @@ class Inquiry(BaseInquiry): ...@@ -38,8 +35,7 @@ class Inquiry(BaseInquiry):
if tgl_bayar < AWAL_DENDA: if tgl_bayar < AWAL_DENDA:
super().hitung_denda() super().hitung_denda()
return return
jt = self.invoice.tgl_jatuh_tempo
jt = next_month_day(jt.year, jt.month, jt.day)
self.bln_tunggakan, denda = hitung_denda( 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) 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!