commit | 5e080f90396e7d3d125d7de3cbe7edc226fc8599 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Fri Sep 26 15:05:30 2014 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Fri Sep 26 15:05:30 2014 +0530 |
tree | 5d0bd523be4aff8faa60e5e1af9da1427ec55509 | |
parent | 81959cc8eb83c08812dc733b9ff51c4d6aab3de7 [diff] |
Update utils.py
diff --git a/erpnext/stock/utils.py b/erpnext/stock/utils.py index 0b32f7e..31fc6a0 100644 --- a/erpnext/stock/utils.py +++ b/erpnext/stock/utils.py
@@ -176,7 +176,7 @@ item_rate = frappe.db.sql("""select sum(base_amount) / sum(qty) from `tabPurchase Invoice Item` where item_code = %s and docstatus=1""" % ('%s'), item_code) - buying_amount = flt(item_qty) * flt(item_rate[0][0]) + buying_amount = flt(item_qty) * flt(item_rate[0][0]) if item_rate else 0 return buying_amount