sigesp 1.1.2-20240905 → 1.1.3-20240912

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.
Files changed (38) hide show
  1. package/esm2020/lib/core/interfaces/Banco.mjs +1 -1
  2. package/esm2020/lib/core/interfaces/CentroCosto.mjs +1 -1
  3. package/esm2020/lib/core/interfaces/ComprobantePresupuestario.mjs +1 -1
  4. package/esm2020/lib/core/interfaces/Configuracion.mjs +1 -1
  5. package/esm2020/lib/core/interfaces/IBancoCuentasPorPagar.mjs +1 -1
  6. package/esm2020/lib/core/interfaces/Moneda.mjs +1 -1
  7. package/esm2020/lib/core/interfaces/Presupuesto.mjs +1 -1
  8. package/esm2020/lib/core/interfaces/RecursosHumanos.mjs +1 -1
  9. package/esm2020/lib/core/models/CFG/Empresa.model.mjs +12 -9
  10. package/esm2020/lib/core/models/CFG/TasaCambio.model.mjs +7 -4
  11. package/esm2020/lib/core/models/CFG/moneda.model.mjs +7 -7
  12. package/esm2020/lib/core/models/SCG/centroCosto.model.mjs +3 -2
  13. package/esm2020/lib/core/models/SNO/MEstructuraOrganizativa.model.mjs +4 -1
  14. package/esm2020/lib/core/models/SNO/MPersonalNomina.model.mjs +3 -5
  15. package/esm2020/lib/core/models/SPG/administrativeUnit.model.mjs +4 -1
  16. package/esm2020/lib/core/models/SPG/comprobantePresupuestario.model.mjs +5 -2
  17. package/esm2020/lib/core/models/SPG/configurationSPG.model.mjs +2 -2
  18. package/esm2020/lib/sigesp.service.mjs +3 -3
  19. package/fesm2015/sigesp.mjs +40 -25
  20. package/fesm2015/sigesp.mjs.map +1 -1
  21. package/fesm2020/sigesp.mjs +40 -25
  22. package/fesm2020/sigesp.mjs.map +1 -1
  23. package/lib/core/interfaces/Banco.d.ts +6 -0
  24. package/lib/core/interfaces/CentroCosto.d.ts +1 -1
  25. package/lib/core/interfaces/ComprobantePresupuestario.d.ts +3 -0
  26. package/lib/core/interfaces/Configuracion.d.ts +5 -3
  27. package/lib/core/interfaces/IBancoCuentasPorPagar.d.ts +4 -0
  28. package/lib/core/interfaces/Moneda.d.ts +2 -2
  29. package/lib/core/interfaces/Presupuesto.d.ts +3 -0
  30. package/lib/core/interfaces/RecursosHumanos.d.ts +1 -0
  31. package/lib/core/models/CFG/Empresa.model.d.ts +5 -3
  32. package/lib/core/models/CFG/TasaCambio.model.d.ts +2 -1
  33. package/lib/core/models/CFG/moneda.model.d.ts +2 -2
  34. package/lib/core/models/SNO/MEstructuraOrganizativa.model.d.ts +1 -0
  35. package/lib/core/models/SNO/MPersonalNomina.model.d.ts +1 -1
  36. package/lib/core/models/SPG/administrativeUnit.model.d.ts +1 -0
  37. package/lib/core/models/SPG/comprobantePresupuestario.model.d.ts +3 -1
  38. package/package.json +1 -1
@@ -716,9 +716,8 @@ class MPersonalNomina extends MBasicModel {
716
716
  this.idPermisoPersonal = 0;
717
717
  this.codigoPermisoPersonal = '';
718
718
  this.denominacionPermisoPersonal = '';
719
- this.tipoCargo = 'N';
719
+ this.tipoCargo = '';
720
720
  this.denominacionTipoCargo = '';
721
- this.TipoCargo = TipoCargo;
722
721
  if (e) {
723
722
  this.idEnterprise = +e.id_enterprise;
724
723
  this.idEmpresa = e.id_empresa;
@@ -832,7 +831,7 @@ class MPersonalNomina extends MBasicModel {
832
831
  this.denominacionPermisoPersonal = e.denperper;
833
832
  this.codigoPermisoPersonal = e.codperper;
834
833
  this.tipoCargo = e.tipcar;
835
- this.denominacionTipoCargo = this.TipoCargo.find(e => e.value == this.tipoCargo).denominacion;
834
+ this.denominacionTipoCargo = this.TipoCargo.find(e => e.value == e.tipoCargo).denominacion;
836
835
  }
837
836
  else {
838
837
  this.isNew = true;
@@ -1366,7 +1365,7 @@ class MCuentaInstitucional extends MBasicModel {
1366
1365
  class MMoneda extends MBasicModel {
1367
1366
  constructor(moneda) {
1368
1367
  super();
1369
- this.codigo = '';
1368
+ this.id_moneda = 0;
1370
1369
  this.denominacion = '';
1371
1370
  this.iso = '';
1372
1371
  this.simbolo = '';
@@ -1375,7 +1374,7 @@ class MMoneda extends MBasicModel {
1375
1374
  this.decimales = 0;
1376
1375
  this.decimalesAlternos = 0;
1377
1376
  if (moneda) {
1378
- this.codigo = moneda.codmon;
1377
+ this.id_moneda = +moneda.id_moneda;
1379
1378
  this.denominacion = moneda.denmon;
1380
1379
  this.iso = moneda.codiso;
1381
1380
  this.simbolo = moneda.simmon;
@@ -1387,7 +1386,7 @@ class MMoneda extends MBasicModel {
1387
1386
  }
1388
1387
  dataInterface() {
1389
1388
  return {
1390
- codmon: this.codigo,
1389
+ id_moneda: this.id_moneda.toString(),
1391
1390
  denmon: this.denominacion,
1392
1391
  codiso: this.iso,
1393
1392
  simmon: this.simbolo,
@@ -1401,7 +1400,7 @@ class MMoneda extends MBasicModel {
1401
1400
  class MMonedaConfig extends MBasicModel {
1402
1401
  constructor(moneda) {
1403
1402
  super();
1404
- this.codigo = '';
1403
+ this.idMoneda = 0;
1405
1404
  this.denominacion = '';
1406
1405
  this.codigoIso = '';
1407
1406
  this.simbolo = '';
@@ -1410,7 +1409,7 @@ class MMonedaConfig extends MBasicModel {
1410
1409
  this.decimales = 0;
1411
1410
  this.decimalesAlternos = 0;
1412
1411
  if (moneda) {
1413
- this.codigo = moneda.codmon;
1412
+ this.idMoneda = +moneda.id_moneda;
1414
1413
  this.denominacion = moneda.denmon;
1415
1414
  this.codigoIso = moneda.codiso;
1416
1415
  this.separadorDecimal = moneda.separadordec;
@@ -1422,7 +1421,7 @@ class MMonedaConfig extends MBasicModel {
1422
1421
  }
1423
1422
  dataInterface() {
1424
1423
  return {
1425
- codmon: this.codigo,
1424
+ id_moneda: this.idMoneda.toString(),
1426
1425
  denmon: this.denominacion,
1427
1426
  codiso: this.codigoIso,
1428
1427
  simmon: this.simbolo,
@@ -1812,7 +1811,7 @@ class MConfigurationSPG {
1812
1811
  this.codigoONAPRE = configuration.codasiona;
1813
1812
  this.moneda = new MMonedaConfig({
1814
1813
  codiso: configuration.moneda_actual.codiso,
1815
- codmon: configuration.moneda_actual.codmon,
1814
+ id_moneda: configuration.moneda_actual.id_moneda,
1816
1815
  denmon: configuration.moneda_actual.denmon,
1817
1816
  separadordec: configuration.moneda_actual.separadordec,
1818
1817
  separadormil: configuration.moneda_actual.separadormil,
@@ -2009,6 +2008,7 @@ class MCentroCosto extends MBasicModel {
2009
2008
  if (centroCosto) {
2010
2009
  this.idEmpresa = +centroCosto.id_empresa;
2011
2010
  this.idEnterprise = +centroCosto.id_enterprise;
2011
+ this.idCentroCosto = +centroCosto.id_cencos;
2012
2012
  this.centro = centroCosto.centro ? centroCosto.centro : centroCosto.codcencos;
2013
2013
  this.denominacion = centroCosto.denominacion;
2014
2014
  if (centroCosto.usuarios) {
@@ -2023,8 +2023,8 @@ class MCentroCosto extends MBasicModel {
2023
2023
  dataInterface() {
2024
2024
  return {
2025
2025
  id_empresa: this.idEmpresa.toString(),
2026
- id_cencos: this.idCentroCosto.toString(),
2027
2026
  id_enterprise: this.idEnterprise.toString(),
2027
+ id_cencos: this.idCentroCosto.toString(),
2028
2028
  codcencos: this.centro,
2029
2029
  denominacion: this.denominacion,
2030
2030
  usuarios: this.usuarios.map(e => e.dataInterface()),
@@ -2586,6 +2586,7 @@ class MUsuarioSistema extends MBasicModel {
2586
2586
  class MComprobantePresupuestarioEgresos {
2587
2587
  constructor(comprobante) {
2588
2588
  this.idEnterprise = 0;
2589
+ this.idfuenteFinanciamiento = 0;
2589
2590
  this.idEmpresa = parseInt(comprobante.id_empresa);
2590
2591
  this.idEnterprise = +comprobante.id_enterprise;
2591
2592
  this.idComprobante = parseInt(comprobante.id_comprobante);
@@ -2596,7 +2597,8 @@ class MComprobantePresupuestarioEgresos {
2596
2597
  this.idEp5 = parseInt(comprobante.id_ep5);
2597
2598
  this.SPGCuenta = parseInt(comprobante.spg_cuenta);
2598
2599
  this.operacion = comprobante.operacion;
2599
- this.codigoFuenteFinanciamiento = parseInt(comprobante.codfuefin);
2600
+ this.idfuenteFinanciamiento = +comprobante.id_fuefin;
2601
+ this.codigoFuenteFinanciamiento = comprobante.codfuefin;
2600
2602
  this.procede_DOC = comprobante.procede_doc;
2601
2603
  this.documento = comprobante.documento;
2602
2604
  this.codigoCentroCosto = comprobante.codcencos;
@@ -2623,6 +2625,7 @@ class MComprobantePresupuestarioIngresos {
2623
2625
  this.operacion = comprobante.operacion;
2624
2626
  this.procede = comprobante.procede_doc;
2625
2627
  this.documento = comprobante.documento;
2628
+ this.idCentroCosto = comprobante.id_cencos;
2626
2629
  this.centroCosto = comprobante.codcencos;
2627
2630
  this.fecha = comprobante.feccmp;
2628
2631
  this.decripcion = comprobante.descmp;
@@ -3650,6 +3653,7 @@ class MAdministrativeUnit extends MBasicModel {
3650
3653
  this.denominacion = '';
3651
3654
  this.unidadCentral = 0;
3652
3655
  this.emiteRequisicion = true;
3656
+ this.idcentroCosto = 0;
3653
3657
  this.centroCosto = '';
3654
3658
  this.id = 0;
3655
3659
  this.denominacionUnidadCentral = '';
@@ -3664,6 +3668,7 @@ class MAdministrativeUnit extends MBasicModel {
3664
3668
  this.denominacion = unidad.denuniadm;
3665
3669
  this.unidadCentral = +unidad.coduac;
3666
3670
  this.emiteRequisicion = unidad.estemireq == '1' ? true : false;
3671
+ this.idcentroCosto = +unidad.id_cencos;
3667
3672
  this.centroCosto = unidad.codcencos;
3668
3673
  this.denominacionUnidadCentral = unidad.denuac;
3669
3674
  this.codigoUnidadCentral = unidad.codigouac;
@@ -3680,6 +3685,7 @@ class MAdministrativeUnit extends MBasicModel {
3680
3685
  return {
3681
3686
  id_empresa: this.idEmpresa.toString(),
3682
3687
  id_enterprise: this.idEnterprise.toString(),
3688
+ id_cencos: this.idcentroCosto.toString(),
3683
3689
  coduniadm: this.codigo,
3684
3690
  coduac: this.unidadCentral.toString(),
3685
3691
  denuniadm: this.denominacion,
@@ -3851,7 +3857,7 @@ class MEmpresa extends MBasicModel {
3851
3857
  this.codigoMunicipio = '';
3852
3858
  this.codigoParroquia = '';
3853
3859
  this.codigoComunidad = '';
3854
- this.codigoMoneda = '';
3860
+ this.id_moneda = 0;
3855
3861
  this.nombreRepresentanteLegal = '';
3856
3862
  this.cedulaRepresentanteLegal = '';
3857
3863
  this.telefonoRepresentanteLegal = '';
@@ -3871,14 +3877,16 @@ class MEmpresa extends MBasicModel {
3871
3877
  this.idEP3 = 0;
3872
3878
  this.idEP4 = 0;
3873
3879
  this.idEP5 = 0;
3874
- this.codigoFuenteFinanciaminto = 0;
3880
+ this.idFuenteFinanciaminto = 0;
3875
3881
  this.idUnidadAdministrativa = 0;
3876
3882
  this.denominacionUnidadAdministrativa = '';
3877
3883
  this.codigoUnidadAdministrativa = '';
3878
- this.codigoFuenteFinanciamintoMostrar = '';
3884
+ this.codigoFuenteFinanciaminto = '';
3885
+ this.idCentroCosto = 0;
3879
3886
  this.codigoCentroCosto = '';
3880
3887
  this.estructuraPresupuestaria = '';
3881
3888
  this.tipoEmpresa = 0;
3889
+ this.idMoneda = 0;
3882
3890
  if (e) {
3883
3891
  this.idEmpresa = +e.id_empresa;
3884
3892
  this.rif = e.rifemp;
@@ -3898,7 +3906,7 @@ class MEmpresa extends MBasicModel {
3898
3906
  this.codigoMunicipio = e.codmun;
3899
3907
  this.codigoParroquia = e.codpar;
3900
3908
  this.codigoComunidad = e.codmun;
3901
- this.codigoMoneda = e.codmon;
3909
+ this.idMoneda = +e.id_moneda;
3902
3910
  this.nombreRepresentanteLegal = e.nomrepleg;
3903
3911
  this.cedulaRepresentanteLegal = e.cedrepleg;
3904
3912
  this.telefonoRepresentanteLegal = e.telrepleg;
@@ -3918,11 +3926,11 @@ class MEmpresa extends MBasicModel {
3918
3926
  this.idEP3 = +e.id_ep3;
3919
3927
  this.idEP4 = +e.id_ep4;
3920
3928
  this.idEP5 = +e.id_ep5;
3921
- this.codigoFuenteFinanciaminto = +e.codfuefin;
3929
+ this.idFuenteFinanciaminto = +e.id_fuefin;
3922
3930
  this.idUnidadAdministrativa = +e.id_uniadm;
3923
3931
  this.denominacionUnidadAdministrativa = e.denuniadm;
3924
3932
  this.codigoUnidadAdministrativa = e.coduniadm;
3925
- this.codigoFuenteFinanciamintoMostrar = e.codigoftefin;
3933
+ this.codigoFuenteFinanciaminto = e.codigoftefin;
3926
3934
  this.codigoCentroCosto = e.codcencos;
3927
3935
  this.estructuraPresupuestaria = e.estpre;
3928
3936
  this.tipoEmpresa = +e.tipoempresa;
@@ -3956,7 +3964,7 @@ class MEmpresa extends MBasicModel {
3956
3964
  codmun: this.codigoMunicipio,
3957
3965
  codpar: this.codigoParroquia,
3958
3966
  codcom: this.codigoComunidad,
3959
- codmon: this.codigoMoneda,
3967
+ id_moneda: this.idMoneda.toString(),
3960
3968
  nomrepleg: this.nombreRepresentanteLegal,
3961
3969
  cedrepleg: this.cedulaRepresentanteLegal,
3962
3970
  telrepleg: this.telefonoRepresentanteLegal,
@@ -3973,9 +3981,10 @@ class MEmpresa extends MBasicModel {
3973
3981
  id_ep5: this.idEP5.toString(),
3974
3982
  id_uniadm: this.idUnidadAdministrativa.toString(),
3975
3983
  codcencos: this.codigoCentroCosto,
3976
- codfuefin: this.codigoFuenteFinanciaminto.toString(),
3984
+ id_fuefin: this.idFuenteFinanciaminto.toString(),
3977
3985
  estpre: this.estructuraPresupuestaria,
3978
3986
  tipoempresa: this.tipoEmpresa.toString(),
3987
+ id_cencos: this.idCentroCosto.toString(),
3979
3988
  };
3980
3989
  }
3981
3990
  }
@@ -6267,14 +6276,16 @@ class MComunidad extends MBasicModel {
6267
6276
  class MExchangeRate extends MBasicModel {
6268
6277
  constructor(e) {
6269
6278
  super();
6270
- this.codigoMoneda = 0;
6279
+ this.idTasaCambio = 0;
6280
+ this.idMoneda = 0;
6271
6281
  this.fechaDesde = '1900-01-01';
6272
6282
  this.horaCambioTasa = '';
6273
6283
  this.fechaHasta = '1900-01-01';
6274
6284
  this.montoTasa = 0;
6275
6285
  this.denominacionMoneda = '';
6276
6286
  if (e) {
6277
- this.codigoMoneda = +e.codmon;
6287
+ this.idTasaCambio = +e.id_tascam;
6288
+ this.idMoneda = +e.id_moneda;
6278
6289
  this.fechaDesde = e.fectasdes;
6279
6290
  this.horaCambioTasa = e.horcamtas;
6280
6291
  this.fechaHasta = e.fectashas;
@@ -6287,7 +6298,8 @@ class MExchangeRate extends MBasicModel {
6287
6298
  }
6288
6299
  dataInterface() {
6289
6300
  return {
6290
- codmon: this.codigoMoneda.toString(),
6301
+ id_tascam: this.idTasaCambio.toString(),
6302
+ id_moneda: this.idMoneda.toString(),
6291
6303
  fectasdes: this.fechaDesde,
6292
6304
  horcamtas: this.horaCambioTasa,
6293
6305
  fectashas: this.fechaHasta,
@@ -6995,7 +7007,7 @@ class SigespService {
6995
7007
  * @author Carlos Albornoz
6996
7008
  */
6997
7009
  getCostCenters() {
6998
- return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7010
+ return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
6999
7011
  if (res.success) {
7000
7012
  res.data = res.data.map(element => new MCentroCosto(element));
7001
7013
  }
@@ -7003,7 +7015,7 @@ class SigespService {
7003
7015
  }));
7004
7016
  }
7005
7017
  getUserCostCenters(codigo) {
7006
- return this.http.get(`${this.URL}/dao/scg/centro_costo_usuario_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
7018
+ return this.http.get(`${this.URL}/dao/scg/centro_costo_usuario_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
7007
7019
  if (res.success) {
7008
7020
  res.data = res.data.map(element => new MUsuarioCentroCosto(element));
7009
7021
  }
@@ -11537,6 +11549,7 @@ class MEstructuraOrganizativa extends MBasicModel {
11537
11549
  this.idUnidadAdministrativa = 0;
11538
11550
  this.codigoUnidadAdministrativa = '';
11539
11551
  this.denominacionUnidadAdministraiva = '';
11552
+ this.idCentroCosto = 0;
11540
11553
  if (e) {
11541
11554
  this.idEnterprise = +e.id_enterprise;
11542
11555
  this.idEmpresa = +e.id_empresa;
@@ -11545,6 +11558,7 @@ class MEstructuraOrganizativa extends MBasicModel {
11545
11558
  this.denominacionEstructuraOrganizativa = e.denestorg;
11546
11559
  this.nivel = parseInt(e.nivel);
11547
11560
  this.nivelPadre = parseInt(e.nivpad);
11561
+ this.idCentroCosto = +e.id_cencos;
11548
11562
  this.codigoCentroCosto = e.codcencos;
11549
11563
  this.idEp1 = parseInt(e.id_ep1);
11550
11564
  this.idEp2 = parseInt(e.id_ep2);
@@ -11585,6 +11599,7 @@ class MEstructuraOrganizativa extends MBasicModel {
11585
11599
  denestorg: this.denominacionEstructuraOrganizativa,
11586
11600
  nivel: this.nivel.toString(),
11587
11601
  nivpad: this.nivelPadre.toString(),
11602
+ id_cencos: this.idCentroCosto.toString(),
11588
11603
  codcencos: this.codigoCentroCosto,
11589
11604
  id_ep1: this.idEp1.toString(),
11590
11605
  id_ep2: this.idEp2.toString(),