~unifield-team/unifield-wm/us-826

« back to all changes in this revision

Viewing changes to stock_schedule/schedule.py

  • Committer: chloups208
  • Date: 2011-06-30 14:54:26 UTC
  • mto: (307.2.1 unifield-wm)
  • mto: This revision was merged to the branch mainline in revision 311.
  • Revision ID: chloups208@chloups208-laptop-20110630145426-qsj5j0pp3e5b23bc
[UF-53][UF-58][UF-63] initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
                    if start_date < today():
257
257
                        start_date = today()
258
258
                    next_date = start_date + RelativeDate(weekday=(day,frequence.monthly_choose_freq))
259
 
                    while next_date < start_date:
260
 
                        next_date = next_date + RelativeDate(months=1, weekday=(day,frequence.monthly_choose_freq))
 
259
                    if next_date < start_date:
 
260
                        next_date = start_date + RelativeDate(months=1, weekday=(day,frequence.monthly_choose_freq))
261
261
                    return next_date
262
262
 
263
263
            elif frequence.monthly_repeating_ok: