Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
opensipkd-pad-models
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f1560818
authored
Sep 16, 2025
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed perhitungan denda saat sudah bayar sebagian
1 parent
68206f12
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
13 additions
and
5 deletions
CHANGES.txt
opensipkd/pad/scripts/inquiry.py
opensipkd/pad/services/bogor_kota.py
opensipkd/pad/services/default.py
pyproject.toml
CHANGES.txt
View file @
f156081
0.5.22 2025-09-16
-----------------
- Bug fixed perhitungan denda saat sudah bayar sebagian
0.5.21 2025-01-22
-----------------
- Kabupaten Magelang mengenakan denda 1% mulai masa pajak Oktober 2024 tanggal
...
...
opensipkd/pad/scripts/inquiry.py
View file @
f156081
...
...
@@ -79,8 +79,9 @@ def show(inq):
show_rp
(
'Discount Denda'
,
inq
.
discount_denda
)
if
inq
.
notes
:
show_val
(
'Note'
,
inq
.
notes
)
show_rp
(
'Total Denda'
,
inq
.
denda
)
show_rp
(
'Total Bayar'
,
inq
.
total_bayar
)
show_rp
(
'Sisa Tagihan'
,
inq
.
sisa_tagihan
)
show_rp
(
'Total Denda'
,
inq
.
denda
)
show_rp
(
'Total Tagihan'
,
inq
.
total
)
show_field
(
inq
.
invoice
,
'status_pembayaran'
)
show_field
(
inq
.
invoice
,
'status_bayar'
)
...
...
opensipkd/pad/services/bogor_kota.py
View file @
f156081
...
...
@@ -18,7 +18,7 @@ class Inquiry(BaseInquiry):
else
:
persen_denda
=
self
.
conf
[
'persen_denda'
]
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
sisa_
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
tgl_bayar
.
date
())
def
get_discount_denda
(
self
):
# Override
...
...
opensipkd/pad/services/default.py
View file @
f156081
...
...
@@ -327,7 +327,7 @@ class Inquiry(BaseInquiry):
else
:
persen_denda
=
self
.
conf
[
'persen_denda'
]
self
.
bln_tunggakan
,
self
.
denda_waktu
=
hitung_denda
(
self
.
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
sisa_
tagihan
,
self
.
invoice
.
jatuhtempotgl
,
persen_denda
,
self
.
tgl_bayar
.
date
())
def
get_discount_denda
(
self
):
...
...
@@ -336,11 +336,14 @@ class Inquiry(BaseInquiry):
def
hitung_bayar
(
self
):
bayar
=
self
.
get_payment_amount
()
self
.
total_bayar
=
round_up
(
bayar
)
self
.
sisa_tagihan
=
self
.
tagihan
-
self
.
total_bayar
if
self
.
sisa_tagihan
<
1
:
self
.
sisa_tagihan
=
0
def
hitung
(
self
):
self
.
hitung_tagihan
()
self
.
hitung_denda
()
self
.
hitung_bayar
()
self
.
hitung_denda
()
self
.
total
=
self
.
tagihan
+
self
.
denda
-
self
.
total_bayar
if
self
.
total
<
0
:
self
.
total
=
0
...
...
pyproject.toml
View file @
f156081
...
...
@@ -3,7 +3,7 @@ requires = ['setuptools >= 64']
[project]
name
=
'opensipkd-pad-models'
version
=
'
0.5.2
1
'
version
=
'
0.5.2
2
'
dependencies
=
[
'sqlalchemy'
,
'zope.sqlalchemy'
,
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment