mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
fix: stock balance showing incorrect value because of incorrect SLE
(cherry picked from commit 94b95d6c2f)
This commit is contained in:
committed by
Mergify
parent
5cc335dd53
commit
0b3344bad9
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user