Skip to content

Commit f3bdcc2

Browse files
fix: not able to make si from dn
1 parent 714d686 commit f3bdcc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

erpnext/stock/get_item_details.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ def update_barcode_value(out):
319319

320320
# If item has one barcode then update the value of the barcode field
321321
if barcode_data and len(barcode_data.get(out.item_code)) == 1:
322-
out['barcode'] = barcode_data.get(out.item_code)
322+
out['barcode'] = barcode_data.get(out.item_code)[0]
323323

324324
@frappe.whitelist()
325325
def calculate_service_end_date(args, item=None):

0 commit comments

Comments
 (0)