fix: Delivery Note return valuation

(cherry picked from commit 6a10ae662c)
This commit is contained in:
Rohit Waghchaure
2023-07-10 17:06:02 +05:30
committed by Mergify
parent 16943ac248
commit 296f312e7f
2 changed files with 36 additions and 1 deletions

View File

@@ -617,7 +617,11 @@ def get_filters(
if reference_voucher_detail_no:
filters["voucher_detail_no"] = reference_voucher_detail_no
if item_row and item_row.get("warehouse"):
if (
voucher_type in ["Purchase Receipt", "Purchase Invoice"]
and item_row
and item_row.get("warehouse")
):
filters["warehouse"] = item_row.get("warehouse")
return filters