fix: incorrect in and out qty in the Batch-Wise Balance History (#42866)

This commit is contained in:
rohitwaghchaure
2024-08-22 19:33:30 +05:30
committed by GitHub
parent 63ca1025bc
commit ce7f6ee71c

View File

@@ -168,7 +168,7 @@ def get_stock_ledger_entries_for_batch_bundle(filters):
& (sle.has_batch_no == 1)
& (sle.posting_date <= filters["to_date"])
)
.groupby(batch_package.batch_no, batch_package.warehouse)
.groupby(sle.voucher_no, batch_package.batch_no, batch_package.warehouse)
.orderby(sle.item_code, sle.warehouse)
)