Skip to content

Commit

Permalink
fixed bug where billing degree for the current month in a previous ye…
Browse files Browse the repository at this point in the history
…ar was wrong
  • Loading branch information
Håkon Torjus Bommen committed Feb 5, 2011
1 parent 4c9d720 commit cbe2c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/period.rb
Expand Up @@ -47,7 +47,7 @@ def activities

def find_reported_upto_day
today = Date.today
if today.month == @start.month
if today.month == @start.month && today.year == @start.year
@user.time_entries.on_day(today).empty? ? today - 1: today
elsif today > @end
@end
Expand Down

0 comments on commit cbe2c40

Please sign in to comment.