cal difference amount when qty 0 (#11925)

This commit is contained in:
Shreya Shah 2017-12-11 14:56:57 +05:30 committed by Nabin Hait
parent efbc0667ec
commit 1b30642362

View File

@ -55,7 +55,7 @@ class StockReconciliation(StockController):
item.current_qty = qty
item.current_valuation_rate = rate
self.difference_amount += (flt(item.qty or qty) * flt(item.valuation_rate or rate) - (flt(qty) * flt(rate)))
self.difference_amount += (flt(item.qty) * flt(item.valuation_rate or rate) - (flt(qty) * flt(rate)))
return True
items = filter(lambda d: _changed(d), self.items)