Commit 74ae3165 by Solo Group

pln

1 parent 4afef720
...@@ -229,7 +229,8 @@ def purchase(request, data, **kwargs): ...@@ -229,7 +229,8 @@ def purchase(request, data, **kwargs):
if vendor_produk.produk.harga < total: if vendor_produk.produk.harga < total:
total += vendor_produk.produk.harga total += vendor_produk.produk.harga
prod.update(dict(total=total)) prod.update(dict(total=total,
status=result["status"]))
# ar_invoice_det.status = 'status' in result and result["status"] or 'FAILED' # ar_invoice_det.status = 'status' in result and result["status"] or 'FAILED'
# if result["code"] == 9: # if result["code"] == 9:
# ar_invoice_det.amt_buy = result["response"].total # ar_invoice_det.amt_buy = result["response"].total
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!