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 de81a1a4
authored
Aug 29, 2023
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Total tagihan nol jika status lunas
1 parent
6913772d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
7 deletions
CHANGES.txt
sismiop/services/base.py
sismiop/services/tangsel.py
CHANGES.txt
View file @
de81a1a
0.2.11 2023-08-29
0.2.11 2023-08-29
-----------------
-----------------
-
Jangan hitung tagihan bil
a status lunas
-
Total tagihan nol jik
a status lunas
- Discount Kota Tangerang Selatan
- Discount Kota Tangerang Selatan
0.2.10 2023-08-16
0.2.10 2023-08-16
...
...
sismiop/services/base.py
View file @
de81a1a
...
@@ -161,8 +161,7 @@ class Inquiry(Query):
...
@@ -161,8 +161,7 @@ class Inquiry(Query):
self
.
persen_denda
=
persen_denda
self
.
persen_denda
=
persen_denda
# Digunakan untuk ISO8583
# Digunakan untuk ISO8583
self
.
tagihan
=
self
.
denda
=
self
.
discount
=
self
.
total
=
0
self
.
tagihan
=
self
.
denda
=
self
.
discount
=
self
.
total
=
0
if
not
self
.
is_paid
():
self
.
hitung
()
self
.
hitung
()
def
get_kelurahan_model
(
self
):
def
get_kelurahan_model
(
self
):
pass
pass
...
@@ -291,6 +290,8 @@ class Inquiry(Query):
...
@@ -291,6 +290,8 @@ class Inquiry(Query):
if
self
.
total
>
0
:
if
self
.
total
>
0
:
self
.
hitung_discount
()
self
.
hitung_discount
()
self
.
total
-=
self
.
discount
self
.
total
-=
self
.
discount
if
self
.
is_paid
():
self
.
total
=
0
def
do_payment
(
self
,
bank_fields
,
nip_pencatat
):
def
do_payment
(
self
,
bank_fields
,
nip_pencatat
):
bayar
=
self
.
invoice2payment
()
bayar
=
self
.
invoice2payment
()
...
...
sismiop/services/tangsel.py
View file @
de81a1a
...
@@ -37,14 +37,16 @@ class Inquiry(BaseInquiry):
...
@@ -37,14 +37,16 @@ class Inquiry(BaseInquiry):
func
.
sum
(
Payment
.
denda_sppt
)
.
func
.
sum
(
Payment
.
denda_sppt
)
.
label
(
'denda_sppt'
))
label
(
'denda_sppt'
))
q
=
self
.
get_filter
(
q
)
q
=
self
.
get_filter
(
q
)
q
=
q
.
filter
(
Payment
.
jml_sppt_yg_dibayar
>
0
)
bayar
=
q
.
first
()
bayar
=
q
.
first
()
self
.
total_bayar
=
bayar
.
jml_sppt_yg_dibayar
or
0
self
.
total_bayar
=
bayar
.
jml_sppt_yg_dibayar
or
0
if
self
.
total_bayar
<
0
:
if
self
.
total_bayar
<
0
:
self
.
total_bayar
=
0
self
.
total_bayar
=
0
denda_lalu
=
bayar
.
denda_sppt
or
0
if
self
.
invoice
.
pbb_yg_harus_dibayar_sppt
>
0
:
sisa
=
float
(
self
.
total_bayar
-
denda_lalu
)
denda_lalu
=
bayar
.
denda_sppt
or
0
tagihan
=
self
.
invoice
.
pbb_yg_harus_dibayar_sppt
-
sisa
sisa
=
float
(
self
.
total_bayar
-
denda_lalu
)
self
.
tagihan
=
round_up
(
tagihan
)
tagihan
=
self
.
invoice
.
pbb_yg_harus_dibayar_sppt
-
sisa
self
.
tagihan
=
round_up
(
tagihan
)
def
hitung_denda
(
self
):
# Override
def
hitung_denda
(
self
):
# Override
super
()
.
hitung_denda
()
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