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 da17496 commit 2f839fb
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 @@ -860,6 +860,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 2f839fb

Please sign in to comment.