From 2fb8cc5f2ce5e4ac2f5b51c3e949abd7468e6cae Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Wed, 29 Nov 2017 13:50:04 +0530 Subject: [PATCH] [fix] Options must be a valid DocType for field Asset Category in row 18 (#11773) * [fix] Options must be a valid DocType for field Asset Category in row 18 * test cases --- erpnext/modules.txt | 4 ++-- erpnext/stock/get_item_details.py | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/erpnext/modules.txt b/erpnext/modules.txt index 090ebd03f4..23e804e354 100644 --- a/erpnext/modules.txt +++ b/erpnext/modules.txt @@ -10,6 +10,7 @@ Stock Support Utilities Shopping Cart +Assets Hub Node Portal Maintenance @@ -17,5 +18,4 @@ Education Regional Healthcare Restaurant -ERPNext Integrations -Assets \ No newline at end of file +ERPNext Integrations \ No newline at end of file diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index 50a080d579..bfb25939a7 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -84,7 +84,9 @@ def get_item_details(args): if out.has_batch_no and not args.get("batch_no"): out.batch_no = get_batch_no(out.item_code, out.warehouse, out.qty) - out.update(get_batch_qty(out.batch_no, out.warehouse, out.item_code)) + actual_batch_qty = get_batch_qty(out.batch_no, out.warehouse, out.item_code) + if actual_batch_qty: + out.update(actual_batch_qty) if args.transaction_date and item.lead_time_days: out.schedule_date = out.lead_time_date = add_days(args.transaction_date,