Skip to content

Commit

Permalink
fix: rate reset to zero
Browse files Browse the repository at this point in the history
(cherry picked from commit 6821baa)
  • Loading branch information
rohitwaghchaure authored and mergify[bot] committed Mar 22, 2024
1 parent fcbe255 commit 4636ef0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions erpnext/stock/get_item_details.py
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 4636ef0

Please sign in to comment.