fix: customer item code not fetched on selection of the item in the sales order (#17755)

This commit is contained in:
rohitwaghchaure
2019-05-27 13:32:44 +05:30
committed by Nabin Hait
parent a2f9d2f89c
commit 32280a11aa

View File

@@ -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})