Commit b69b1f9c by Yvon Kerdoncuff

Merge branch 'ticket_4146' into 'dev_cooperatic'

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

See merge request !217
parents 7d950b93 04048ec4
Pipeline #2521 passed with stage
in 1 minute 27 seconds
...@@ -330,7 +330,8 @@ def save_error_report(request): ...@@ -330,7 +330,8 @@ def save_error_report(request):
} }
else: else:
# Read step 1 data from couch db document # 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) order_doc = c_db.getDocById(order_id)
try: 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