From 81efce15c317b5bc0b41e7e18044466a86f9f4b5 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Tue, 3 Oct 2023 22:56:33 +0530 Subject: [PATCH] fix: validation message for valuation rate (#37301) (cherry picked from commit 643bb0511ce6b858d84613d08b551b7f15c6364a) --- erpnext/controllers/selling_controller.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/erpnext/controllers/selling_controller.py b/erpnext/controllers/selling_controller.py index 901466267bba..418a56f5fe59 100644 --- a/erpnext/controllers/selling_controller.py +++ b/erpnext/controllers/selling_controller.py @@ -288,7 +288,9 @@ def throw_message(idx, item_name, rate, ref_rate_field): last_valuation_rate_in_sales_uom = last_valuation_rate * (item.conversion_factor or 1) if flt(item.base_net_rate) < flt(last_valuation_rate_in_sales_uom): - throw_message(item.idx, item.item_name, last_valuation_rate_in_sales_uom, "valuation rate") + throw_message( + item.idx, item.item_name, last_valuation_rate_in_sales_uom, "valuation rate (Moving Average)" + ) def get_item_list(self): il = []