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.
- package/esm2020/lib/core/interfaces/Banco.mjs +1 -1
- package/esm2020/lib/core/interfaces/CentroCosto.mjs +1 -1
- package/esm2020/lib/core/interfaces/ComprobantePresupuestario.mjs +1 -1
- package/esm2020/lib/core/interfaces/Configuracion.mjs +1 -1
- package/esm2020/lib/core/interfaces/IBancoCuentasPorPagar.mjs +1 -1
- package/esm2020/lib/core/interfaces/Moneda.mjs +1 -1
- package/esm2020/lib/core/interfaces/Presupuesto.mjs +1 -1
- package/esm2020/lib/core/interfaces/RecursosHumanos.mjs +1 -1
- package/esm2020/lib/core/models/CFG/Empresa.model.mjs +12 -9
- package/esm2020/lib/core/models/CFG/TasaCambio.model.mjs +7 -4
- package/esm2020/lib/core/models/CFG/moneda.model.mjs +7 -7
- package/esm2020/lib/core/models/SCG/centroCosto.model.mjs +3 -2
- package/esm2020/lib/core/models/SNO/MEstructuraOrganizativa.model.mjs +4 -1
- package/esm2020/lib/core/models/SNO/MPersonalNomina.model.mjs +3 -5
- package/esm2020/lib/core/models/SPG/administrativeUnit.model.mjs +4 -1
- package/esm2020/lib/core/models/SPG/comprobantePresupuestario.model.mjs +5 -2
- package/esm2020/lib/core/models/SPG/configurationSPG.model.mjs +2 -2
- package/esm2020/lib/sigesp.service.mjs +3 -3
- package/fesm2015/sigesp.mjs +40 -25
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +40 -25
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/Banco.d.ts +6 -0
- package/lib/core/interfaces/CentroCosto.d.ts +1 -1
- package/lib/core/interfaces/ComprobantePresupuestario.d.ts +3 -0
- package/lib/core/interfaces/Configuracion.d.ts +5 -3
- package/lib/core/interfaces/IBancoCuentasPorPagar.d.ts +4 -0
- package/lib/core/interfaces/Moneda.d.ts +2 -2
- package/lib/core/interfaces/Presupuesto.d.ts +3 -0
- package/lib/core/interfaces/RecursosHumanos.d.ts +1 -0
- package/lib/core/models/CFG/Empresa.model.d.ts +5 -3
- package/lib/core/models/CFG/TasaCambio.model.d.ts +2 -1
- package/lib/core/models/CFG/moneda.model.d.ts +2 -2
- package/lib/core/models/SNO/MEstructuraOrganizativa.model.d.ts +1 -0
- package/lib/core/models/SNO/MPersonalNomina.model.d.ts +1 -1
- package/lib/core/models/SPG/administrativeUnit.model.d.ts +1 -0
- package/lib/core/models/SPG/comprobantePresupuestario.model.d.ts +3 -1
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -715,9 +715,8 @@ class MPersonalNomina extends MBasicModel {
|
|
|
715
715
|
this.idPermisoPersonal = 0;
|
|
716
716
|
this.codigoPermisoPersonal = '';
|
|
717
717
|
this.denominacionPermisoPersonal = '';
|
|
718
|
-
this.tipoCargo = '
|
|
718
|
+
this.tipoCargo = '';
|
|
719
719
|
this.denominacionTipoCargo = '';
|
|
720
|
-
this.TipoCargo = TipoCargo;
|
|
721
720
|
if (e) {
|
|
722
721
|
this.idEnterprise = +e.id_enterprise;
|
|
723
722
|
this.idEmpresa = e.id_empresa;
|
|
@@ -831,7 +830,7 @@ class MPersonalNomina extends MBasicModel {
|
|
|
831
830
|
this.denominacionPermisoPersonal = e.denperper;
|
|
832
831
|
this.codigoPermisoPersonal = e.codperper;
|
|
833
832
|
this.tipoCargo = e.tipcar;
|
|
834
|
-
this.denominacionTipoCargo = this.TipoCargo.find(e => e.value ==
|
|
833
|
+
this.denominacionTipoCargo = this.TipoCargo.find(e => e.value == e.tipoCargo).denominacion;
|
|
835
834
|
}
|
|
836
835
|
else {
|
|
837
836
|
this.isNew = true;
|
|
@@ -1363,7 +1362,7 @@ class MCuentaInstitucional extends MBasicModel {
|
|
|
1363
1362
|
class MMoneda extends MBasicModel {
|
|
1364
1363
|
constructor(moneda) {
|
|
1365
1364
|
super();
|
|
1366
|
-
this.
|
|
1365
|
+
this.id_moneda = 0;
|
|
1367
1366
|
this.denominacion = '';
|
|
1368
1367
|
this.iso = '';
|
|
1369
1368
|
this.simbolo = '';
|
|
@@ -1372,7 +1371,7 @@ class MMoneda extends MBasicModel {
|
|
|
1372
1371
|
this.decimales = 0;
|
|
1373
1372
|
this.decimalesAlternos = 0;
|
|
1374
1373
|
if (moneda) {
|
|
1375
|
-
this.
|
|
1374
|
+
this.id_moneda = +moneda.id_moneda;
|
|
1376
1375
|
this.denominacion = moneda.denmon;
|
|
1377
1376
|
this.iso = moneda.codiso;
|
|
1378
1377
|
this.simbolo = moneda.simmon;
|
|
@@ -1384,7 +1383,7 @@ class MMoneda extends MBasicModel {
|
|
|
1384
1383
|
}
|
|
1385
1384
|
dataInterface() {
|
|
1386
1385
|
return {
|
|
1387
|
-
|
|
1386
|
+
id_moneda: this.id_moneda.toString(),
|
|
1388
1387
|
denmon: this.denominacion,
|
|
1389
1388
|
codiso: this.iso,
|
|
1390
1389
|
simmon: this.simbolo,
|
|
@@ -1398,7 +1397,7 @@ class MMoneda extends MBasicModel {
|
|
|
1398
1397
|
class MMonedaConfig extends MBasicModel {
|
|
1399
1398
|
constructor(moneda) {
|
|
1400
1399
|
super();
|
|
1401
|
-
this.
|
|
1400
|
+
this.idMoneda = 0;
|
|
1402
1401
|
this.denominacion = '';
|
|
1403
1402
|
this.codigoIso = '';
|
|
1404
1403
|
this.simbolo = '';
|
|
@@ -1407,7 +1406,7 @@ class MMonedaConfig extends MBasicModel {
|
|
|
1407
1406
|
this.decimales = 0;
|
|
1408
1407
|
this.decimalesAlternos = 0;
|
|
1409
1408
|
if (moneda) {
|
|
1410
|
-
this.
|
|
1409
|
+
this.idMoneda = +moneda.id_moneda;
|
|
1411
1410
|
this.denominacion = moneda.denmon;
|
|
1412
1411
|
this.codigoIso = moneda.codiso;
|
|
1413
1412
|
this.separadorDecimal = moneda.separadordec;
|
|
@@ -1419,7 +1418,7 @@ class MMonedaConfig extends MBasicModel {
|
|
|
1419
1418
|
}
|
|
1420
1419
|
dataInterface() {
|
|
1421
1420
|
return {
|
|
1422
|
-
|
|
1421
|
+
id_moneda: this.idMoneda.toString(),
|
|
1423
1422
|
denmon: this.denominacion,
|
|
1424
1423
|
codiso: this.codigoIso,
|
|
1425
1424
|
simmon: this.simbolo,
|
|
@@ -1805,7 +1804,7 @@ class MConfigurationSPG {
|
|
|
1805
1804
|
this.codigoONAPRE = configuration.codasiona;
|
|
1806
1805
|
this.moneda = new MMonedaConfig({
|
|
1807
1806
|
codiso: configuration.moneda_actual.codiso,
|
|
1808
|
-
|
|
1807
|
+
id_moneda: configuration.moneda_actual.id_moneda,
|
|
1809
1808
|
denmon: configuration.moneda_actual.denmon,
|
|
1810
1809
|
separadordec: configuration.moneda_actual.separadordec,
|
|
1811
1810
|
separadormil: configuration.moneda_actual.separadormil,
|
|
@@ -2002,6 +2001,7 @@ class MCentroCosto extends MBasicModel {
|
|
|
2002
2001
|
if (centroCosto) {
|
|
2003
2002
|
this.idEmpresa = +centroCosto.id_empresa;
|
|
2004
2003
|
this.idEnterprise = +centroCosto.id_enterprise;
|
|
2004
|
+
this.idCentroCosto = +centroCosto.id_cencos;
|
|
2005
2005
|
this.centro = centroCosto.centro ? centroCosto.centro : centroCosto.codcencos;
|
|
2006
2006
|
this.denominacion = centroCosto.denominacion;
|
|
2007
2007
|
if (centroCosto.usuarios) {
|
|
@@ -2016,8 +2016,8 @@ class MCentroCosto extends MBasicModel {
|
|
|
2016
2016
|
dataInterface() {
|
|
2017
2017
|
return {
|
|
2018
2018
|
id_empresa: this.idEmpresa.toString(),
|
|
2019
|
-
id_cencos: this.idCentroCosto.toString(),
|
|
2020
2019
|
id_enterprise: this.idEnterprise.toString(),
|
|
2020
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
2021
2021
|
codcencos: this.centro,
|
|
2022
2022
|
denominacion: this.denominacion,
|
|
2023
2023
|
usuarios: this.usuarios.map(e => e.dataInterface()),
|
|
@@ -2575,6 +2575,7 @@ class MUsuarioSistema extends MBasicModel {
|
|
|
2575
2575
|
class MComprobantePresupuestarioEgresos {
|
|
2576
2576
|
constructor(comprobante) {
|
|
2577
2577
|
this.idEnterprise = 0;
|
|
2578
|
+
this.idfuenteFinanciamiento = 0;
|
|
2578
2579
|
this.idEmpresa = parseInt(comprobante.id_empresa);
|
|
2579
2580
|
this.idEnterprise = +comprobante.id_enterprise;
|
|
2580
2581
|
this.idComprobante = parseInt(comprobante.id_comprobante);
|
|
@@ -2585,7 +2586,8 @@ class MComprobantePresupuestarioEgresos {
|
|
|
2585
2586
|
this.idEp5 = parseInt(comprobante.id_ep5);
|
|
2586
2587
|
this.SPGCuenta = parseInt(comprobante.spg_cuenta);
|
|
2587
2588
|
this.operacion = comprobante.operacion;
|
|
2588
|
-
this.
|
|
2589
|
+
this.idfuenteFinanciamiento = +comprobante.id_fuefin;
|
|
2590
|
+
this.codigoFuenteFinanciamiento = comprobante.codfuefin;
|
|
2589
2591
|
this.procede_DOC = comprobante.procede_doc;
|
|
2590
2592
|
this.documento = comprobante.documento;
|
|
2591
2593
|
this.codigoCentroCosto = comprobante.codcencos;
|
|
@@ -2612,6 +2614,7 @@ class MComprobantePresupuestarioIngresos {
|
|
|
2612
2614
|
this.operacion = comprobante.operacion;
|
|
2613
2615
|
this.procede = comprobante.procede_doc;
|
|
2614
2616
|
this.documento = comprobante.documento;
|
|
2617
|
+
this.idCentroCosto = comprobante.id_cencos;
|
|
2615
2618
|
this.centroCosto = comprobante.codcencos;
|
|
2616
2619
|
this.fecha = comprobante.feccmp;
|
|
2617
2620
|
this.decripcion = comprobante.descmp;
|
|
@@ -3639,6 +3642,7 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3639
3642
|
this.denominacion = '';
|
|
3640
3643
|
this.unidadCentral = 0;
|
|
3641
3644
|
this.emiteRequisicion = true;
|
|
3645
|
+
this.idcentroCosto = 0;
|
|
3642
3646
|
this.centroCosto = '';
|
|
3643
3647
|
this.id = 0;
|
|
3644
3648
|
this.denominacionUnidadCentral = '';
|
|
@@ -3653,6 +3657,7 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3653
3657
|
this.denominacion = unidad.denuniadm;
|
|
3654
3658
|
this.unidadCentral = +unidad.coduac;
|
|
3655
3659
|
this.emiteRequisicion = unidad.estemireq == '1' ? true : false;
|
|
3660
|
+
this.idcentroCosto = +unidad.id_cencos;
|
|
3656
3661
|
this.centroCosto = unidad.codcencos;
|
|
3657
3662
|
this.denominacionUnidadCentral = unidad.denuac;
|
|
3658
3663
|
this.codigoUnidadCentral = unidad.codigouac;
|
|
@@ -3669,6 +3674,7 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3669
3674
|
return {
|
|
3670
3675
|
id_empresa: this.idEmpresa.toString(),
|
|
3671
3676
|
id_enterprise: this.idEnterprise.toString(),
|
|
3677
|
+
id_cencos: this.idcentroCosto.toString(),
|
|
3672
3678
|
coduniadm: this.codigo,
|
|
3673
3679
|
coduac: this.unidadCentral.toString(),
|
|
3674
3680
|
denuniadm: this.denominacion,
|
|
@@ -3840,7 +3846,7 @@ class MEmpresa extends MBasicModel {
|
|
|
3840
3846
|
this.codigoMunicipio = '';
|
|
3841
3847
|
this.codigoParroquia = '';
|
|
3842
3848
|
this.codigoComunidad = '';
|
|
3843
|
-
this.
|
|
3849
|
+
this.id_moneda = 0;
|
|
3844
3850
|
this.nombreRepresentanteLegal = '';
|
|
3845
3851
|
this.cedulaRepresentanteLegal = '';
|
|
3846
3852
|
this.telefonoRepresentanteLegal = '';
|
|
@@ -3860,14 +3866,16 @@ class MEmpresa extends MBasicModel {
|
|
|
3860
3866
|
this.idEP3 = 0;
|
|
3861
3867
|
this.idEP4 = 0;
|
|
3862
3868
|
this.idEP5 = 0;
|
|
3863
|
-
this.
|
|
3869
|
+
this.idFuenteFinanciaminto = 0;
|
|
3864
3870
|
this.idUnidadAdministrativa = 0;
|
|
3865
3871
|
this.denominacionUnidadAdministrativa = '';
|
|
3866
3872
|
this.codigoUnidadAdministrativa = '';
|
|
3867
|
-
this.
|
|
3873
|
+
this.codigoFuenteFinanciaminto = '';
|
|
3874
|
+
this.idCentroCosto = 0;
|
|
3868
3875
|
this.codigoCentroCosto = '';
|
|
3869
3876
|
this.estructuraPresupuestaria = '';
|
|
3870
3877
|
this.tipoEmpresa = 0;
|
|
3878
|
+
this.idMoneda = 0;
|
|
3871
3879
|
if (e) {
|
|
3872
3880
|
this.idEmpresa = +e.id_empresa;
|
|
3873
3881
|
this.rif = e.rifemp;
|
|
@@ -3887,7 +3895,7 @@ class MEmpresa extends MBasicModel {
|
|
|
3887
3895
|
this.codigoMunicipio = e.codmun;
|
|
3888
3896
|
this.codigoParroquia = e.codpar;
|
|
3889
3897
|
this.codigoComunidad = e.codmun;
|
|
3890
|
-
this.
|
|
3898
|
+
this.idMoneda = +e.id_moneda;
|
|
3891
3899
|
this.nombreRepresentanteLegal = e.nomrepleg;
|
|
3892
3900
|
this.cedulaRepresentanteLegal = e.cedrepleg;
|
|
3893
3901
|
this.telefonoRepresentanteLegal = e.telrepleg;
|
|
@@ -3907,11 +3915,11 @@ class MEmpresa extends MBasicModel {
|
|
|
3907
3915
|
this.idEP3 = +e.id_ep3;
|
|
3908
3916
|
this.idEP4 = +e.id_ep4;
|
|
3909
3917
|
this.idEP5 = +e.id_ep5;
|
|
3910
|
-
this.
|
|
3918
|
+
this.idFuenteFinanciaminto = +e.id_fuefin;
|
|
3911
3919
|
this.idUnidadAdministrativa = +e.id_uniadm;
|
|
3912
3920
|
this.denominacionUnidadAdministrativa = e.denuniadm;
|
|
3913
3921
|
this.codigoUnidadAdministrativa = e.coduniadm;
|
|
3914
|
-
this.
|
|
3922
|
+
this.codigoFuenteFinanciaminto = e.codigoftefin;
|
|
3915
3923
|
this.codigoCentroCosto = e.codcencos;
|
|
3916
3924
|
this.estructuraPresupuestaria = e.estpre;
|
|
3917
3925
|
this.tipoEmpresa = +e.tipoempresa;
|
|
@@ -3945,7 +3953,7 @@ class MEmpresa extends MBasicModel {
|
|
|
3945
3953
|
codmun: this.codigoMunicipio,
|
|
3946
3954
|
codpar: this.codigoParroquia,
|
|
3947
3955
|
codcom: this.codigoComunidad,
|
|
3948
|
-
|
|
3956
|
+
id_moneda: this.idMoneda.toString(),
|
|
3949
3957
|
nomrepleg: this.nombreRepresentanteLegal,
|
|
3950
3958
|
cedrepleg: this.cedulaRepresentanteLegal,
|
|
3951
3959
|
telrepleg: this.telefonoRepresentanteLegal,
|
|
@@ -3962,9 +3970,10 @@ class MEmpresa extends MBasicModel {
|
|
|
3962
3970
|
id_ep5: this.idEP5.toString(),
|
|
3963
3971
|
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
3964
3972
|
codcencos: this.codigoCentroCosto,
|
|
3965
|
-
|
|
3973
|
+
id_fuefin: this.idFuenteFinanciaminto.toString(),
|
|
3966
3974
|
estpre: this.estructuraPresupuestaria,
|
|
3967
3975
|
tipoempresa: this.tipoEmpresa.toString(),
|
|
3976
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
3968
3977
|
};
|
|
3969
3978
|
}
|
|
3970
3979
|
}
|
|
@@ -6256,14 +6265,16 @@ class MComunidad extends MBasicModel {
|
|
|
6256
6265
|
class MExchangeRate extends MBasicModel {
|
|
6257
6266
|
constructor(e) {
|
|
6258
6267
|
super();
|
|
6259
|
-
this.
|
|
6268
|
+
this.idTasaCambio = 0;
|
|
6269
|
+
this.idMoneda = 0;
|
|
6260
6270
|
this.fechaDesde = '1900-01-01';
|
|
6261
6271
|
this.horaCambioTasa = '';
|
|
6262
6272
|
this.fechaHasta = '1900-01-01';
|
|
6263
6273
|
this.montoTasa = 0;
|
|
6264
6274
|
this.denominacionMoneda = '';
|
|
6265
6275
|
if (e) {
|
|
6266
|
-
this.
|
|
6276
|
+
this.idTasaCambio = +e.id_tascam;
|
|
6277
|
+
this.idMoneda = +e.id_moneda;
|
|
6267
6278
|
this.fechaDesde = e.fectasdes;
|
|
6268
6279
|
this.horaCambioTasa = e.horcamtas;
|
|
6269
6280
|
this.fechaHasta = e.fectashas;
|
|
@@ -6276,7 +6287,8 @@ class MExchangeRate extends MBasicModel {
|
|
|
6276
6287
|
}
|
|
6277
6288
|
dataInterface() {
|
|
6278
6289
|
return {
|
|
6279
|
-
|
|
6290
|
+
id_tascam: this.idTasaCambio.toString(),
|
|
6291
|
+
id_moneda: this.idMoneda.toString(),
|
|
6280
6292
|
fectasdes: this.fechaDesde,
|
|
6281
6293
|
horcamtas: this.horaCambioTasa,
|
|
6282
6294
|
fectashas: this.fechaHasta,
|
|
@@ -6982,7 +6994,7 @@ class SigespService {
|
|
|
6982
6994
|
* @author Carlos Albornoz
|
|
6983
6995
|
*/
|
|
6984
6996
|
getCostCenters() {
|
|
6985
|
-
return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
6997
|
+
return this.http.get(`${this.URL}/dao/scg/centro_costo_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
6986
6998
|
if (res.success) {
|
|
6987
6999
|
res.data = res.data.map(element => new MCentroCosto(element));
|
|
6988
7000
|
}
|
|
@@ -6990,7 +7002,7 @@ class SigespService {
|
|
|
6990
7002
|
}));
|
|
6991
7003
|
}
|
|
6992
7004
|
getUserCostCenters(codigo) {
|
|
6993
|
-
return this.http.get(`${this.URL}/dao/scg/centro_costo_usuario_dao.php?codigo=${codigo}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7005
|
+
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) => {
|
|
6994
7006
|
if (res.success) {
|
|
6995
7007
|
res.data = res.data.map(element => new MUsuarioCentroCosto(element));
|
|
6996
7008
|
}
|
|
@@ -11496,6 +11508,7 @@ class MEstructuraOrganizativa extends MBasicModel {
|
|
|
11496
11508
|
this.idUnidadAdministrativa = 0;
|
|
11497
11509
|
this.codigoUnidadAdministrativa = '';
|
|
11498
11510
|
this.denominacionUnidadAdministraiva = '';
|
|
11511
|
+
this.idCentroCosto = 0;
|
|
11499
11512
|
if (e) {
|
|
11500
11513
|
this.idEnterprise = +e.id_enterprise;
|
|
11501
11514
|
this.idEmpresa = +e.id_empresa;
|
|
@@ -11504,6 +11517,7 @@ class MEstructuraOrganizativa extends MBasicModel {
|
|
|
11504
11517
|
this.denominacionEstructuraOrganizativa = e.denestorg;
|
|
11505
11518
|
this.nivel = parseInt(e.nivel);
|
|
11506
11519
|
this.nivelPadre = parseInt(e.nivpad);
|
|
11520
|
+
this.idCentroCosto = +e.id_cencos;
|
|
11507
11521
|
this.codigoCentroCosto = e.codcencos;
|
|
11508
11522
|
this.idEp1 = parseInt(e.id_ep1);
|
|
11509
11523
|
this.idEp2 = parseInt(e.id_ep2);
|
|
@@ -11544,6 +11558,7 @@ class MEstructuraOrganizativa extends MBasicModel {
|
|
|
11544
11558
|
denestorg: this.denominacionEstructuraOrganizativa,
|
|
11545
11559
|
nivel: this.nivel.toString(),
|
|
11546
11560
|
nivpad: this.nivelPadre.toString(),
|
|
11561
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
11547
11562
|
codcencos: this.codigoCentroCosto,
|
|
11548
11563
|
id_ep1: this.idEp1.toString(),
|
|
11549
11564
|
id_ep2: this.idEp2.toString(),
|