resolve error gerCurrentPeriode() not found