Merge pull request #50973 from frappe/mergify/bp/version-15-hotfix/pr-50972

fix: incorrect condition (backport #50972)
This commit is contained in:
rohitwaghchaure
2025-12-08 20:27:10 +05:30
committed by GitHub

View File

@@ -1934,8 +1934,7 @@ def get_valuation_rate(
& (table.warehouse == warehouse)
& (table.batch_no == batch_no)
& (table.is_cancelled == 0)
& (table.voucher_no != voucher_no)
& (table.voucher_type != voucher_type)
& ((table.voucher_no != voucher_no) | (table.voucher_type != voucher_type))
)
)