From 4fffe4b9c88b166f8606a0a457381b18f0b4486e Mon Sep 17 00:00:00 2001 From: drummer83 Date: Sun, 18 Feb 2024 21:32:48 +0100 Subject: [PATCH] Improve producer mail 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. --- .../order_cycle_report.html.haml | 46 ++++++++++++------- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/app/views/producer_mailer/order_cycle_report.html.haml b/app/views/producer_mailer/order_cycle_report.html.haml index 1ddc1807da..adf39e105d 100644 --- a/app/views/producer_mailer/order_cycle_report.html.haml +++ b/app/views/producer_mailer/order_cycle_report.html.haml @@ -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 @@ -65,11 +72,12 @@ %td %td %td - %td %td.text-right - = @total + %strong= "#{t('total')}:" %td.text-right - = @tax_total + %strong= @total + %td.text-right + %strong= @tax_total - if @customer_line_items %p = t('.order_customer_text') @@ -77,18 +85,24 @@ %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