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 aa74fbc3
authored
Sep 20, 2023
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update va
1 parent
f15a445c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
esipkd/views/rpc.py
esipkd/views/rpc.py
View file @
aa74fbc
...
...
@@ -302,7 +302,8 @@ def create_qris(request, data):
customer_phone
=
cekQr
.
customer_phone
and
cekQr
.
customer_phone
or
'-'
,
expired_date
=
ymdhms
(
datetime
.
combine
(
cekQr
.
expired_date
,
time
(
23
,
59
,
59
))),
amount
=
cekQr
.
amount
,
qrcode
=
cekQr
.
qrcode
)
qrcode
=
cekQr
.
qrcode
,
qris_id
=
cekQr
.
va_number
)
return
dict
(
code
=
0
,
message
=
"Success Create Qris"
,
data
=
dt_qris
)
...
...
@@ -352,6 +353,7 @@ def create_qris(request, data):
log
.
error
(
row_qris
)
Qqris
=
DBSession
.
query
(
BJBQRIS
)
.
filter
(
BJBQRIS
.
invoice_no
==
data
[
'kd_bayar'
])
.
first
()
dt_qris
[
'qrcode'
]
=
Qqris
.
qrcode
dt_qris
[
'qris_id'
]
=
Qqris
.
va_number
if
row_qris
:
return
dict
(
code
=
0
,
message
=
"Success Create Qris"
,
data
=
dt_qris
)
else
:
...
...
@@ -438,4 +440,4 @@ def create_va(request, data):
if
row_va
:
return
dict
(
code
=
0
,
message
=
"Success Create Va"
,
data
=
dt_va
)
else
:
return
dict
(
code
=-
1
,
message
=
"Failed Create Va"
)
\ No newline at end of file
return
dict
(
code
=-
1
,
message
=
"Failed Create Va"
)
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