sigesp 1.1.13-20241014 → 1.1.15-20241017
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/Configuracion.mjs +1 -1
- package/esm2020/lib/core/interfaces/ConfigurationSPG.mjs +1 -1
- package/esm2020/lib/core/interfaces/Presupuesto.mjs +1 -1
- package/esm2020/lib/core/models/CFG/Empresa.model.mjs +1 -39
- package/esm2020/lib/core/models/SPG/UnidadAdministradoraCentral.mjs +3 -1
- package/esm2020/lib/core/models/SPG/configurationSPG.model.mjs +80 -26
- package/fesm2015/sigesp.mjs +81 -63
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +81 -63
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/Configuracion.d.ts +0 -14
- package/lib/core/interfaces/ConfigurationSPG.d.ts +20 -17
- package/lib/core/interfaces/Presupuesto.d.ts +1 -0
- package/lib/core/models/CFG/Empresa.model.d.ts +0 -14
- package/lib/core/models/SPG/configurationSPG.model.d.ts +16 -15
- package/package.json +1 -1
package/fesm2020/sigesp.mjs
CHANGED
|
@@ -1735,50 +1735,104 @@ class MConfigurationSPG {
|
|
|
1735
1735
|
this.nombresEstructuraPresupuestaria = [];
|
|
1736
1736
|
this.moneda = null;
|
|
1737
1737
|
this.codigoONAPRE = null;
|
|
1738
|
-
this.
|
|
1738
|
+
this.idUnidadAdministrativa = 0;
|
|
1739
|
+
this.idFuenteFinanciaminto = 0;
|
|
1740
|
+
this.idCentroCosto = 0;
|
|
1741
|
+
this.cuentaDiferencialCambiario = '';
|
|
1742
|
+
this.idEP1 = 0;
|
|
1743
|
+
this.idEP2 = 0;
|
|
1744
|
+
this.idEP3 = 0;
|
|
1745
|
+
this.idEP4 = 0;
|
|
1746
|
+
this.idEP5 = 0;
|
|
1747
|
+
this.denominacionUnidadAdministrativa = '';
|
|
1748
|
+
this.codigoUnidadAdministrativa = '';
|
|
1749
|
+
this.codigoFuenteFinanciaminto = '';
|
|
1750
|
+
this.codigoCentroCosto = '';
|
|
1751
|
+
this.estructuraPresupuestaria = '';
|
|
1752
|
+
this.editable = false;
|
|
1739
1753
|
if (configuration) {
|
|
1740
1754
|
this.idEnterprise = +configuration.id_enterprise;
|
|
1741
1755
|
this.periodoFiscal = +configuration.perfiscal;
|
|
1742
|
-
this.cuentasPresupuestoCedentes = configuration.ctaspgced;
|
|
1743
|
-
this.cunetasPresupuestoRecaudadores = configuration.ctaspgrec;
|
|
1744
|
-
this.estatusAnticipoPresupuestario = configuration.estantspg;
|
|
1745
1756
|
this.estatusCierrePresupuestoGasto = configuration.estciespg;
|
|
1746
1757
|
this.estatusCierrePresupuestoIngreso = configuration.estciespi;
|
|
1747
|
-
this.estatusIntegracionCredito = configuration.estintcred;
|
|
1748
1758
|
this.estatusModoEstructuraPresupuestaria = configuration.estmodest;
|
|
1749
1759
|
this.estatusPresupuestoIngreso = configuration.estpreing;
|
|
1750
1760
|
this.estatusDecimalesPresupuestoGasto = configuration.estspgdecimal;
|
|
1751
1761
|
this.estatusDecimalesPresupuestoIngreso = configuration.estspidecimal;
|
|
1752
|
-
this.estatusValidacionPresupuestoGasto = configuration.estvalspg;
|
|
1753
|
-
this.estatusVariacionPartidas = configuration.estvarpar;
|
|
1754
1762
|
this.formatoPresupuestoGasto = configuration.formpre;
|
|
1755
|
-
this.formatoPresupuestoIngreso = configuration.formspi;
|
|
1756
1763
|
this.digitosCuentasPresupuestoContabilidadGeneralParaGastos = configuration.gasto_p;
|
|
1757
1764
|
this.idEmpresa = configuration.id_empresa;
|
|
1758
1765
|
this.IdSPG = configuration.id_spg;
|
|
1759
1766
|
this.digitoCuentaPresupuestoContabilidadParaIngresos = configuration.ingreso_p;
|
|
1760
|
-
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro1
|
|
1761
|
-
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro2
|
|
1762
|
-
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro3
|
|
1763
|
-
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro4
|
|
1764
|
-
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro5
|
|
1765
|
-
this.
|
|
1766
|
-
this.nombresEstructuraPresupuestaria.push(configuration.
|
|
1767
|
-
this.nombresEstructuraPresupuestaria.push(configuration.
|
|
1768
|
-
this.nombresEstructuraPresupuestaria.push(configuration.
|
|
1769
|
-
this.nombresEstructuraPresupuestaria.push(configuration.
|
|
1770
|
-
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro5 || null);
|
|
1767
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro1);
|
|
1768
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro2);
|
|
1769
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro3);
|
|
1770
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro4);
|
|
1771
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro5);
|
|
1772
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro1);
|
|
1773
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro2);
|
|
1774
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro3);
|
|
1775
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro4);
|
|
1776
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro5);
|
|
1771
1777
|
this.numerosNiveles = configuration.numniv;
|
|
1772
|
-
this.validacionPorEstucturaPresupuestaria = configuration.valestpre;
|
|
1773
|
-
this.validacionNivelCuentaGenerica = configuration.vali_nivel;
|
|
1774
1778
|
this.estatusModoAperturaCuentas = configuration.estmodape;
|
|
1775
|
-
this.saldoInicialProgramado = configuration.salinipro;
|
|
1776
|
-
this.saldoInicialEjecutado = configuration.salinieje;
|
|
1777
|
-
this.estatusContadorCompromiso = configuration.estconcom;
|
|
1778
|
-
this.numeroInicialCompromiso = configuration.numinicom;
|
|
1779
1779
|
this.codigoONAPRE = configuration.codasiona;
|
|
1780
|
+
this.cuentaDiferencialCambiario = configuration.cuenta_diferencial;
|
|
1781
|
+
this.idEP1 = +configuration.id_ep1;
|
|
1782
|
+
this.idEP2 = +configuration.id_ep2;
|
|
1783
|
+
this.idEP3 = +configuration.id_ep3;
|
|
1784
|
+
this.idEP4 = +configuration.id_ep4;
|
|
1785
|
+
this.idEP5 = +configuration.id_ep5;
|
|
1786
|
+
this.idFuenteFinanciaminto = +configuration.id_fuefin;
|
|
1787
|
+
this.idUnidadAdministrativa = +configuration.id_uniadm;
|
|
1788
|
+
this.denominacionUnidadAdministrativa = configuration.denuniadm;
|
|
1789
|
+
this.codigoUnidadAdministrativa = configuration.coduniadm;
|
|
1790
|
+
this.codigoFuenteFinanciaminto = configuration.codigoftefin;
|
|
1791
|
+
this.codigoCentroCosto = configuration.codcencos;
|
|
1792
|
+
this.estructuraPresupuestaria = configuration.estpre;
|
|
1793
|
+
this.editable = configuration.editable == '0';
|
|
1780
1794
|
}
|
|
1781
1795
|
}
|
|
1796
|
+
dataInteface() {
|
|
1797
|
+
return {
|
|
1798
|
+
id_empresa: this.idEmpresa.toString(),
|
|
1799
|
+
id_spg: this.IdSPG.toString(),
|
|
1800
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
1801
|
+
perfiscal: this.periodoFiscal.toLocaleString(),
|
|
1802
|
+
estciespg: this.estatusCierrePresupuestoGasto,
|
|
1803
|
+
estciespi: this.estatusCierrePresupuestoIngreso,
|
|
1804
|
+
estmodest: this.estatusModoEstructuraPresupuestaria,
|
|
1805
|
+
estpreing: this.estatusCierrePresupuestoIngreso,
|
|
1806
|
+
estspgdecimal: this.estatusDecimalesPresupuestoGasto,
|
|
1807
|
+
estspidecimal: this.estatusDecimalesPresupuestoIngreso,
|
|
1808
|
+
formpre: this.formatoPresupuestoGasto,
|
|
1809
|
+
gasto_p: this.digitosCuentasPresupuestoContabilidadGeneralParaGastos,
|
|
1810
|
+
ingreso_p: this.digitoCuentaPresupuestoContabilidadParaIngresos.toString(),
|
|
1811
|
+
loncodestpro1: this.longitudesCodigoEstructuraPresupuestria[0],
|
|
1812
|
+
loncodestpro2: this.longitudesCodigoEstructuraPresupuestria[1],
|
|
1813
|
+
loncodestpro3: this.longitudesCodigoEstructuraPresupuestria[2],
|
|
1814
|
+
loncodestpro4: this.longitudesCodigoEstructuraPresupuestria[3],
|
|
1815
|
+
loncodestpro5: this.longitudesCodigoEstructuraPresupuestria[4],
|
|
1816
|
+
nomestpro1: this.nombresEstructuraPresupuestaria[0],
|
|
1817
|
+
nomestpro2: this.nombresEstructuraPresupuestaria[0],
|
|
1818
|
+
nomestpro3: this.nombresEstructuraPresupuestaria[0],
|
|
1819
|
+
nomestpro4: this.nombresEstructuraPresupuestaria[0],
|
|
1820
|
+
nomestpro5: this.nombresEstructuraPresupuestaria[0],
|
|
1821
|
+
numniv: this.numerosNiveles,
|
|
1822
|
+
codasiona: this.codigoONAPRE,
|
|
1823
|
+
estmodape: this.estatusModoAperturaCuentas,
|
|
1824
|
+
cuenta_diferencial: this.cuentaDiferencialCambiario,
|
|
1825
|
+
id_ep1: this.idEP1.toString(),
|
|
1826
|
+
id_ep2: this.idEP2.toString(),
|
|
1827
|
+
id_ep3: this.idEP3.toString(),
|
|
1828
|
+
id_ep4: this.idEP4.toString(),
|
|
1829
|
+
id_ep5: this.idEP5.toString(),
|
|
1830
|
+
id_fuefin: this.idFuenteFinanciaminto.toString(),
|
|
1831
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
1832
|
+
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
1833
|
+
estpre: this.estructuraPresupuestaria,
|
|
1834
|
+
};
|
|
1835
|
+
}
|
|
1782
1836
|
}
|
|
1783
1837
|
|
|
1784
1838
|
class MEstructuraPresupuestariaOne {
|
|
@@ -3890,20 +3944,6 @@ class MEmpresa extends MBasicModel {
|
|
|
3890
3944
|
this.descripcionMunicipio = '';
|
|
3891
3945
|
this.descripcionParroquia = '';
|
|
3892
3946
|
this.descripcionComunidad = '';
|
|
3893
|
-
this.cuentaDiferencialCambiario = '';
|
|
3894
|
-
this.idEP1 = 0;
|
|
3895
|
-
this.idEP2 = 0;
|
|
3896
|
-
this.idEP3 = 0;
|
|
3897
|
-
this.idEP4 = 0;
|
|
3898
|
-
this.idEP5 = 0;
|
|
3899
|
-
this.idFuenteFinanciaminto = 0;
|
|
3900
|
-
this.idUnidadAdministrativa = 0;
|
|
3901
|
-
this.denominacionUnidadAdministrativa = '';
|
|
3902
|
-
this.codigoUnidadAdministrativa = '';
|
|
3903
|
-
this.codigoFuenteFinanciaminto = '';
|
|
3904
|
-
this.idCentroCosto = 0;
|
|
3905
|
-
this.codigoCentroCosto = '';
|
|
3906
|
-
this.estructuraPresupuestaria = '';
|
|
3907
3947
|
this.tipoEmpresa = 0;
|
|
3908
3948
|
if (e) {
|
|
3909
3949
|
this.idEmpresa = +e.id_empresa;
|
|
@@ -3938,19 +3978,6 @@ class MEmpresa extends MBasicModel {
|
|
|
3938
3978
|
this.descripcionMunicipio = e.desmun;
|
|
3939
3979
|
this.descripcionParroquia = e.despar;
|
|
3940
3980
|
this.descripcionComunidad = e.descom;
|
|
3941
|
-
this.cuentaDiferencialCambiario = e.cuenta_diferencial;
|
|
3942
|
-
this.idEP1 = +e.id_ep1;
|
|
3943
|
-
this.idEP2 = +e.id_ep2;
|
|
3944
|
-
this.idEP3 = +e.id_ep3;
|
|
3945
|
-
this.idEP4 = +e.id_ep4;
|
|
3946
|
-
this.idEP5 = +e.id_ep5;
|
|
3947
|
-
this.idFuenteFinanciaminto = +e.id_fuefin;
|
|
3948
|
-
this.idUnidadAdministrativa = +e.id_uniadm;
|
|
3949
|
-
this.denominacionUnidadAdministrativa = e.denuniadm;
|
|
3950
|
-
this.codigoUnidadAdministrativa = e.coduniadm;
|
|
3951
|
-
this.codigoFuenteFinanciaminto = e.codigoftefin;
|
|
3952
|
-
this.codigoCentroCosto = e.codcencos;
|
|
3953
|
-
this.estructuraPresupuestaria = e.estpre;
|
|
3954
3981
|
this.tipoEmpresa = +e.tipoempresa;
|
|
3955
3982
|
}
|
|
3956
3983
|
else {
|
|
@@ -3991,18 +4018,7 @@ class MEmpresa extends MBasicModel {
|
|
|
3991
4018
|
perfiscal: this.periodoFiscal,
|
|
3992
4019
|
nroivss: this.numeroSeguroSocial,
|
|
3993
4020
|
presupuesto: this.estatusPresupuesto ? '1' : '0',
|
|
3994
|
-
cuenta_diferencial: this.cuentaDiferencialCambiario,
|
|
3995
|
-
id_ep1: this.idEP1.toString(),
|
|
3996
|
-
id_ep2: this.idEP2.toString(),
|
|
3997
|
-
id_ep3: this.idEP3.toString(),
|
|
3998
|
-
id_ep4: this.idEP4.toString(),
|
|
3999
|
-
id_ep5: this.idEP5.toString(),
|
|
4000
|
-
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
4001
|
-
codcencos: this.codigoCentroCosto,
|
|
4002
|
-
id_fuefin: this.idFuenteFinanciaminto.toString(),
|
|
4003
|
-
estpre: this.estructuraPresupuestaria,
|
|
4004
4021
|
tipoempresa: this.tipoEmpresa.toString(),
|
|
4005
|
-
id_cencos: this.idCentroCosto.toString(),
|
|
4006
4022
|
};
|
|
4007
4023
|
}
|
|
4008
4024
|
}
|
|
@@ -9084,6 +9100,7 @@ class MUnidadAdministradoraCentral extends MBasicModel {
|
|
|
9084
9100
|
this.denominacionUnidadCentral = e.denuac;
|
|
9085
9101
|
this.tipoUnidad = e.tipuac == '1';
|
|
9086
9102
|
this.responsableUnidad = e.resuac;
|
|
9103
|
+
this.periodoFiscal = +e.perfiscal;
|
|
9087
9104
|
if (e.unidad_organizativa) {
|
|
9088
9105
|
this.unidadOrganizativa = e.unidad_organizativa.map(e => new MAdministrativeUnit(e));
|
|
9089
9106
|
}
|
|
@@ -9101,6 +9118,7 @@ class MUnidadAdministradoraCentral extends MBasicModel {
|
|
|
9101
9118
|
denuac: this.denominacionUnidadCentral,
|
|
9102
9119
|
resuac: this.responsableUnidad,
|
|
9103
9120
|
tipuac: this.tipoUnidad ? '1' : '0',
|
|
9121
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
9104
9122
|
unidad_organizativa: this.unidadOrganizativa.map(function (e) { return e.dataInterface(); }),
|
|
9105
9123
|
};
|
|
9106
9124
|
}
|