validate if the periodo variable is null
attribute mat_id instead of est_id attribute