Commit ef1bd928 by Solo Group

pars odeo

1 parent 478ebfde
...@@ -344,15 +344,18 @@ class VendorClass(object): ...@@ -344,15 +344,18 @@ class VendorClass(object):
self.produk_id = vendor_produk.produk_id self.produk_id = vendor_produk.produk_id
self.bill_no = bill_no self.bill_no = bill_no
self.customer_id = customer_id self.customer_id = customer_id
self.cust_trx = cust_trx
self.vend_trx = None
self.response = None self.response = None
self.request = None self.request = None
self.partner_log = row self.partner_log = row
self.partner_log_id = row and row.id or None self.partner_log_id = row and row.id or None
self.v_produk_kd = vendor_produk.kode self.v_produk_kd = vendor_produk.kode
self.kategori = vendor_produk.produk.kategori.nama 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): def save_log(self, typ):
# if not self.partner_log: # if not self.partner_log:
...@@ -361,9 +364,12 @@ class VendorClass(object): ...@@ -361,9 +364,12 @@ class VendorClass(object):
row.produk_id = self.produk_id row.produk_id = self.produk_id
row.bill_no = self.bill_no row.bill_no = self.bill_no
row.customer_id = self.customer_id row.customer_id = self.customer_id
row.cust_trx = self.cust_trx row.cust_trx = self.cust_trx
row.vend_trx = self.vend_trx row.vend_trx = self.vend_trx
row.status = self.status row.status = self.status
row.amt_buy = self.amt_buy
row.amt_sell = self.amt_sell
if typ == 'inquiry': if typ == 'inquiry':
row.inquiry = dict(request=self.request, row.inquiry = dict(request=self.request,
response=self.response) response=self.response)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!