Skip to content

Commit

Permalink
Not requiring every billing period to have matching alcohol consumpti…
Browse files Browse the repository at this point in the history
…on anymore
  • Loading branch information
rmatei committed Nov 15, 2011
1 parent 669626b commit d84f4dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/billing_period.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def claim_expenses_for_period
Expense.update_all(["billing_period_id = ?", id], ["created_at >= ? AND created_at <= ?", start_time, end_time])
TalliedConsumption.update_all(["billing_period_id = ?", id], ["created_at >= ? AND created_at <= ?", start_time, end_time])

raise "Need to have entered alcohol consumption for the month!" unless tallied_consumptions.count >= User.count * TalliedItem.count
# raise "Need to have entered alcohol consumption for the month!" unless tallied_consumptions.count >= User.count * TalliedItem.count
puts "#{expenses.count} expenses for current billing period"
puts "#{tallied_consumptions.count} tallied_consumptions for current billing period"
end
Expand Down

0 comments on commit d84f4dd

Please sign in to comment.