From f3bdcc2a848fb3bbcd513f56ab0c3face2560827 Mon Sep 17 00:00:00 2001 From: Rohit Waghchaure Date: Fri, 17 May 2019 15:28:12 +0530 Subject: [PATCH] fix: not able to make si from dn --- 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 cb2c62e7b0a..23ef3bff75b 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -319,7 +319,7 @@ def update_barcode_value(out): # If item has one barcode then update the value of the barcode field if barcode_data and len(barcode_data.get(out.item_code)) == 1: - out['barcode'] = barcode_data.get(out.item_code) + out['barcode'] = barcode_data.get(out.item_code)[0] @frappe.whitelist() def calculate_service_end_date(args, item=None):