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 99a4fb19
authored
Feb 12, 2021
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Bug fixed nilai yang disimpan di Kota Bogor
1 parent
e36e5d5a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
sismiop/scripts/inquiry.py
sismiop/services/bogor_kota.py
sismiop/scripts/inquiry.py
View file @
99a4fb1
...
...
@@ -119,6 +119,24 @@ def show_payment(module_name, inq, pay):
show_fields
(
row
,
fields
)
def
show_reversal
(
module_name
,
inq
,
pay
):
print
(
'Pembayaran ke-{} berhasil dibatalkan'
.
format
(
pay
.
pembayaran_sppt_ke
))
print
(
'Tabel pembayaran_sppt'
)
show_fields
(
pay
,
[
'jml_sppt_yg_dibayar'
,
'denda_sppt'
,
'discount_pokok'
,
'discount_denda'
,
'discount'
])
try
:
row
,
fields
=
inq
.
get_other_payment_table
(
pay
)
except
AttributeError
:
return
if
not
row
:
return
print
(
'Tabel {}'
.
format
(
row
.
__tablename__
))
show_fields
(
row
,
fields
)
ERR_PAYMENT_NOT_FOUND
=
'Pembayaran tidak ditemukan, '
\
'tidak ada yang perlu dibatalkan.'
...
...
@@ -187,9 +205,7 @@ def main(argv=sys.argv):
print
(
ERR_PAYMENT_NOT_FOUND
)
return
rev
.
do_reversal
()
print
(
'Pembayaran ke-{} berhasil dibatalkan'
.
format
(
pay
.
pembayaran_sppt_ke
))
show_reversal
(
module_name
,
inq
,
pay
)
if
option
.
update_status_bayar
:
if
inq
.
total
==
0
:
if
inq
.
invoice
.
status_pembayaran_sppt
==
'0'
:
...
...
sismiop/services/bogor_kota.py
View file @
99a4fb1
...
...
@@ -68,7 +68,8 @@ class Inquiry(BaseInquiry, Common):
def
before_save
(
self
,
bayar
):
# Override
if
not
self
.
discount
:
return
inv
=
self
.
invoice
# Butuh bruto-nya, menyesuaikan aplikasi report
bayar
.
jml_sppt_yg_dibayar
=
self
.
total
+
self
.
discount
pc
=
PenguranganCovid
(
kd_propinsi
=
bayar
.
kd_propinsi
,
kd_dati2
=
bayar
.
kd_dati2
,
kd_kecamatan
=
bayar
.
kd_kecamatan
,
...
...
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