mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-18 00:48:42 +00:00
fix(stock): update stock value calculation in stock balance report
(cherry picked from commit 2492dfa558)
This commit is contained in:
@@ -351,12 +351,13 @@ class StockBalanceReport:
|
|||||||
qty_dict.opening_qty -= self.stock_reco_voucher_wise_count.get(entry.voucher_detail_no, 0)
|
qty_dict.opening_qty -= self.stock_reco_voucher_wise_count.get(entry.voucher_detail_no, 0)
|
||||||
qty_dict.bal_qty = 0.0
|
qty_dict.bal_qty = 0.0
|
||||||
qty_diff = flt(entry.actual_qty)
|
qty_diff = flt(entry.actual_qty)
|
||||||
|
value_diff = flt(entry.stock_value_difference)
|
||||||
else:
|
else:
|
||||||
qty_diff = flt(entry.qty_after_transaction) - flt(qty_dict.bal_qty)
|
qty_diff = flt(entry.qty_after_transaction) - flt(qty_dict.bal_qty)
|
||||||
|
value_diff = flt(entry.stock_value) - flt(qty_dict.bal_val)
|
||||||
else:
|
else:
|
||||||
qty_diff = flt(entry.actual_qty)
|
qty_diff = flt(entry.actual_qty)
|
||||||
|
value_diff = flt(entry.stock_value_difference)
|
||||||
value_diff = flt(entry.stock_value_difference)
|
|
||||||
|
|
||||||
if entry.posting_date < self.from_date or entry.voucher_no in self.opening_vouchers.get(
|
if entry.posting_date < self.from_date or entry.voucher_no in self.opening_vouchers.get(
|
||||||
entry.voucher_type, []
|
entry.voucher_type, []
|
||||||
|
|||||||
Reference in New Issue
Block a user