mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 16:04:46 +00:00
cal difference amount when qty 0 (#11925)
This commit is contained in:
@@ -55,7 +55,7 @@ class StockReconciliation(StockController):
|
|||||||
|
|
||||||
item.current_qty = qty
|
item.current_qty = qty
|
||||||
item.current_valuation_rate = rate
|
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
|
return True
|
||||||
|
|
||||||
items = filter(lambda d: _changed(d), self.items)
|
items = filter(lambda d: _changed(d), self.items)
|
||||||
|
|||||||
Reference in New Issue
Block a user