sigesp 0.9.58-20230906 → 0.9.60-20230910

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4780,6 +4780,9 @@ class MPersonal extends MBasicModel {
4780
4780
  this.descripcionPuestoTrabajo = '';
4781
4781
  this.codigoPuestoTrabajo = '';
4782
4782
  this.descripcionHorario = '';
4783
+ this.fechaDefuncion = '';
4784
+ this.fechaActaDefuncion = '';
4785
+ this.numeroActaDefuncion = '';
4783
4786
  if (p) {
4784
4787
  this.idEnterprise = +p.id_enterprise;
4785
4788
  this.idEmpresa = p.id_empresa;
@@ -4896,6 +4899,9 @@ class MPersonal extends MBasicModel {
4896
4899
  this.montoPension = +p.monpen;
4897
4900
  this.idPlanHorario = +p.id_planhor;
4898
4901
  this.idHora = +p.id_hora;
4902
+ this.fechaDefuncion = p.fecdef;
4903
+ this.fechaActaDefuncion = p.fecactdef;
4904
+ this.numeroActaDefuncion = p.numactdef;
4899
4905
  if (this.idPlanHorario > 0) {
4900
4906
  this.codigoPlanHorario = p.codplanhor;
4901
4907
  this.descripcionPlanHorario = p.denplanhor;
@@ -5012,6 +5018,9 @@ class MPersonal extends MBasicModel {
5012
5018
  id_planhor: this.idPlanHorario.toString(),
5013
5019
  id_hora: this.idHora.toString(),
5014
5020
  id_puetra: this.idPuestoTrabajo.toString(),
5021
+ fecdef: this.fechaDefuncion,
5022
+ fecactdef: this.fechaActaDefuncion,
5023
+ numactdef: this.numeroActaDefuncion,
5015
5024
  };
5016
5025
  }
5017
5026
  }
@@ -7072,9 +7081,9 @@ class SigespService {
7072
7081
  *
7073
7082
  */
7074
7083
  getCompany(tipo, id) {
7075
- return this.http.get(`${this.URL}/dao/cfg/empresas_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7084
+ return this.http.get(`${this.URL}/dao/cfg/empresas_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7076
7085
  if (res.success) {
7077
- res.data = res.data.map(e => new MEmpresa());
7086
+ res.data = res.data.map(e => new MEmpresa(e));
7078
7087
  }
7079
7088
  return res;
7080
7089
  }));
@@ -8527,6 +8536,8 @@ class MBeneficiario extends MBasicModel {
8527
8536
  this.denominacionTipoCuenta = '';
8528
8537
  this.medidaActiva = false;
8529
8538
  this.tribunal = '';
8539
+ this.fechaResolucion = '';
8540
+ this.numeroResolucion = '';
8530
8541
  if (e) {
8531
8542
  this.idEnterprise = +e.id_enterprise;
8532
8543
  this.idEmpresa = +e.id_empresa;
@@ -8554,6 +8565,8 @@ class MBeneficiario extends MBasicModel {
8554
8565
  this.nexoFamiliar = e.nexfam;
8555
8566
  this.nombreBanco = e.nomban;
8556
8567
  this.denominacionTipoCuenta = e.nomtipcta;
8568
+ this.fechaResolucion = e.fecres;
8569
+ this.numeroResolucion = e.numres;
8557
8570
  }
8558
8571
  else {
8559
8572
  this.isNew = true;
@@ -8577,6 +8590,8 @@ class MBeneficiario extends MBasicModel {
8577
8590
  numexpben: this.numeroExpedienteBeneficiario,
8578
8591
  medact: this.medidaActiva ? '1' : '0',
8579
8592
  tribunal: this.tribunal,
8593
+ fecres: this.fechaResolucion,
8594
+ numres: this.numeroResolucion,
8580
8595
  };
8581
8596
  }
8582
8597
  }