mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update db/migrate/20210406161242_migrate_enterprise_fee_tax_amounts.rb
Co-authored-by: Maikel <maikel@email.org.au>
This commit is contained in:
@@ -83,8 +83,6 @@ class MigrateEnterpriseFeeTaxAmounts < ActiveRecord::Migration[5.0]
|
||||
end
|
||||
|
||||
def tax_rate_for(tax_category)
|
||||
return if tax_category.nil?
|
||||
|
||||
tax_category.tax_rates.first
|
||||
tax_category&.tax_rates&.first
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user