Autoresolve procedure and awards periods initialization
refactor procedure periods initialization: go through all periods and try to define periods
pseudocode:
periods = procedure.specs["periods"]["procedure"]
while not all_periods_resolved:
for period in periods:
try:
calculate_period(procedure, period)
except:
continue
if not any_periods_resolved:
raise Exception("cannot resolve periods on state")
Edited by dmitry.mashoshin