refactor(comp retencion):  edita query agrega campos