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 ceaf8afd
authored
Aug 30, 2019
by
Solo Group
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
-vsi pln post
1 parent
457ffbc1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
src/agratek/api/merchant/views/vsi/pln_post.py
src/agratek/api/merchant/views/vsi/pln_post.py
View file @
ceaf8af
...
@@ -68,8 +68,12 @@ class Vendor(VendorClass):
...
@@ -68,8 +68,12 @@ class Vendor(VendorClass):
power
=
"segmenpower"
in
data
and
data
[
"segmenpower"
]
.
split
(
"/"
)
or
[
""
]
power
=
"segmenpower"
in
data
and
data
[
"segmenpower"
]
.
split
(
"/"
)
or
[
""
]
power
=
len
(
power
)
>
1
and
power
[
-
1
:][
0
]
or
power
[
0
]
power
=
len
(
power
)
>
1
and
power
[
-
1
:][
0
]
or
power
[
0
]
product_id
=
self
.
invoice_det
.
produk
.
id
product_id
=
self
.
invoice_det
.
produk
.
id
partner_id
=
self
.
invoice_det
.
h2h_ar_invoice
.
customer_id
if
hasattr
(
self
.
invoice_det
,
'customer_id'
):
discount
=
PartnerProduk
.
get_discount
(
partner_id
,
product_id
)
customer_id
=
self
.
invoice_det
.
customer_id
else
:
customer_id
=
self
.
invoice_det
.
h2h_ar_invoice
.
customer_id
discount
=
PartnerProduk
.
get_discount
(
customer_id
,
product_id
)
admin
=
self
.
vendor_produk
.
produk
.
harga
admin
=
self
.
vendor_produk
.
produk
.
harga
harga
=
"nominal"
in
data
and
data
[
"nominal"
]
or
0
harga
=
"nominal"
in
data
and
data
[
"nominal"
]
or
0
subtotal
=
harga
+
admin
subtotal
=
harga
+
admin
...
...
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