try to correct nextPeriod function in PMG server script
Merge branch 'master' of https://github.com/Heigvd/Wegas