fix the timeline stay issue (right side)

This commit is contained in:
Torsten
2023-06-10 12:03:32 +03:00
parent 9dcc422f75
commit 7c5df992ed
3 changed files with 9 additions and 7 deletions

View File

@ -23,7 +23,8 @@ module TimelineHelper
start = member.arriving
start = Date.today.at_beginning_of_month if member.arriving < Date.today.at_beginning_of_month
distance = ( member.leaving - member.arriving ).to_i
distance > max_days ? max_days : distance
max = max_days - started_days(member)
distance > max ? max : distance
end
def weekly
data = {}