%tfoot
  #subtotal
    %tr#subtotal-row.total
      %td.text-right{colspan: "3"}
        %strong
          = t :order_produce
      %td.text-right.total
        %span= display_checkout_subtotal(order)

  #order-charges
    - checkout_adjustments_for(order, exclude: [:line_item]).reverse_each do |adjustment|
      %tr.total
        %td.text-right{:colspan => "3"}
          %strong
            - if adjustment.originator_type == "Voucher"
              = "#{t(:voucher)}:"
            = adjustment.label
        %td.text-right.total
          %span= adjustment.display_amount.to_html

  #order-total.order-details-total
    %tr.total
      %td.text-right{colspan: "3"}
        %h5
          = t :order_total_price
      %td.text-right.total
        %h5#order_total= order.display_total.to_html
    %tr.total
      %td.text-right{colspan: "3"}
        %strong
          = t :order_amount_paid
      %td.text-right.total{id: "amount-paid"}
        %strong
          = order.display_payment_total.to_html
  - if order.outstanding_balance.positive?
    %tr.total
      %td.text-right{colspan: "3"}
        %h5.not-paid
          = t :order_balance_due
      %td.text-right.total.not-paid
        %h5.not-paid
          = order.display_outstanding_balance.to_html
  - if order.outstanding_balance.negative?
    %tr.total
      %td.text-right{colspan: "3"}
        %h5
          = t :credit_owed
      %td.text-right.total
        %h5
          = order.display_outstanding_balance.to_html

  - if order.total_tax.positive?
    #tax
      %tr#tax-row.total
        %td.text-right{colspan: "3"}
          = t :order_includes_tax
        %td.text-right.total
          %span= display_checkout_tax_total(order)
