Merge pull request #2177 from anandpdoshi/anand-september-11

[fix] transfer_qty in get_stock_and_rate
This commit is contained in:
Anand Doshi 2014-09-11 16:47:59 +05:30
commit eee569bb20

View File

@ -217,6 +217,8 @@ class StockEntry(StockController):
allow_negative_stock = cint(frappe.db.get_default("allow_negative_stock"))
for d in self.get('mtn_details'):
d.transfer_qty = flt(d.transfer_qty)
args = frappe._dict({
"item_code": d.item_code,
"warehouse": d.s_warehouse or d.t_warehouse,