Commit 04048ec4 by François C.

[REC] Fix wrong purchase_order id bug (when PO name doesn't include order id)

parent 7d950b93
Pipeline #2519 passed with stage
in 1 minute 28 seconds
......@@ -330,7 +330,8 @@ def save_error_report(request):
}
else:
# Read step 1 data from couch db document
order_id = f"order_{order['name'].split('PO')[1]}"
order_id = 'order_' + str(order['id'])
order_doc = c_db.getDocById(order_id)
try:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment