Merge pull request #17655 from rohitwaghchaure/not_able_to_make_si_from_dn

fix: not able to make si from dn
This commit is contained in:
rohitwaghchaure
2019-05-17 15:29:04 +05:30
committed by GitHub

View File

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