sigesp 1.1.1-20240828 → 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/IBancoCuentasPorPagar.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/SCG/centroCosto.model.mjs +7 -1
- package/esm2020/lib/core/models/SNO/MEstructuraOrganizativa.model.mjs +4 -1
- package/esm2020/lib/core/models/SPG/administrativeUnit.model.mjs +4 -1
- package/esm2020/lib/core/models/SPG/comprobantePresupuestario.model.mjs +5 -2
- package/fesm2015/sigesp.mjs +16 -1
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +16 -1
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/Banco.d.ts +6 -0
- package/lib/core/interfaces/CentroCosto.d.ts +2 -0
- package/lib/core/interfaces/ComprobantePresupuestario.d.ts +3 -0
- package/lib/core/interfaces/IBancoCuentasPorPagar.d.ts +4 -0
- package/lib/core/interfaces/Presupuesto.d.ts +3 -0
- package/lib/core/interfaces/RecursosHumanos.d.ts +1 -0
- package/lib/core/models/SCG/centroCosto.model.d.ts +2 -0
- package/lib/core/models/SNO/MEstructuraOrganizativa.model.d.ts +1 -0
- 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
|
@@ -1996,10 +1996,12 @@ class MCentroCosto extends MBasicModel {
|
|
|
1996
1996
|
super();
|
|
1997
1997
|
this.idEmpresa = 0;
|
|
1998
1998
|
this.idEnterprise = 0;
|
|
1999
|
+
this.idCentroCosto = 0;
|
|
1999
2000
|
this.usuarios = [];
|
|
2000
2001
|
if (centroCosto) {
|
|
2001
2002
|
this.idEmpresa = +centroCosto.id_empresa;
|
|
2002
2003
|
this.idEnterprise = +centroCosto.id_enterprise;
|
|
2004
|
+
this.idCentroCosto = +centroCosto.id_cencos;
|
|
2003
2005
|
this.centro = centroCosto.centro ? centroCosto.centro : centroCosto.codcencos;
|
|
2004
2006
|
this.denominacion = centroCosto.denominacion;
|
|
2005
2007
|
if (centroCosto.usuarios) {
|
|
@@ -2015,6 +2017,7 @@ class MCentroCosto extends MBasicModel {
|
|
|
2015
2017
|
return {
|
|
2016
2018
|
id_empresa: this.idEmpresa.toString(),
|
|
2017
2019
|
id_enterprise: this.idEnterprise.toString(),
|
|
2020
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
2018
2021
|
codcencos: this.centro,
|
|
2019
2022
|
denominacion: this.denominacion,
|
|
2020
2023
|
usuarios: this.usuarios.map(e => e.dataInterface()),
|
|
@@ -2026,6 +2029,7 @@ class MUsuarioCentroCosto extends MBasicModel {
|
|
|
2026
2029
|
super();
|
|
2027
2030
|
this.idEmpresa = 0;
|
|
2028
2031
|
this.idEnterprise = 0;
|
|
2032
|
+
this.idCentroCosto = 0;
|
|
2029
2033
|
this.codigoCentroCosto = '';
|
|
2030
2034
|
this.codigoUsuario = '';
|
|
2031
2035
|
this.usuario = '';
|
|
@@ -2034,6 +2038,7 @@ class MUsuarioCentroCosto extends MBasicModel {
|
|
|
2034
2038
|
if (e) {
|
|
2035
2039
|
this.idEmpresa = +e.id_empresa;
|
|
2036
2040
|
this.idEnterprise = +e.id_enterprise;
|
|
2041
|
+
this.idCentroCosto = +e.id_cencos;
|
|
2037
2042
|
this.codigoCentroCosto = e.codcencos;
|
|
2038
2043
|
this.codigoUsuario = e.codusu;
|
|
2039
2044
|
this.usuario = e.nomusu + ' ' + e.apeusu;
|
|
@@ -2047,6 +2052,7 @@ class MUsuarioCentroCosto extends MBasicModel {
|
|
|
2047
2052
|
return {
|
|
2048
2053
|
id_empresa: this.idEmpresa.toString(),
|
|
2049
2054
|
id_enterprise: this.idEnterprise.toString(),
|
|
2055
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
2050
2056
|
codcencos: this.codigoCentroCosto,
|
|
2051
2057
|
codusu: this.codigoUsuario,
|
|
2052
2058
|
id_usuario: this.idUsuario.toString(),
|
|
@@ -2569,6 +2575,7 @@ class MUsuarioSistema extends MBasicModel {
|
|
|
2569
2575
|
class MComprobantePresupuestarioEgresos {
|
|
2570
2576
|
constructor(comprobante) {
|
|
2571
2577
|
this.idEnterprise = 0;
|
|
2578
|
+
this.idfuenteFinanciamiento = 0;
|
|
2572
2579
|
this.idEmpresa = parseInt(comprobante.id_empresa);
|
|
2573
2580
|
this.idEnterprise = +comprobante.id_enterprise;
|
|
2574
2581
|
this.idComprobante = parseInt(comprobante.id_comprobante);
|
|
@@ -2579,7 +2586,8 @@ class MComprobantePresupuestarioEgresos {
|
|
|
2579
2586
|
this.idEp5 = parseInt(comprobante.id_ep5);
|
|
2580
2587
|
this.SPGCuenta = parseInt(comprobante.spg_cuenta);
|
|
2581
2588
|
this.operacion = comprobante.operacion;
|
|
2582
|
-
this.
|
|
2589
|
+
this.idfuenteFinanciamiento = +comprobante.id_fuefin;
|
|
2590
|
+
this.codigoFuenteFinanciamiento = comprobante.codfuefin;
|
|
2583
2591
|
this.procede_DOC = comprobante.procede_doc;
|
|
2584
2592
|
this.documento = comprobante.documento;
|
|
2585
2593
|
this.codigoCentroCosto = comprobante.codcencos;
|
|
@@ -2606,6 +2614,7 @@ class MComprobantePresupuestarioIngresos {
|
|
|
2606
2614
|
this.operacion = comprobante.operacion;
|
|
2607
2615
|
this.procede = comprobante.procede_doc;
|
|
2608
2616
|
this.documento = comprobante.documento;
|
|
2617
|
+
this.idCentroCosto = comprobante.id_cencos;
|
|
2609
2618
|
this.centroCosto = comprobante.codcencos;
|
|
2610
2619
|
this.fecha = comprobante.feccmp;
|
|
2611
2620
|
this.decripcion = comprobante.descmp;
|
|
@@ -3633,6 +3642,7 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3633
3642
|
this.denominacion = '';
|
|
3634
3643
|
this.unidadCentral = 0;
|
|
3635
3644
|
this.emiteRequisicion = true;
|
|
3645
|
+
this.idcentroCosto = 0;
|
|
3636
3646
|
this.centroCosto = '';
|
|
3637
3647
|
this.id = 0;
|
|
3638
3648
|
this.denominacionUnidadCentral = '';
|
|
@@ -3647,6 +3657,7 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3647
3657
|
this.denominacion = unidad.denuniadm;
|
|
3648
3658
|
this.unidadCentral = +unidad.coduac;
|
|
3649
3659
|
this.emiteRequisicion = unidad.estemireq == '1' ? true : false;
|
|
3660
|
+
this.idcentroCosto = +unidad.id_cencos;
|
|
3650
3661
|
this.centroCosto = unidad.codcencos;
|
|
3651
3662
|
this.denominacionUnidadCentral = unidad.denuac;
|
|
3652
3663
|
this.codigoUnidadCentral = unidad.codigouac;
|
|
@@ -3663,6 +3674,7 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3663
3674
|
return {
|
|
3664
3675
|
id_empresa: this.idEmpresa.toString(),
|
|
3665
3676
|
id_enterprise: this.idEnterprise.toString(),
|
|
3677
|
+
id_cencos: this.idcentroCosto.toString(),
|
|
3666
3678
|
coduniadm: this.codigo,
|
|
3667
3679
|
coduac: this.unidadCentral.toString(),
|
|
3668
3680
|
denuniadm: this.denominacion,
|
|
@@ -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(),
|