mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-20 03:47:11 +00:00
Merge pull request #56663 from frappe/mergify/bp/version-15-hotfix/pr-56662
fix: use correct variable to fetch valuation method (backport #56662)
This commit is contained in:
@@ -143,7 +143,7 @@ def validate_returned_items(doc):
|
|||||||
ref.rate
|
ref.rate
|
||||||
and flt(d.rate) > ref.rate
|
and flt(d.rate) > ref.rate
|
||||||
and doc.doctype in ("Delivery Note", "Sales Invoice")
|
and doc.doctype in ("Delivery Note", "Sales Invoice")
|
||||||
and get_valuation_method(ref.item_code) != "Moving Average"
|
and get_valuation_method(d.item_code) != "Moving Average"
|
||||||
):
|
):
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_("Row # {0}: Rate cannot be greater than the rate used in {1} {2}").format(
|
_("Row # {0}: Rate cannot be greater than the rate used in {1} {2}").format(
|
||||||
|
|||||||
Reference in New Issue
Block a user