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 2b576d2f
authored
Aug 03, 2019
by
Solo Group
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
VSI
1 parent
61bbc928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
src/agratek/api/merchant/views/vsi_pulsa.py
src/agratek/api/merchant/views/vsi_pulsa.py
View file @
2b576d2
...
@@ -78,7 +78,7 @@ ERROR#0056#[56] Nomor Telpon tidak diketahui
...
@@ -78,7 +78,7 @@ ERROR#0056#[56] Nomor Telpon tidak diketahui
import
requests
import
requests
import
xmltodict
import
xmltodict
from
..tools
import
log
from
..tools
import
log
,
JsonRpcError
from
.vsi
import
Vendor
as
VendorClass
from
.vsi
import
Vendor
as
VendorClass
...
@@ -99,9 +99,14 @@ class Vendor(VendorClass):
...
@@ -99,9 +99,14 @@ class Vendor(VendorClass):
:return:
:return:
"""
"""
code
=
"rc"
in
data
and
int
(
data
[
"rc"
])
or
0
code
=
"rc"
in
data
and
int
(
data
[
"rc"
])
or
0
if
code
:
if
code
==
0
:
discount
=
PartnerProduk
.
get_discount
(
self
.
invoice_det
)
product_id
=
self
.
invoice_det
.
produk
.
id
partner_id
=
self
.
invoice_det
.
ar_invoice
.
customer_id
discount
=
PartnerProduk
.
get_discount
(
partner_id
,
product_id
)
harga
=
self
.
vendor_produk
.
produk
.
harga
harga
=
self
.
vendor_produk
.
produk
.
harga
if
not
harga
:
raise
JsonRpcError
()
else
:
else
:
discount
=
0
discount
=
0
harga
=
0
harga
=
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