gantt correction
git-svn-id: http://redmine.rubyforge.org/svn/trunk@53 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
51317b350c
commit
67e81b0ae9
@ -117,7 +117,7 @@ pdf.SetFont('Arial','B',7)
|
||||
i_start_date = (i.start_date >= @date_from ? i.start_date : @date_from )
|
||||
i_end_date = (i.due_date <= @date_to ? i.due_date : @date_to )
|
||||
|
||||
i_done_date = i.start_date + ((i.due_date - i.start_date)*i.done_ratio/100).floor
|
||||
i_done_date = i.start_date + ((i.due_date - i.start_date+1)*i.done_ratio/100).floor
|
||||
i_done_date = (i_done_date <= @date_from ? @date_from : i_done_date )
|
||||
i_done_date = (i_done_date >= @date_to ? @date_to : i_done_date )
|
||||
|
||||
|
@ -202,7 +202,7 @@ top = headers_heigth + 12
|
||||
i_start_date = (i.start_date >= @date_from ? i.start_date : @date_from )
|
||||
i_end_date = (i.due_date <= @date_to ? i.due_date : @date_to )
|
||||
|
||||
i_done_date = i.start_date + ((i.due_date - i.start_date)*i.done_ratio/100).floor
|
||||
i_done_date = i.start_date + ((i.due_date - i.start_date+1)*i.done_ratio/100).floor
|
||||
i_done_date = (i_done_date <= @date_from ? @date_from : i_done_date )
|
||||
i_done_date = (i_done_date >= @date_to ? @date_to : i_done_date )
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user