Module: SolidusProductAssembly::Spree::Admin::OrdersHelperDecorator

Defined in:
app/decorators/helpers/solidus_product_assembly/spree/admin/orders_helper_decorator.rb

Class Method Summary collapse

Class Method Details

.prepended(base) ⇒ Object



7
8
9
10
11
12
13
# File 'app/decorators/helpers/solidus_product_assembly/spree/admin/orders_helper_decorator.rb', line 7

def self.prepended(base)
  base.module_eval do
    def line_item_shipment_price(line_item, quantity)
      ::Spree::Money.new(line_item.price * quantity, currency: line_item.currency)
    end
  end
end