sigesp 1.1.12-20241006 → 1.1.14-20241014
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/models/CFG/Empresa.model.mjs +1 -39
- package/esm2020/lib/core/models/SPG/configurationSPG.model.mjs +80 -26
- package/esm2020/lib/core/models/SSS/sistema.mjs +4 -2
- package/esm2020/lib/sigesp.service.mjs +14 -9
- package/fesm2015/sigesp.mjs +95 -72
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +95 -72
- 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/models/CFG/Empresa.model.d.ts +0 -14
- package/lib/core/models/SPG/configurationSPG.model.d.ts +16 -15
- package/lib/sigesp.service.d.ts +3 -3
- 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 {
|
|
@@ -2472,7 +2526,9 @@ class MSistema extends MBasicModel {
|
|
|
2472
2526
|
this.codigo = sis.codsis;
|
|
2473
2527
|
this.estado = sis.estsis;
|
|
2474
2528
|
this.imagen = sis.imgsis;
|
|
2475
|
-
|
|
2529
|
+
if (sis.usuarios) {
|
|
2530
|
+
this.usuarios = sis.usuarios.map(e => new MUserDetail(e));
|
|
2531
|
+
}
|
|
2476
2532
|
}
|
|
2477
2533
|
else {
|
|
2478
2534
|
this.isNew = true;
|
|
@@ -3888,20 +3944,6 @@ class MEmpresa extends MBasicModel {
|
|
|
3888
3944
|
this.descripcionMunicipio = '';
|
|
3889
3945
|
this.descripcionParroquia = '';
|
|
3890
3946
|
this.descripcionComunidad = '';
|
|
3891
|
-
this.cuentaDiferencialCambiario = '';
|
|
3892
|
-
this.idEP1 = 0;
|
|
3893
|
-
this.idEP2 = 0;
|
|
3894
|
-
this.idEP3 = 0;
|
|
3895
|
-
this.idEP4 = 0;
|
|
3896
|
-
this.idEP5 = 0;
|
|
3897
|
-
this.idFuenteFinanciaminto = 0;
|
|
3898
|
-
this.idUnidadAdministrativa = 0;
|
|
3899
|
-
this.denominacionUnidadAdministrativa = '';
|
|
3900
|
-
this.codigoUnidadAdministrativa = '';
|
|
3901
|
-
this.codigoFuenteFinanciaminto = '';
|
|
3902
|
-
this.idCentroCosto = 0;
|
|
3903
|
-
this.codigoCentroCosto = '';
|
|
3904
|
-
this.estructuraPresupuestaria = '';
|
|
3905
3947
|
this.tipoEmpresa = 0;
|
|
3906
3948
|
if (e) {
|
|
3907
3949
|
this.idEmpresa = +e.id_empresa;
|
|
@@ -3936,19 +3978,6 @@ class MEmpresa extends MBasicModel {
|
|
|
3936
3978
|
this.descripcionMunicipio = e.desmun;
|
|
3937
3979
|
this.descripcionParroquia = e.despar;
|
|
3938
3980
|
this.descripcionComunidad = e.descom;
|
|
3939
|
-
this.cuentaDiferencialCambiario = e.cuenta_diferencial;
|
|
3940
|
-
this.idEP1 = +e.id_ep1;
|
|
3941
|
-
this.idEP2 = +e.id_ep2;
|
|
3942
|
-
this.idEP3 = +e.id_ep3;
|
|
3943
|
-
this.idEP4 = +e.id_ep4;
|
|
3944
|
-
this.idEP5 = +e.id_ep5;
|
|
3945
|
-
this.idFuenteFinanciaminto = +e.id_fuefin;
|
|
3946
|
-
this.idUnidadAdministrativa = +e.id_uniadm;
|
|
3947
|
-
this.denominacionUnidadAdministrativa = e.denuniadm;
|
|
3948
|
-
this.codigoUnidadAdministrativa = e.coduniadm;
|
|
3949
|
-
this.codigoFuenteFinanciaminto = e.codigoftefin;
|
|
3950
|
-
this.codigoCentroCosto = e.codcencos;
|
|
3951
|
-
this.estructuraPresupuestaria = e.estpre;
|
|
3952
3981
|
this.tipoEmpresa = +e.tipoempresa;
|
|
3953
3982
|
}
|
|
3954
3983
|
else {
|
|
@@ -3989,18 +4018,7 @@ class MEmpresa extends MBasicModel {
|
|
|
3989
4018
|
perfiscal: this.periodoFiscal,
|
|
3990
4019
|
nroivss: this.numeroSeguroSocial,
|
|
3991
4020
|
presupuesto: this.estatusPresupuesto ? '1' : '0',
|
|
3992
|
-
cuenta_diferencial: this.cuentaDiferencialCambiario,
|
|
3993
|
-
id_ep1: this.idEP1.toString(),
|
|
3994
|
-
id_ep2: this.idEP2.toString(),
|
|
3995
|
-
id_ep3: this.idEP3.toString(),
|
|
3996
|
-
id_ep4: this.idEP4.toString(),
|
|
3997
|
-
id_ep5: this.idEP5.toString(),
|
|
3998
|
-
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
3999
|
-
codcencos: this.codigoCentroCosto,
|
|
4000
|
-
id_fuefin: this.idFuenteFinanciaminto.toString(),
|
|
4001
|
-
estpre: this.estructuraPresupuestaria,
|
|
4002
4021
|
tipoempresa: this.tipoEmpresa.toString(),
|
|
4003
|
-
id_cencos: this.idCentroCosto.toString(),
|
|
4004
4022
|
};
|
|
4005
4023
|
}
|
|
4006
4024
|
}
|
|
@@ -6930,8 +6948,8 @@ class SigespService {
|
|
|
6930
6948
|
* @return Observable<MConfigurationSPG[]>
|
|
6931
6949
|
* @author Miguel Ramírez
|
|
6932
6950
|
*/
|
|
6933
|
-
getConfigurationSPG() {
|
|
6934
|
-
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria_config_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => new MConfigurationSPG(resp.data[0])));
|
|
6951
|
+
getConfigurationSPG(idEnterprise, periodoFical) {
|
|
6952
|
+
return this.http.get(`${this.URL}/dao/spg/estructura_presupuestaria_config_dao.php?e=${idEnterprise}&periodo=${periodoFical}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => new MConfigurationSPG(resp.data[0])));
|
|
6935
6953
|
}
|
|
6936
6954
|
/**
|
|
6937
6955
|
* @description Obtiene las configuraciones de los proveedores
|
|
@@ -7492,8 +7510,8 @@ class SigespService {
|
|
|
7492
7510
|
return this.openCatalogoGenerico(["cuenta", "denominacion", "provStatus"], titulo, filteredAccounts, ["Cuenta", "Denominación", "Estado"], ancho);
|
|
7493
7511
|
}
|
|
7494
7512
|
}
|
|
7495
|
-
getUnidadAdministrativa(tipo,
|
|
7496
|
-
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${
|
|
7513
|
+
getUnidadAdministrativa(tipo, idEnterprise, periodoFical) {
|
|
7514
|
+
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFical}`, { headers: this.getHttpHeaders() })
|
|
7497
7515
|
.pipe(map((res) => {
|
|
7498
7516
|
if (res.success) {
|
|
7499
7517
|
res.data = res.data.map(e => new MAdministrativeUnit(e));
|
|
@@ -7603,9 +7621,14 @@ class SigespService {
|
|
|
7603
7621
|
* (mon:formato para inputCurrency + id )
|
|
7604
7622
|
*/
|
|
7605
7623
|
getCurrentCurrency(tipo = null, id) {
|
|
7606
|
-
return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(
|
|
7624
|
+
return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7607
7625
|
if (res.success) {
|
|
7608
|
-
|
|
7626
|
+
if (tipo == 'todas') {
|
|
7627
|
+
res.data = res.data.map(e => new MMonedaConfig(e));
|
|
7628
|
+
}
|
|
7629
|
+
else {
|
|
7630
|
+
res.data = new MMonedaConfig(res.data);
|
|
7631
|
+
}
|
|
7609
7632
|
}
|
|
7610
7633
|
return res;
|
|
7611
7634
|
}));
|
|
@@ -7832,8 +7855,8 @@ class SigespService {
|
|
|
7832
7855
|
* @return Observable<IResponse>
|
|
7833
7856
|
* @author Carlos Albornoz
|
|
7834
7857
|
*/
|
|
7835
|
-
getConfigSOC() {
|
|
7836
|
-
return this.http.get(`${this.URL}/dao/soc/configuracion_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7858
|
+
getConfigSOC(idEnterprise) {
|
|
7859
|
+
return this.http.get(`${this.URL}/dao/soc/configuracion_dao.php?e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7837
7860
|
if (res.success) {
|
|
7838
7861
|
res.data = new MConfigSOC(res.data);
|
|
7839
7862
|
}
|