Method: Issue#reschedule_on

Defined in:
app/models/issue.rb

#reschedule_on(date) ⇒ Object

Sets start_date on the given date or the next working day and changes due_date to keep the same working duration.



1407
1408
1409
1410
1411
1412
# File 'app/models/issue.rb', line 1407

def reschedule_on(date)
  wd = working_duration
  date = next_working_date(date)
  self.start_date = date
  self.due_date = add_working_days(date, wd)
end