mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-28 01:53:25 +00:00
Add i18n for payment state key
+ update spec
This commit is contained in:
@@ -15,7 +15,7 @@ module Reporting
|
||||
protected
|
||||
|
||||
def payment_state(order)
|
||||
order.payment_state
|
||||
I18n.t "spree.payment_states.#{order.payment_state}"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -86,7 +86,7 @@ describe "Payments Reports" do
|
||||
].join(" ").upcase)
|
||||
|
||||
expect(page.find("table.report__table tbody tr").text).to have_content([
|
||||
order.payment_state,
|
||||
"credit owed",
|
||||
order.distributor.name,
|
||||
order.item_total.to_f + other_order.item_total.to_f,
|
||||
order.ship_total.to_f + other_order.ship_total.to_f,
|
||||
|
||||
Reference in New Issue
Block a user