mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Merge pull request #11114 from lauriejefferson/not-paid-order-confirmations-resemble-paid-orders-7603
Not paid order confirmations resemble paid orders 7603
This commit is contained in:
@@ -204,6 +204,9 @@ module Spree
|
||||
Spree::Money.new(total, 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,6 +25,29 @@
|
||||
= 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
|
||||
%strong
|
||||
= order.display_payment_total.to_html
|
||||
- if order.outstanding_balance? && order.outstanding_balance > 0
|
||||
%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
|
||||
- else
|
||||
%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 > 0
|
||||
#tax
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
.row
|
||||
.columns.large-6
|
||||
.order-summary.text-small
|
||||
.right
|
||||
- if order.paid?
|
||||
- if order.paid?
|
||||
.right
|
||||
= t :order_paid
|
||||
- else
|
||||
- else
|
||||
.right.not-paid
|
||||
= t :order_not_paid
|
||||
%span
|
||||
= t :order_total
|
||||
|
||||
@@ -108,3 +108,13 @@ checkout {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.not-paid {
|
||||
color: #f40f0f;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.paid {
|
||||
color: black;
|
||||
font-weight: 400;
|
||||
}
|
||||
@@ -2206,7 +2206,9 @@ en:
|
||||
order_pickup_time: Ready for collection
|
||||
order_pickup_instructions: Collection Instructions
|
||||
order_produce: Produce
|
||||
order_amount_paid: Amount Paid
|
||||
order_total_price: Total
|
||||
order_balance_due: Balance Due
|
||||
order_includes_tax: (includes tax)
|
||||
order_payment_paypal_successful: Your payment via PayPal has been processed successfully.
|
||||
order_hub_info: Hub Info
|
||||
|
||||
Reference in New Issue
Block a user