Do not show tax lines if there is no tax on the order

This commit is contained in:
Rohan Mitchell
2015-04-02 16:07:19 +11:00
parent a93633a626
commit 08fef890ec
2 changed files with 12 additions and 10 deletions

View File

@@ -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  

View File

@@ -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