Skip to content

Commit

Permalink
fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lovrocolic committed Jul 15, 2024
1 parent 4c05e50 commit 9fe2ff4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/services/invoices/apply_provider_taxes_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def fetch_provider_taxes_result
def calculate_key(tax)
tax_rate = tax.rate.is_a?(String) ? tax.rate.to_f * 100 : tax.rate

"#{tax.type}-#{tax.name.parameterize(separator: '_')}-#{tax_rate.to_s}"
"#{tax.type}-#{tax.name.parameterize(separator: "_")}-#{tax_rate}"
end
end
end
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class RemoveNullConstraintOnAppliedTaxes < ActiveRecord::Migration[7.1]
def change
change_column_null :fees_taxes, :tax_id, true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
[
OpenStruct.new(
tax_breakdown: [
OpenStruct.new(name: 'tax 1', type: 'type1', rate: '0.10'),
OpenStruct.new(name: 'tax 1', type: 'type1', rate: '0.10')
]
),
OpenStruct.new(
Expand Down

0 comments on commit 9fe2ff4

Please sign in to comment.