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 b9181e60
authored
Jan 09, 2026
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed Kota Tangerang
1 parent
058ed80f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
opensipkd/pad/services/tangerang_kota.py
opensipkd/pad/services/tangerang_kota.py
View file @
b9181e6
...
...
@@ -90,7 +90,9 @@ class Inquiry(BaseInquiry):
return
q
.
first
()
def
hitung_tagihan
(
self
):
# Override
self
.
tagihan
=
self
.
discount_denda
=
self
.
total_bayar
=
0
self
.
tagihan
=
self
.
discount_denda
=
self
.
total_bayar
=
\
self
.
pokok
=
self
.
opsen_pokok
=
self
.
total_pokok
=
\
self
.
denda_pokok
=
self
.
total_opsen_denda
=
0
if
self
.
invoice
.
status_bayar
==
1
:
return
if
self
.
invoice
.
status_pembayaran
==
1
:
...
...
@@ -98,6 +100,8 @@ class Inquiry(BaseInquiry):
total
=
float
(
self
.
invoice
.
total
or
0
)
bunga
=
float
(
self
.
invoice
.
bunga
or
0
)
pokok_tagihan
=
total
-
bunga
self
.
pokok
=
round_up
(
pokok_tagihan
)
self
.
total_pokok
=
round_up
(
pokok_tagihan
)
self
.
tagihan
=
round_up
(
pokok_tagihan
-
self
.
invoice
.
denda
)
def
hitung_denda
(
self
):
# Override
...
...
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