mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
removed paid styling and added currency formatter to payment_total
This commit is contained in:
@@ -188,6 +188,9 @@ module Spree
|
||||
Spree::Money.new(total, currency: currency)
|
||||
end
|
||||
|
||||
def display_payment_total
|
||||
Spree::Money.new(self.payment_total, currency: currency)
|
||||
end
|
||||
def to_param
|
||||
number.to_s.parameterize.upcase
|
||||
end
|
||||
|
||||
@@ -25,18 +25,18 @@
|
||||
%h5#order_total= order.display_total.to_html
|
||||
%tr.total
|
||||
%td.text-right{colspan: "3"}
|
||||
%h5
|
||||
%strong
|
||||
= t :order_amount_paid
|
||||
%td.text-right.total
|
||||
%h5
|
||||
= order.payment_total
|
||||
%strong
|
||||
= order.display_payment_total.to_html
|
||||
- if order.outstanding_balance?
|
||||
%tr.total
|
||||
%td.text-right{colspan: "3"}
|
||||
%h5.not-paid
|
||||
= t :order_balance_due
|
||||
%td.text-right.total.not-paid
|
||||
%h5.not-paid#balance_due
|
||||
%h5.not-paid
|
||||
= order.display_outstanding_balance.to_html
|
||||
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
.columns.large-6
|
||||
.order-summary.text-small
|
||||
- if order.paid?
|
||||
.right.paid
|
||||
.right
|
||||
= t :order_paid
|
||||
- else
|
||||
.right.not-paid
|
||||
|
||||
Reference in New Issue
Block a user