On selection of item, set default qty as 1

This commit is contained in:
Nabin Hait 2015-05-29 17:31:31 +05:30
parent 8908543a9c
commit 4a6c178795

View File

@ -163,8 +163,8 @@ def get_basic_details(args, item):
"uom": item.stock_uom,
"min_order_qty": flt(item.min_order_qty) if args.parenttype == "Material Request" else "",
"conversion_factor": 1.0,
"qty": args.qty or 0.0,
"stock_qty": 0.0,
"qty": args.qty or 1.0,
"stock_qty": 1.0,
"price_list_rate": 0.0,
"base_price_list_rate": 0.0,
"rate": 0.0,