Merge pull request #55046 from rohitwaghchaure/fixed-incorrect-balance

fix: stock balance showing incorrect value because of incorrect SLE
This commit is contained in:
rohitwaghchaure
2026-05-19 13:50:55 +05:30
committed by GitHub

View File

@@ -2433,7 +2433,9 @@ def get_stock_value_difference(
)
if voucher_detail_no:
query = query.where(table.voucher_detail_no != voucher_detail_no)
query = query.where(
(table.voucher_detail_no != voucher_detail_no) | (table.voucher_detail_no.isnull())
)
elif voucher_no:
query = query.where(table.voucher_no != voucher_no)