Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
sismiop-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 8d75668f
authored
Aug 29, 2023
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed Tangerang Selatan saat tagihan negatif
1 parent
de81a1a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
sismiop/services/base.py
sismiop/services/tangsel.py
sismiop/services/base.py
View file @
8d75668
...
...
@@ -290,8 +290,8 @@ class Inquiry(Query):
if
self
.
total
>
0
:
self
.
hitung_discount
()
self
.
total
-=
self
.
discount
if
self
.
is_paid
():
self
.
total
=
0
if
self
.
is_paid
():
self
.
total
=
0
def
do_payment
(
self
,
bank_fields
,
nip_pencatat
):
bayar
=
self
.
invoice2payment
()
...
...
sismiop/services/tangsel.py
View file @
8d75668
...
...
@@ -47,6 +47,8 @@ class Inquiry(BaseInquiry):
sisa
=
float
(
self
.
total_bayar
-
denda_lalu
)
tagihan
=
self
.
invoice
.
pbb_yg_harus_dibayar_sppt
-
sisa
self
.
tagihan
=
round_up
(
tagihan
)
if
self
.
tagihan
<
0
:
self
.
tagihan
=
0
def
hitung_denda
(
self
):
# Override
super
()
.
hitung_denda
()
...
...
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