mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
fix linter issue
This commit is contained in:
@@ -72,7 +72,7 @@ class Invoice
|
||||
tax_adjustment_totals.map do |tax_rate_id, tax_amount|
|
||||
tax_rate = tax_rate_by_id[tax_rate_id]
|
||||
{
|
||||
amount: Spree::Money.new(tax_amount, currency: currency),
|
||||
amount: Spree::Money.new(tax_amount, currency:),
|
||||
percentage: number_to_percentage(tax_rate.amount * 100, precision: 1),
|
||||
rate_amount: tax_rate.amount,
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ describe '
|
||||
order.payments << create(:payment, :completed, order:,
|
||||
payment_method: payment_method1,
|
||||
created_at: 1.day.ago)
|
||||
order.payments << create(:payment, order: order, state: 'failed',
|
||||
order.payments << create(:payment, order:, state: 'failed',
|
||||
payment_method: payment_method2,
|
||||
created_at: 2.days.ago)
|
||||
order.save!
|
||||
|
||||
Reference in New Issue
Block a user