Skip to content

Commit

Permalink
Merge pull request #40619 from frappe/mergify/bp/version-15/pr-40617
Browse files Browse the repository at this point in the history
fix: rate reset to zero (backport #40616) (backport #40617)
  • Loading branch information
rohitwaghchaure authored Mar 22, 2024
2 parents 2b80cb9 + 1ed9133 commit 4a1c561
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/stock/get_item_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,9 @@ def get_price_list_rate(args, item_doc, out=None):
if args.price_list and args.rate:
insert_item_price(args)

if not price_list_rate:
return out

out.price_list_rate = (
flt(price_list_rate) * flt(args.plc_conversion_rate) / flt(args.conversion_rate)
)
Expand Down

0 comments on commit 4a1c561

Please sign in to comment.