Merge pull request #34664 from rohitwaghchaure/fixed-incorrect-balance-qty-stock-ledger

fix: incorrect balance qty in the stock ledger report
This commit is contained in:
rohitwaghchaure 2023-03-30 17:25:35 +05:30 committed by GitHub
commit 06eac67796
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -34,6 +34,9 @@ def execute(filters=None):
conversion_factors.append(0) conversion_factors.append(0)
actual_qty = stock_value = 0 actual_qty = stock_value = 0
if opening_row:
actual_qty = opening_row.get("qty_after_transaction")
stock_value = opening_row.get("stock_value")
available_serial_nos = {} available_serial_nos = {}
inventory_dimension_filters_applied = check_inventory_dimension_filters_applied(filters) inventory_dimension_filters_applied = check_inventory_dimension_filters_applied(filters)