Sha256: 8676f0a5d7f78e9d9b172e92d44162b9d646a4975ef7614b9e40f69279237689

Contents?: true

Size: 697 Bytes

Versions: 95

Compression:

Stored size: 697 Bytes

Contents

.row.align-items-center
  = f.fields_for :purchasable, (f.object.purchasable || f.object.build_purchasable) do |pf|
    -# Order item fields
    .col
      = f.hidden_field :purchasable_id
      = f.hidden_field :purchasable_type
      = f.number_field :quantity, input_html: { value: f.object.quantity || 1, min: 1 }

    -# Purchasable fields
    .col
      = pf.hidden_field :id
      = pf.text_field :name

    .col= pf.price_field :price

    - if EffectiveOrders.qb_sync? || EffectiveOrders.qb_online?
      .col= pf.text_field :qb_item_name, label: 'Quickbooks Item'

    .col= pf.check_box :tax_exempt, label: "Tax Exempt", title: 'When checked, tax will not be applied to this item'

Version data entries

95 entries across 95 versions & 1 rubygems

Version Path
effective_orders-6.5.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.4.4 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.4.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.4.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.4.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.4.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.3.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.3.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.3.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.2.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.2.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.1.5 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.1.4 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.1.3 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.1.2 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.1.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.1.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.0.1 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-6.0.0 app/views/admin/orders/_order_item_fields.html.haml
effective_orders-5.9.4 app/views/admin/orders/_order_item_fields.html.haml