mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fix: Delivery Note return valuation
(cherry picked from commit 6a10ae662c)
This commit is contained in:
committed by
Mergify
parent
16943ac248
commit
296f312e7f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user