mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
swap tax rate with total price (incl tax)
This commit is contained in:
@@ -7,11 +7,11 @@
|
||||
%h5= t(:invoice_column_qty)
|
||||
%th{:align => "right", :width => "15%"}
|
||||
%h5= @order.has_taxes_included ? t(:invoice_column_unit_price_with_taxes) : t(:invoice_column_unit_price_without_taxes)
|
||||
%th{:align => "right", :width => "15%"}
|
||||
%h5= @order.has_taxes_included ? t(:invoice_column_price_with_taxes) : t(:invoice_column_price_without_taxes)
|
||||
- if @order.total_tax > 0
|
||||
%th{:align => "right", :width => "15%"}
|
||||
%h5= t(:invoice_column_tax_rate)
|
||||
%th{:align => "right", :width => "15%"}
|
||||
%h5= @order.has_taxes_included ? t(:invoice_column_price_with_taxes) : t(:invoice_column_price_without_taxes)
|
||||
%tbody
|
||||
- @order.sorted_line_items.each do |item|
|
||||
%tr
|
||||
@@ -24,11 +24,11 @@
|
||||
= item.quantity
|
||||
%td{:align => "right"}
|
||||
= item.single_display_amount_with_adjustments
|
||||
%td{:align => "right"}
|
||||
= item.display_amount_with_adjustments
|
||||
- if @order.total_tax > 0
|
||||
%td{:align => "right"}
|
||||
= item.display_line_item_tax_rates
|
||||
%td{:align => "right"}
|
||||
= item.display_amount_with_adjustments
|
||||
|
||||
- @order.checkout_adjustments(exclude: [:line_item]).reverse_each do |adjustment|
|
||||
%tr
|
||||
|
||||
Reference in New Issue
Block a user