Sha256: 301cde93f43c6215c473d12c5df8b1f4cb39ed18fcee596dfe3ad5478063572f

Contents?: true

Size: 1.53 KB

Versions: 9

Compression:

Stored size: 1.53 KB

Contents

- @page_title = "#{t('kkt_shoppe.orders.despatch_note.order_number')} #{@order.number}"

.despatchNote
  %header
    %h1= KktShoppe.settings.store_name
    %h2= t("kkt_shoppe.orders.despatch_note.despatch_note")
  .address
    %p.name= @order.delivery_name
    %p= @order.delivery_address1
    %p= @order.delivery_address2
    %p= @order.delivery_address3
    %p= @order.delivery_address4
    %p= @order.delivery_postcode
    %p= @order.delivery_country.try(:name)

  %table.details
    %tr
      %th= t("kkt_shoppe.orders.despatch_note.order_number")
      %th= t("kkt_shoppe.orders.despatch_note.order_placed")
      %th= t("kkt_shoppe.orders.despatch_note.total_weight")
      %th= t("kkt_shoppe.orders.despatch_note.telephone")
    %tr
      %td= @order.number
      %td= @order.received? ? @order.received_at.to_s(:long) : 'n/a'
      %td= number_to_weight @order.total_weight
      %td= @order.phone_number

  %table.items
    %thead
      %tr
        %th= t("kkt_shoppe.orders.despatch_note.quantity")
        %th= t("kkt_shoppe.orders.despatch_note.product")
        %th= t("kkt_shoppe.orders.despatch_note.sku")
        %th= t("kkt_shoppe.orders.despatch_note.weight")
        %th= t("kkt_shoppe.orders.despatch_note.packed?")
    %tbody
      - for item in @order.order_items
        %tr
          %td= item.quantity
          %td= item.ordered_item.full_name
          %td= item.ordered_item.sku
          %td= number_to_weight item.weight
          %td.check

  %p.footer= t('kkt_shoppe.orders.despatch_note.footer', :default => "Thank you for your order!")

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
kkt_shoppe-2.0.2 app/views/kkt_shoppe/orders/despatch_note.html.haml
kkt_shoppe-2.0.1 app/views/kkt_shoppe/orders/despatch_note.html.haml
kkt_shoppe-2.0.0 app/views/kkt_shoppe/orders/despatch_note.html.haml
kkt_shoppe-1.3.0 app/views/kkt_shoppe/orders/despatch_note.html.haml
kkt_shoppe-1.2.1 app/views/kkt_shoppe/orders/despatch_note.html.haml
kkt_shoppe-1.2.0 app/views/kkt_shoppe/orders/despatch_note.html.haml
kkt_shoppe-1.1.2 app/views/kkt_shoppe/orders/despatch_note.html.haml
kkt_shoppe-1.1.1 app/views/kkt_shoppe/orders/despatch_note.html.haml
kkt_shoppe-1.1.0 app/views/kkt_shoppe/orders/despatch_note.html.haml