Skip to content

Commit

Permalink
[Backend] Remove line_item_shipment_price backend helper
Browse files Browse the repository at this point in the history
Use Spree::LineItem#display_amount instead.

Ref solidusio#4876
  • Loading branch information
kennyadsl committed Apr 14, 2023
1 parent f3ee508 commit 7b37ac5
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions backend/app/helpers/spree/admin/orders_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,6 @@ def event_links
safe_join(links, " ".html_safe)
end

# @deprecated use `Spree::LineItem#display_amount` instead
def line_item_shipment_price(line_item, quantity)
Spree::Money.new(line_item.price * quantity, { currency: line_item.currency })
end
deprecate deprecator: Spree::Deprecation,
line_item_shipment_price: "use Spree::LineItem#display_amount instead"

# Addresss Verification System response code
#
# @see https://en.wikipedia.org/wiki/Address_verification_service
Expand Down

0 comments on commit 7b37ac5

Please sign in to comment.