Skip to content

Commit

Permalink
Improve producer mail
Browse files Browse the repository at this point in the history
Adjust styling (added h4) to order summary table in order confirmation email etc.

Add 'Total:' to last row of table and make the last row bold.
  • Loading branch information
drummer83 committed Sep 21, 2024
1 parent 3b3968b commit 4fffe4b
Showing 1 changed file with 30 additions and 16 deletions.
46 changes: 30 additions & 16 deletions app/views/producer_mailer/order_cycle_report.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,27 @@
%thead
%tr
%th
= t :sku
%h4
= t :sku
- if @distributors_pickup_times.many?
%th
= t :supplier
%h4
= t :supplier
%th
= t :product
%h4
= t :product
%th.text-right
= t :quantity
%h4
= t :quantity
%th.text-right
= t :price
%h4
= t :price
%th.text-right
= t :subtotal
%h4
= t :subtotal
%th.text-right
= t :included_tax
%h4
= t :included_tax
%tbody
- @grouped_line_items.each_pair do |product_and_full_name, line_items|
%tr
Expand All @@ -65,30 +72,37 @@
%td
%td
%td
%td
%td.text-right
= @total
%strong= "#{t('total')}:"
%td.text-right
%strong= @total
%td.text-right
= @tax_total
%strong= @tax_total
- if @customer_line_items
%p
= t('.order_customer_text')
%table.order-summary.customer-order
%thead
%tr
%th
= t :sku
%h4
= t :sku
- if @distributors_pickup_times.many?
%th
= t :supplier
%h4
= t :supplier
%th
= t :product
%h4
= t :product
%th.text-right
= t :quantity
%h4
= t :quantity
%th.text-right
= t :first_name
%h4
= t :first_name
%th.text-right
= t :last_name
%h4
= t :last_name
%tbody
- @customer_line_items.each do |line_item|
%tr
Expand Down

0 comments on commit 4fffe4b

Please sign in to comment.