mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-18 00:17:25 +00:00
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
= wicked_pdf_stylesheet_link_tag "mail/all"
|
|
|
|
|
|
%table{:width => "100%"}
|
|
%tbody
|
|
%tr{ valign: "top" }
|
|
%td{ :align => "left" }
|
|
%h4
|
|
- if @order.total_tax > 0
|
|
= "TAX"
|
|
= "INVOICE: "
|
|
= "#{@order.number}"
|
|
%td{width: "10%" }
|
|
|
|
%td{ :align => "right" }
|
|
%h4= Time.zone.now.strftime("%F")
|
|
%tr{ valign: "top" }
|
|
%td{ :align => "left" }
|
|
%strong= "From: #{@order.distributor.name}"
|
|
- if @order.distributor.abn.present?
|
|
%br
|
|
= "ABN: #{@order.distributor.abn}"
|
|
%br
|
|
= @order.distributor.address.full_address
|
|
%br
|
|
= @order.distributor.email
|
|
%td{width: "10%" }
|
|
|
|
%td{ :align => "right" }
|
|
%strong= "To: #{@order.ship_address.full_name}"
|
|
- if @order.customer.code.present?
|
|
%br
|
|
= "Code: #{@order.customer.code}"
|
|
%br
|
|
= @order.ship_address.full_address
|
|
%br
|
|
= "#{@order.customer.email},"
|
|
= "#{@order.bill_address.phone}"
|
|
|
|
= render 'spree/admin/orders/invoice_table'
|
|
= render 'spree/order_mailer/payment'
|