mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-30 21:27:17 +00:00
Do not show tax lines if there is no tax on the order
This commit is contained in:
@@ -44,9 +44,10 @@
|
||||
%td{:align => "right"}
|
||||
%strong= @order.display_total
|
||||
|
||||
%tr
|
||||
%td{:align => "right", :colspan => "2"}
|
||||
(includes tax):
|
||||
%td{:align => "right"}
|
||||
= display_checkout_tax_total(@order)
|
||||
- if @order.total_tax > 0
|
||||
%tr
|
||||
%td{:align => "right", :colspan => "2"}
|
||||
(includes tax):
|
||||
%td{:align => "right"}
|
||||
= display_checkout_tax_total(@order)
|
||||
%p
|
||||
|
||||
@@ -57,8 +57,9 @@
|
||||
%h5.order-total.grand-total= @order.display_total
|
||||
%td
|
||||
|
||||
%tr
|
||||
%td.text-right{colspan:"3"} (includes tax)
|
||||
%td.text-right
|
||||
%span.order-total.tax-total= display_checkout_tax_total(@order)
|
||||
%td
|
||||
- if @order.total_tax > 0
|
||||
%tr
|
||||
%td.text-right{colspan:"3"} (includes tax)
|
||||
%td.text-right
|
||||
%span.order-total.tax-total= display_checkout_tax_total(@order)
|
||||
%td
|
||||
|
||||
Reference in New Issue
Block a user