Commit 8601bd07 by Solo Group

pln

1 parent b1e0fcb8
......@@ -122,11 +122,10 @@ 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="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
)
)
prod.update(result)
# 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:
prod.update(dict(status="FAILED",
message=result["message"]))
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!