sigesp 0.9.23-20221230 → 0.9.24-20230111

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.
@@ -187,6 +187,7 @@ class MEnterprise extends MBasicModel {
187
187
  this.cuentaPasivoDiferido = '';
188
188
  this.cuentAnterior = '';
189
189
  this.cuentSobrante = '';
190
+ this.diaFechaVencimiento = 0;
190
191
  if (e) {
191
192
  this.idEmpresa = +e.id_empresa;
192
193
  this.idEnterprise = +e.id_enterprise;
@@ -205,6 +206,7 @@ class MEnterprise extends MBasicModel {
205
206
  this.cuentaPasivoDiferido = e.sc_cuenta_pasivo_diferido;
206
207
  this.cuentAnterior = e.sc_cuenta_ant;
207
208
  this.cuentSobrante = e.spi_cuenta_sobrante;
209
+ this.diaFechaVencimiento = +e.diafecven;
208
210
  }
209
211
  else {
210
212
  this.isNew = true;
@@ -228,7 +230,8 @@ class MEnterprise extends MBasicModel {
228
230
  sc_cuenta_perdida: this.cuentaPerdida,
229
231
  sc_cuenta_pasivo_diferido: this.cuentaPasivoDiferido,
230
232
  sc_cuenta_ant: this.cuentAnterior,
231
- spi_cuenta_sobrante: this.cuentSobrante
233
+ spi_cuenta_sobrante: this.cuentSobrante,
234
+ diafecven: this.diaFechaVencimiento.toString(),
232
235
  };
233
236
  }
234
237
  }
@@ -2811,20 +2814,41 @@ class MConfigSSS extends MBasicModel {
2811
2814
  class MAdministrativeUnit extends MBasicModel {
2812
2815
  constructor(unidad) {
2813
2816
  super();
2814
- this.id_empresa = null;
2815
- this.codigo = null;
2817
+ this.idEmpresa = 0;
2818
+ this.idEnterprise = 0;
2819
+ this.codigo = 0;
2816
2820
  this.denominacion = '';
2817
- this.unidadcentral = null;
2818
- this.emitereq = null;
2819
- this.centrocosto = '';
2820
- this.id = null;
2821
- this.id_empresa = unidad.id_empresa;
2822
- this.codigo = unidad.coduniadm;
2823
- this.denominacion = unidad.denuniadm;
2824
- this.unidadcentral = unidad.coduac;
2825
- this.emitereq = unidad.estemireq;
2826
- this.centrocosto = unidad.codcencos;
2827
- this.id = parseInt(unidad.id_uniadm);
2821
+ this.unidadCentral = 0;
2822
+ this.emiteRequisicion = 0;
2823
+ this.centroCosto = '';
2824
+ this.id = 0;
2825
+ this.denominacionUnidadCentral = '';
2826
+ if (unidad) {
2827
+ this.idEmpresa = unidad.id_empresa;
2828
+ this.idEnterprise = unidad.id_enterprise;
2829
+ this.codigo = unidad.coduniadm;
2830
+ this.denominacion = unidad.denuniadm;
2831
+ this.unidadCentral = unidad.coduac;
2832
+ this.emiteRequisicion = unidad.estemireq;
2833
+ this.centroCosto = unidad.codcencos;
2834
+ this.id = unidad.id_uniadm;
2835
+ this.denominacionUnidadCentral = unidad.denuac;
2836
+ }
2837
+ else {
2838
+ this.isNew = true;
2839
+ }
2840
+ }
2841
+ dataInterface() {
2842
+ return {
2843
+ id_empresa: this.idEmpresa,
2844
+ id_enterprise: this.idEnterprise,
2845
+ coduniadm: this.codigo,
2846
+ coduac: this.unidadCentral,
2847
+ denuniadm: this.denominacion,
2848
+ estemireq: this.emiteRequisicion,
2849
+ codcencos: this.centroCosto,
2850
+ id_uniadm: this.id,
2851
+ };
2828
2852
  }
2829
2853
  }
2830
2854