Merge pull request #24957 from rohitwaghchaure/revert-stock-balance-value-calculation-v13-pre

fix: revert stock balance value calculation
This commit is contained in:
rohitwaghchaure 2021-03-19 16:22:51 +05:30 committed by GitHub
commit 98a40d81d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -198,7 +198,7 @@ def get_item_warehouse_map(filters, sle):
else:
qty_diff = flt(d.actual_qty)
value_diff = flt(d.stock_value) - flt(qty_dict.bal_val)
value_diff = flt(d.stock_value_difference)
if d.posting_date < from_date:
qty_dict.opening_qty += qty_diff