mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-22 19:55:29 +00:00
fix: packed item using expired price
(cherry picked from commit 47ffa4983c)
This commit is contained in:
@@ -207,6 +207,9 @@ def update_packed_item_price_data(pi_row, item_data, doc):
|
|||||||
"conversion_rate": doc.get("conversion_rate"),
|
"conversion_rate": doc.get("conversion_rate"),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
if not row_data.get("transaction_date"):
|
||||||
|
row_data.update({"transaction_date": doc.get("transaction_date")})
|
||||||
|
|
||||||
rate = get_price_list_rate(row_data, item_doc).get("price_list_rate")
|
rate = get_price_list_rate(row_data, item_doc).get("price_list_rate")
|
||||||
|
|
||||||
pi_row.rate = rate or item_data.get("valuation_rate") or 0.0
|
pi_row.rate = rate or item_data.get("valuation_rate") or 0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user