Fixed discipline calc bug
Fixed Closed Period Dialog, Fixed Discipline in two sesions