Commit b1e0fcb8 by Solo Group

pln

1 parent 4ba74318
...@@ -122,9 +122,9 @@ def inquiry(request, data, **kwargs): ...@@ -122,9 +122,9 @@ def inquiry(request, data, **kwargs):
flush_row(partner_log) flush_row(partner_log)
result = build_request('inquiry', vendor_produk, partner_log) result = build_request('inquiry', vendor_produk, partner_log)
if result["code"] == 0: if result["code"] == 0:
prod.update(dict(subtotal=result["subtotal"], prod.update(dict(subtotal="subtotal" in result and result["subtotal"] or 0,
discount=result["purchase"], discount="discount" in result and result["discount"] or 0,
total=result["total"] total="total" in result and result["total"] or 0
) )
) )
else: else:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!