mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-28 21:07:16 +00:00
83 lines
2.7 KiB
Plaintext
83 lines
2.7 KiB
Plaintext
= pdf_stylesheet_pack_tag "mail"
|
|
|
|
%table{:width => "100%"}
|
|
%tbody
|
|
%tr{ valign: "top" }
|
|
%td{ :align => "left", colspan: 3 }
|
|
%h6
|
|
= "#{t('spree.admin.orders.invoice.issued_on')}: "
|
|
= l @order.invoice_date
|
|
%tr{ valign: "top" }
|
|
%td{ :align => "left" }
|
|
%h4
|
|
= "#{t('spree.admin.orders.invoice.tax_invoice')}: "
|
|
= "#{@order.number}"
|
|
%td{width: "10%" }
|
|
|
|
%td{ :align => "right" }
|
|
%h4= @order.order_cycle.name
|
|
%tr{ valign: "top" }
|
|
%td{ align: "left", colspan: 3 }
|
|
- if @order.distributor.business_address.blank?
|
|
%strong= "#{t('spree.admin.orders.invoice.from')}: #{@order.distributor.name}"
|
|
- else
|
|
%strong= "#{t('spree.admin.orders.invoice.from')}: #{@order.distributor.business_address.company}"
|
|
- if @order.distributor.abn.present?
|
|
%br
|
|
= "#{t(:abn)} #{@order.distributor.abn}"
|
|
%br
|
|
- if @order.distributor.business_address.blank?
|
|
= @order.distributor.address.full_address
|
|
- else
|
|
= @order.distributor.business_address.full_address
|
|
%br
|
|
= @order.distributor.contact.email
|
|
%tr{ valign: "top" }
|
|
%td{ colspan: 3 }
|
|
|
|
%tr{ valign: "top" }
|
|
%td{ align: "left" }
|
|
%strong= "#{t('spree.admin.orders.invoice.to')}:"
|
|
%br
|
|
- if @order.bill_address
|
|
= @order.bill_address.full_name
|
|
- if @order.customer.code.present?
|
|
%br
|
|
= "#{t('spree.admin.orders.invoice.code')}: #{@order.customer.code}"
|
|
%br
|
|
- if @order.bill_address
|
|
= @order.bill_address.full_address
|
|
%br
|
|
- if @order.customer.email.present?
|
|
= "#{@order.customer.email},"
|
|
- if @order.bill_address
|
|
= "#{@order.bill_address.phone}"
|
|
%td
|
|
|
|
%td{ align: "left", style: "border-left: .1em solid black; padding-left: 1em" }
|
|
%strong= "#{t('spree.admin.orders.invoice.shipping')}: #{@order.shipping_method.name}"
|
|
- if @order.shipping_method.require_ship_address
|
|
%br
|
|
= @order.ship_address.full_name
|
|
%br
|
|
= @order.ship_address.full_address
|
|
%br
|
|
= @order.ship_address.phone
|
|
- if @order.special_instructions.present?
|
|
%br
|
|
%br
|
|
%strong= t :customer_instructions
|
|
= @order.special_instructions
|
|
|
|
|
|
= render 'spree/admin/orders/invoice_table3'
|
|
|
|
- if @order.distributor.invoice_text.present?
|
|
%p
|
|
= @order.distributor.invoice_text
|
|
|
|
= render 'spree/admin/orders/_invoice/payment'
|
|
|
|
- if @order.note.present?
|
|
= render partial: 'spree/admin/orders/_invoice/order_note'
|