Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #429 from ServiceInnovationLab/chore/prepare-dev-f…
Browse files Browse the repository at this point in the history
…or-prod

update for prod
  • Loading branch information
mischa-s authored Jun 24, 2019
2 parents 4da33df + 7462a23 commit 2f9cfcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 3 additions & 5 deletions app/services/rates_importer_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,9 @@ def import(row, rating_year, council)
end
rates_bill = RatesBill.find_by(property: property, rating_year: rating_year)

if rates_bill.present?
# current_rates = rates_bill.total_rates.to_f.round(2)
# new_rates = (total_rates.to_f + total_water_rates.to_f).round(2)
# raise 'mismatch total_rates' unless current_rates == new_rates
else
# future work is required to handle when rates change for a property
# this is complicated by the fact we use rates_bills[0] throughout the code
unless rates_bill.present?
RatesBill.create!(
property: property,
rating_year: rating_year,
Expand Down
4 changes: 1 addition & 3 deletions app/services/rebate_forms_service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ def initialize(rebate_form_attributes)
def create!
council = find_council!
property = find_or_create_property!(council)
rebate_form = create_rebate_form!(property)

rebate_form
create_rebate_form!(property)
end

private
Expand Down

0 comments on commit 2f9cfcc

Please # to comment.