Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Kunto
/
backoffice
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 bd3ddb67
authored
Feb 19, 2020
by
yasir
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update
1 parent
36d7fd18
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
src/agratek/api/merchant/views/pay.py
src/agratek/api/merchant/views/pay_request.py
src/agratek/api/merchant/views/templates/pay.pt
src/agratek/api/merchant/views/pay.py
View file @
bd3ddb6
...
@@ -206,7 +206,7 @@ class view_pay(BaseView):
...
@@ -206,7 +206,7 @@ class view_pay(BaseView):
# populating datas for info
# populating datas for info
subject
=
'No. Virtual Account'
subject
=
'No. Virtual Account'
content
=
dict_results
[
'result'
][
'va'
][
'vacct_no'
]
content
=
dict_results
[
'result'
][
'va'
][
'vacct_no'
]
amount
=
dict_results
[
'result'
][
'amount'
]
amount
=
dict_results
[
'result'
][
'amount'
]
+
dict_results
[
'result'
][
'fee'
]
amount
=
format
(
int
(
amount
),
',d'
)
.
replace
(
','
,
'.'
)
amount
=
format
(
int
(
amount
),
',d'
)
.
replace
(
','
,
'.'
)
va_dt
=
dict_results
[
'result'
][
'va'
][
'valid_date'
]
va_dt
=
dict_results
[
'result'
][
'va'
][
'valid_date'
]
...
...
src/agratek/api/merchant/views/pay_request.py
View file @
bd3ddb6
...
@@ -210,9 +210,9 @@ class view_pay(BaseView):
...
@@ -210,9 +210,9 @@ class view_pay(BaseView):
print
(
request
.
session
)
print
(
request
.
session
)
print
(
"isi items >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
)
print
(
"isi items >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
)
print
(
items
)
print
(
items
)
partner_kd
=
request
.
session
[
'partner_kd'
]
#
partner_kd = request.session['partner_kd']
customer
=
Partner
.
query
()
.
filter
(
Partner
.
kode
==
partner_kd
)
.
first
()
#
customer = Partner.query().filter(Partner.kode == partner_kd).first()
user
=
customer
.
users
user
=
request
.
user
#
customer.users
print
(
"isi user >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
)
print
(
"isi user >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>"
)
print
(
user
.
user_name
)
print
(
user
.
user_name
)
...
...
src/agratek/api/merchant/views/templates/pay.pt
View file @
bd3ddb6
...
@@ -45,7 +45,7 @@ td, th {
...
@@ -45,7 +45,7 @@ td, th {
<div
class=
"panel-body well"
style=
"padding: 0px;"
>
<div
class=
"panel-body well"
style=
"padding: 0px;"
>
<div
class=
"panel-header"
style=
"text-align: center;"
>
<div
class=
"panel-header"
style=
"text-align: center;"
>
<label
style=
"font-weight: normal; margin-bottom: 0px; margin-top: 10px;"
class=
"col-md-12 col-xs-12 col-sm-12"
>
<label
style=
"font-weight: normal; margin-bottom: 0px; margin-top: 10px;"
class=
"col-md-12 col-xs-12 col-sm-12"
>
Total pembayaran
Total pembayaran
+ Fee
</label>
</label>
<label
id=
"lb_amount"
style=
"font-size: 1.2em; color: #db4827;"
class=
"col-md-12 col-xs-12 col-sm-12"
>
<label
id=
"lb_amount"
style=
"font-size: 1.2em; color: #db4827;"
class=
"col-md-12 col-xs-12 col-sm-12"
>
...
...
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