Skip to content

Commit

Permalink
fix: validation message for valuation rate (backport #37301) (#37351)
Browse files Browse the repository at this point in the history
fix: validation message for valuation rate (#37301)

(cherry picked from commit 643bb05)

Co-authored-by: rohitwaghchaure <rohitw1991@gmail.com>
  • Loading branch information
mergify[bot] and rohitwaghchaure authored Oct 5, 2023
1 parent 27bb0b1 commit d2aa4d5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion erpnext/controllers/selling_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit d2aa4d5

Please sign in to comment.