fix: shopify error message on failure of sales order creation (#21924)

This commit is contained in:
Mangesh-Khairnar 2020-05-26 17:56:40 +05:30 committed by GitHub
parent ddc170521f
commit 7402451b96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,10 +95,10 @@ def create_sales_order(shopify_order, shopify_settings, company=None):
items = get_order_items(shopify_order.get("line_items"), shopify_settings)
if not items:
message = 'Following items are exists in order but relevant record not found in Product master'
message = 'Following items exists in the shopify order but relevant records were not found in the shopify Product master'
message += "\n" + ", ".join(product_not_exists)
make_shopify_log(status="Error", exception=e, rollback=True)
make_shopify_log(status="Error", exception=message, rollback=True)
return ''