Skip to content

Commit

Permalink
feat(gdu): suma datos de matricula externa a detalle de usuario
Browse files Browse the repository at this point in the history
  • Loading branch information
juuliotero authored and kroce committed Nov 1, 2021
1 parent d9678c1 commit 57a73c0
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export class UsuarioDetalleComponent implements OnChanges {
getProfesional(user) {
return this.profesionalService.get({
documento: user.usuario,
fields: 'id documento nombre apellido profesionalMatriculado formacionGrado'
fields: 'id documento nombre apellido profesionalMatriculado formacionGrado matriculaExterna profesionExterna'
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
</plex-badge>
<ng-template #notProfesional>
<plex-badge type="default">
No profesional
Sin datos
</plex-badge>
</ng-template>

Expand All @@ -23,6 +23,12 @@

<div subtitle>
<plex-copy *ngIf="usuario.documento" [value]="usuario.documento">{{ usuario.documento | number }}</plex-copy>
<div *ngIf="(profesional$ | async) as profesional">
<plex-label titulo="Observaciones"
*ngIf="!profesional.profesionalMatriculado && profesional.matriculaExterna" subtitulo="{{ profesional.profesionExterna?
profesional.profesionExterna.nombre + ' MAT. N° '+ profesional.matriculaExterna : profesional.matriculaExterna
}}">
</plex-label>
</div>
</div>

</plex-detail>
</plex-detail>
2 changes: 2 additions & 0 deletions src/app/interfaces/IProfesional.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,4 +78,6 @@ export interface IProfesional {
fechaDeInscripcion?: Date;
}];
profesionalMatriculado: Boolean;
profesionExterna: any;
matriculaExterna: String;
}

0 comments on commit 57a73c0

Please sign in to comment.