mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 05:09:11 +00:00
Merge pull request #55048 from frappe/mergify/bp/version-16-hotfix/pr-55046
fix: stock balance showing incorrect value because of incorrect SLE (backport #55046)
This commit is contained in:
@@ -2433,7 +2433,9 @@ def get_stock_value_difference(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if voucher_detail_no:
|
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:
|
elif voucher_no:
|
||||||
query = query.where(table.voucher_no != voucher_no)
|
query = query.where(table.voucher_no != voucher_no)
|
||||||
|
|||||||
Reference in New Issue
Block a user