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 ef1bd928
authored
Jul 24, 2019
by
Solo Group
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
pars odeo
1 parent
478ebfde
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
src/agratek/api/merchant/views/vendor.py
src/agratek/api/merchant/views/vendor.py
View file @
ef1bd92
...
...
@@ -344,15 +344,18 @@ class VendorClass(object):
self
.
produk_id
=
vendor_produk
.
produk_id
self
.
bill_no
=
bill_no
self
.
customer_id
=
customer_id
self
.
cust_trx
=
cust_trx
self
.
vend_trx
=
None
self
.
response
=
None
self
.
request
=
None
self
.
partner_log
=
row
self
.
partner_log_id
=
row
and
row
.
id
or
None
self
.
v_produk_kd
=
vendor_produk
.
kode
self
.
kategori
=
vendor_produk
.
produk
.
kategori
.
nama
self
.
status
=
0
self
.
status
=
row
and
row
.
status
or
0
self
.
amt_buy
=
row
and
row
.
amt_buy
or
0
self
.
amt_sell
=
row
and
row
.
amt_sell
or
0
self
.
cust_trx
=
row
and
row
.
cust_trx
or
""
self
.
vend_trx
=
row
and
row
.
vend_trx
or
""
def
save_log
(
self
,
typ
):
# if not self.partner_log:
...
...
@@ -361,9 +364,12 @@ class VendorClass(object):
row
.
produk_id
=
self
.
produk_id
row
.
bill_no
=
self
.
bill_no
row
.
customer_id
=
self
.
customer_id
row
.
cust_trx
=
self
.
cust_trx
row
.
vend_trx
=
self
.
vend_trx
row
.
status
=
self
.
status
row
.
amt_buy
=
self
.
amt_buy
row
.
amt_sell
=
self
.
amt_sell
if
typ
==
'inquiry'
:
row
.
inquiry
=
dict
(
request
=
self
.
request
,
response
=
self
.
response
)
...
...
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