commit | 40a8ae290743ce61882e204486bd63980f923486 | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@erpnext.com> | Fri Aug 29 16:28:31 2014 +0530 |
committer | Anand Doshi <anand@erpnext.com> | Fri Aug 29 16:28:31 2014 +0530 |
tree | 4743fbda982ad0b47e5dc91e7eb042c03b9700a4 | |
parent | 12b98027ee9771d8868562a1e0a73ab41718c645 [diff] |
[fix] get incoming rate
diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py index 100d338..7264f36 100644 --- a/erpnext/stock/utils.py +++ b/erpnext/stock/utils.py
@@ -67,7 +67,7 @@ from erpnext.stock.stock_ledger import get_previous_sle in_rate = 0 - if args.get("serial_no"): + if (args.get("serial_no") or "").strip(): in_rate = get_avg_purchase_rate(args.get("serial_no")) else: valuation_method = get_valuation_method(args.get("item_code"))