Commit b1e0fcb8 by Solo Group

pln

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