fix: valuation rate missing for standalone credit notes for moving av… (#55102)

(cherry picked from commit 00057b1798)

# Conflicts:
#	erpnext/controllers/selling_controller.py
This commit is contained in:
Mihir Kandoi
2026-05-20 16:58:01 +05:30
committed by Mergify
parent aa79247c39
commit b454c3eb28

View File

@@ -561,7 +561,15 @@ class SellingController(StockController):
if (
not d.incoming_rate
or self.is_internal_transfer()
<<<<<<< HEAD
or (get_valuation_method(d.item_code) == "Moving Average" and self.get("is_return"))
=======
or (
get_valuation_method(d.item_code, self.company) == "Moving Average"
and self.get("is_return")
and not is_standalone
)
>>>>>>> 00057b1798 (fix: valuation rate missing for standalone credit notes for moving av (#55102))
):
d.incoming_rate = get_incoming_rate(
{