i_start_date = (i.start_date >= @date_from ? i.start_date : @date_from )\r
i_end_date = (i.due_date <= @date_to ? i.due_date : @date_to )\r
\r
- i_done_date = i.start_date + ((i.due_date - i.start_date)*i.done_ratio/100).floor\r
+ i_done_date = i.start_date + ((i.due_date - i.start_date+1)*i.done_ratio/100).floor\r
i_done_date = (i_done_date <= @date_from ? @date_from : i_done_date )\r
i_done_date = (i_done_date >= @date_to ? @date_to : i_done_date )\r
\r
i_start_date = (i.start_date >= @date_from ? i.start_date : @date_from )\r
i_end_date = (i.due_date <= @date_to ? i.due_date : @date_to )\r
\r
- i_done_date = i.start_date + ((i.due_date - i.start_date)*i.done_ratio/100).floor\r
+ i_done_date = i.start_date + ((i.due_date - i.start_date+1)*i.done_ratio/100).floor\r
i_done_date = (i_done_date <= @date_from ? @date_from : i_done_date )\r
i_done_date = (i_done_date >= @date_to ? @date_to : i_done_date )\r
\r