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 57c840d8
authored
Oct 08, 2019
by
Solo Group
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
error payment
1 parent
4f1ab65b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/agratek/api/merchant/views/vsi/pln_post.py
src/agratek/api/merchant/views/vsi/pln_post.py
View file @
57c840d
...
...
@@ -8,8 +8,8 @@ log = logging.getLogger(__name__)
class
Vendor
(
VendorClass
):
def
pars_data
(
self
,
data
):
pokok
=
int
(
data
[
"tagihan"
])
self
.
amt_buy
=
int
(
data
[
"total"
])
pokok
=
"tagihan"
in
data
and
int
(
data
[
"tagihan"
])
or
0
self
.
amt_buy
=
"total"
in
data
and
int
(
data
[
"total"
])
or
0
tarif
=
"tarif"
in
data
and
data
[
"tarif"
]
or
""
p
=
tarif
.
split
(
"/"
)
power
=
len
(
p
)
>
1
and
p
[
1
]
or
""
...
...
@@ -25,6 +25,7 @@ class Vendor(VendorClass):
admin
=
int
(
self
.
vendor_produk
.
produk
.
harga
*
bulan
)
subtotal
=
pokok
+
admin
meter
=
"standmeter"
in
data
and
data
[
"standmeter"
]
or
""
if
"rc"
in
data
:
if
data
[
'rc'
]
==
'0000'
:
code
=
0
...
...
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