fix issue #16284, child table copy (#16285)

* fix issue #16284, child table copy 

V11 Child table from Clipboard Excel error, can't multiply sequence by non-int of type 'float'

* Update get_item_details.py

consider the empty string case

* Update get_item_details.py
This commit is contained in:
Fisher Yu 2019-01-11 18:01:33 +08:00 committed by Rushabh Mehta
parent d254af9fea
commit 2cd49f51e2

View File

@ -252,8 +252,8 @@ def get_basic_details(args, item):
item.get("taxes")))),
"uom": args.uom,
"min_order_qty": flt(item.min_order_qty) if args.doctype == "Material Request" else "",
"qty": args.qty or 1.0,
"stock_qty": args.qty or 1.0,
"qty": flt(args.qty) or 1.0,
"stock_qty": flt(args.qty) or 1.0,
"price_list_rate": 0.0,
"base_price_list_rate": 0.0,
"rate": 0.0,