Class: Spree::Admin::OrdersHelper::TaxLine

Inherits:
Struct
  • Object
show all
Defined in:
app/helpers/spree/admin/orders_helper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#display_amountObject

Returns the value of attribute display_amount

Returns:

  • (Object)

    the current value of display_amount



4
5
6
# File 'app/helpers/spree/admin/orders_helper.rb', line 4

def display_amount
  @display_amount
end

#for_shipmentObject

Returns the value of attribute for_shipment

Returns:

  • (Object)

    the current value of for_shipment



4
5
6
# File 'app/helpers/spree/admin/orders_helper.rb', line 4

def for_shipment
  @for_shipment
end

#itemObject

Returns the value of attribute item

Returns:

  • (Object)

    the current value of item



4
5
6
# File 'app/helpers/spree/admin/orders_helper.rb', line 4

def item
  @item
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



4
5
6
# File 'app/helpers/spree/admin/orders_helper.rb', line 4

def label
  @label
end

Instance Method Details

#nameObject



5
6
7
8
9
10
11
# File 'app/helpers/spree/admin/orders_helper.rb', line 5

def name
  Spree::Deprecation.warn("TaxLine is deprecated and will be removed in Spree 5.5")
  item_name = item.name
  item_name += " #{Spree.t(:shipment).downcase}" if for_shipment

  "#{label} (#{item_name})"
end