Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Taufik Yulianto
/
esipkd
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e19b617b
authored
Sep 06, 2024
by
Taufikyu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaiki lagi
1 parent
5ca8405e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
esipkd/views/rpc.py
esipkd/views/rpc.py
View file @
e19b617
...
...
@@ -305,7 +305,7 @@ def create_qris(request, data):
if
cek
:
raise
custom_error
(
code
=-
1
,
message
=
cek
)
cekQr
=
DBSession
.
query
(
BJBQRIS
)
.
filter
(
BJBQRIS
.
invoice_no
==
data
[
'kd_bayar'
])
.
first
()
if
cekQr
and
cekQr
.
expired_date
>
datetime
.
now
():
if
cekQr
and
cekQr
.
expired_date
>
datetime
.
now
()
and
cekQr
.
status
in
[
'0'
,
'1'
]
:
dt_qris
=
dict
(
client_type
=
cekQr
.
client_type
,
product_code
=
cekQr
.
product_code
,
invoice_no
=
cekQr
.
invoice_no
,
...
...
@@ -410,7 +410,7 @@ def create_va(request, data):
if
cek
:
raise
custom_error
(
code
=-
1
,
message
=
cek
)
cekVa
=
DBSession
.
query
(
BJBVA
)
.
filter
(
BJBVA
.
invoice_no
==
data
[
'kd_bayar'
])
.
first
()
if
cekVa
and
cekVa
.
expired_date
>
datetime
.
now
():
if
cekVa
and
cekVa
.
expired_date
>
datetime
.
now
()
and
cekVa
.
status
in
[
'0'
,
'1'
]
:
dt_va
=
dict
(
client_type
=
cekVa
.
client_type
,
product_code
=
cekVa
.
product_code
,
invoice_no
=
cekVa
.
invoice_no
,
...
...
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