From 32280a11aa149ffd389121496b70f1e1f2728f54 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Mon, 27 May 2019 13:32:44 +0530 Subject: [PATCH] fix: customer item code not fetched on selection of the item in the sales order (#17755) --- erpnext/stock/get_item_details.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index 3dca6a1608e..d251e49c0a6 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -588,7 +588,7 @@ def get_party_item_code(args, item_doc, out): if args.transaction_type=="selling" and args.customer: out.customer_item_code = None - if args.quotation_to != 'Customer': + if args.quotation_to and args.quotation_to != 'Customer': return customer_item_code = item_doc.get("customer_items", {"customer_name": args.customer})