Skip to content

Commit

Permalink
HUDS: agregar fecha de creacion de la consulta en PDF
Browse files Browse the repository at this point in the history
  • Loading branch information
ma7payne authored and negro89 committed Jun 3, 2024
1 parent 98125f9 commit a941f22
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions modules/descargas/informe-rup/informe-body.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,14 @@ export class InformeRupBody extends HTMLComponent {
</h6>
{{/if}}
</div>
<div class="contenedor-bloque-texto">
<h6 class="bolder">
Inicio de Prestación
</h6>
<h6>
{{ fechaPrestacion }}hs
</h6>
</div>
</article>
<hr>
<div class="registros">
Expand All @@ -58,6 +66,7 @@ export class InformeRupBody extends HTMLComponent {

const fechaEjecucion = this.prestacion.ejecucion.fecha;
const fechaValidacion = this.getFechaEstado('validada');
const fechaPrestacion = this.prestacion.estados.find(estado => { return estado.tipo === 'ejecucion'; }).createdAt;
const esValidada = (fechaValidacion !== null);

if (this.registroId) {
Expand All @@ -82,6 +91,7 @@ export class InformeRupBody extends HTMLComponent {

fechaEjecucion: fechaEjecucion && moment(fechaEjecucion).format('DD/MM/YYYY HH:mm'),
fechaValidacion: fechaValidacion && moment(fechaValidacion).format('DD/MM/YYYY HH:mm'),
fechaPrestacion: fechaPrestacion && moment(fechaPrestacion).format('DD/MM/YYYY HH:mm'),
titulo: this.prestacion.solicitud.tipoPrestacion.term,
registros,
esValidada,
Expand Down

0 comments on commit a941f22

Please sign in to comment.