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/fesm2015/sigesp.mjs
CHANGED
|
@@ -1742,50 +1742,104 @@ class MConfigurationSPG {
|
|
|
1742
1742
|
this.nombresEstructuraPresupuestaria = [];
|
|
1743
1743
|
this.moneda = null;
|
|
1744
1744
|
this.codigoONAPRE = null;
|
|
1745
|
-
this.
|
|
1745
|
+
this.idUnidadAdministrativa = 0;
|
|
1746
|
+
this.idFuenteFinanciaminto = 0;
|
|
1747
|
+
this.idCentroCosto = 0;
|
|
1748
|
+
this.cuentaDiferencialCambiario = '';
|
|
1749
|
+
this.idEP1 = 0;
|
|
1750
|
+
this.idEP2 = 0;
|
|
1751
|
+
this.idEP3 = 0;
|
|
1752
|
+
this.idEP4 = 0;
|
|
1753
|
+
this.idEP5 = 0;
|
|
1754
|
+
this.denominacionUnidadAdministrativa = '';
|
|
1755
|
+
this.codigoUnidadAdministrativa = '';
|
|
1756
|
+
this.codigoFuenteFinanciaminto = '';
|
|
1757
|
+
this.codigoCentroCosto = '';
|
|
1758
|
+
this.estructuraPresupuestaria = '';
|
|
1759
|
+
this.editable = false;
|
|
1746
1760
|
if (configuration) {
|
|
1747
1761
|
this.idEnterprise = +configuration.id_enterprise;
|
|
1748
1762
|
this.periodoFiscal = +configuration.perfiscal;
|
|
1749
|
-
this.cuentasPresupuestoCedentes = configuration.ctaspgced;
|
|
1750
|
-
this.cunetasPresupuestoRecaudadores = configuration.ctaspgrec;
|
|
1751
|
-
this.estatusAnticipoPresupuestario = configuration.estantspg;
|
|
1752
1763
|
this.estatusCierrePresupuestoGasto = configuration.estciespg;
|
|
1753
1764
|
this.estatusCierrePresupuestoIngreso = configuration.estciespi;
|
|
1754
|
-
this.estatusIntegracionCredito = configuration.estintcred;
|
|
1755
1765
|
this.estatusModoEstructuraPresupuestaria = configuration.estmodest;
|
|
1756
1766
|
this.estatusPresupuestoIngreso = configuration.estpreing;
|
|
1757
1767
|
this.estatusDecimalesPresupuestoGasto = configuration.estspgdecimal;
|
|
1758
1768
|
this.estatusDecimalesPresupuestoIngreso = configuration.estspidecimal;
|
|
1759
|
-
this.estatusValidacionPresupuestoGasto = configuration.estvalspg;
|
|
1760
|
-
this.estatusVariacionPartidas = configuration.estvarpar;
|
|
1761
1769
|
this.formatoPresupuestoGasto = configuration.formpre;
|
|
1762
|
-
this.formatoPresupuestoIngreso = configuration.formspi;
|
|
1763
1770
|
this.digitosCuentasPresupuestoContabilidadGeneralParaGastos = configuration.gasto_p;
|
|
1764
1771
|
this.idEmpresa = configuration.id_empresa;
|
|
1765
1772
|
this.IdSPG = configuration.id_spg;
|
|
1766
1773
|
this.digitoCuentaPresupuestoContabilidadParaIngresos = configuration.ingreso_p;
|
|
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.
|
|
1773
|
-
this.nombresEstructuraPresupuestaria.push(configuration.
|
|
1774
|
-
this.nombresEstructuraPresupuestaria.push(configuration.
|
|
1775
|
-
this.nombresEstructuraPresupuestaria.push(configuration.
|
|
1776
|
-
this.nombresEstructuraPresupuestaria.push(configuration.
|
|
1777
|
-
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro5 || null);
|
|
1774
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro1);
|
|
1775
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro2);
|
|
1776
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro3);
|
|
1777
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro4);
|
|
1778
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro5);
|
|
1779
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro1);
|
|
1780
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro2);
|
|
1781
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro3);
|
|
1782
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro4);
|
|
1783
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro5);
|
|
1778
1784
|
this.numerosNiveles = configuration.numniv;
|
|
1779
|
-
this.validacionPorEstucturaPresupuestaria = configuration.valestpre;
|
|
1780
|
-
this.validacionNivelCuentaGenerica = configuration.vali_nivel;
|
|
1781
1785
|
this.estatusModoAperturaCuentas = configuration.estmodape;
|
|
1782
|
-
this.saldoInicialProgramado = configuration.salinipro;
|
|
1783
|
-
this.saldoInicialEjecutado = configuration.salinieje;
|
|
1784
|
-
this.estatusContadorCompromiso = configuration.estconcom;
|
|
1785
|
-
this.numeroInicialCompromiso = configuration.numinicom;
|
|
1786
1786
|
this.codigoONAPRE = configuration.codasiona;
|
|
1787
|
+
this.cuentaDiferencialCambiario = configuration.cuenta_diferencial;
|
|
1788
|
+
this.idEP1 = +configuration.id_ep1;
|
|
1789
|
+
this.idEP2 = +configuration.id_ep2;
|
|
1790
|
+
this.idEP3 = +configuration.id_ep3;
|
|
1791
|
+
this.idEP4 = +configuration.id_ep4;
|
|
1792
|
+
this.idEP5 = +configuration.id_ep5;
|
|
1793
|
+
this.idFuenteFinanciaminto = +configuration.id_fuefin;
|
|
1794
|
+
this.idUnidadAdministrativa = +configuration.id_uniadm;
|
|
1795
|
+
this.denominacionUnidadAdministrativa = configuration.denuniadm;
|
|
1796
|
+
this.codigoUnidadAdministrativa = configuration.coduniadm;
|
|
1797
|
+
this.codigoFuenteFinanciaminto = configuration.codigoftefin;
|
|
1798
|
+
this.codigoCentroCosto = configuration.codcencos;
|
|
1799
|
+
this.estructuraPresupuestaria = configuration.estpre;
|
|
1800
|
+
this.editable = configuration.editable == '0';
|
|
1787
1801
|
}
|
|
1788
1802
|
}
|
|
1803
|
+
dataInteface() {
|
|
1804
|
+
return {
|
|
1805
|
+
id_empresa: this.idEmpresa.toString(),
|
|
1806
|
+
id_spg: this.IdSPG.toString(),
|
|
1807
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
1808
|
+
perfiscal: this.periodoFiscal.toLocaleString(),
|
|
1809
|
+
estciespg: this.estatusCierrePresupuestoGasto,
|
|
1810
|
+
estciespi: this.estatusCierrePresupuestoIngreso,
|
|
1811
|
+
estmodest: this.estatusModoEstructuraPresupuestaria,
|
|
1812
|
+
estpreing: this.estatusCierrePresupuestoIngreso,
|
|
1813
|
+
estspgdecimal: this.estatusDecimalesPresupuestoGasto,
|
|
1814
|
+
estspidecimal: this.estatusDecimalesPresupuestoIngreso,
|
|
1815
|
+
formpre: this.formatoPresupuestoGasto,
|
|
1816
|
+
gasto_p: this.digitosCuentasPresupuestoContabilidadGeneralParaGastos,
|
|
1817
|
+
ingreso_p: this.digitoCuentaPresupuestoContabilidadParaIngresos.toString(),
|
|
1818
|
+
loncodestpro1: this.longitudesCodigoEstructuraPresupuestria[0],
|
|
1819
|
+
loncodestpro2: this.longitudesCodigoEstructuraPresupuestria[1],
|
|
1820
|
+
loncodestpro3: this.longitudesCodigoEstructuraPresupuestria[2],
|
|
1821
|
+
loncodestpro4: this.longitudesCodigoEstructuraPresupuestria[3],
|
|
1822
|
+
loncodestpro5: this.longitudesCodigoEstructuraPresupuestria[4],
|
|
1823
|
+
nomestpro1: this.nombresEstructuraPresupuestaria[0],
|
|
1824
|
+
nomestpro2: this.nombresEstructuraPresupuestaria[0],
|
|
1825
|
+
nomestpro3: this.nombresEstructuraPresupuestaria[0],
|
|
1826
|
+
nomestpro4: this.nombresEstructuraPresupuestaria[0],
|
|
1827
|
+
nomestpro5: this.nombresEstructuraPresupuestaria[0],
|
|
1828
|
+
numniv: this.numerosNiveles,
|
|
1829
|
+
codasiona: this.codigoONAPRE,
|
|
1830
|
+
estmodape: this.estatusModoAperturaCuentas,
|
|
1831
|
+
cuenta_diferencial: this.cuentaDiferencialCambiario,
|
|
1832
|
+
id_ep1: this.idEP1.toString(),
|
|
1833
|
+
id_ep2: this.idEP2.toString(),
|
|
1834
|
+
id_ep3: this.idEP3.toString(),
|
|
1835
|
+
id_ep4: this.idEP4.toString(),
|
|
1836
|
+
id_ep5: this.idEP5.toString(),
|
|
1837
|
+
id_fuefin: this.idFuenteFinanciaminto.toString(),
|
|
1838
|
+
id_cencos: this.idCentroCosto.toString(),
|
|
1839
|
+
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
1840
|
+
estpre: this.estructuraPresupuestaria,
|
|
1841
|
+
};
|
|
1842
|
+
}
|
|
1789
1843
|
}
|
|
1790
1844
|
|
|
1791
1845
|
class MEstructuraPresupuestariaOne {
|
|
@@ -2483,7 +2537,9 @@ class MSistema extends MBasicModel {
|
|
|
2483
2537
|
this.codigo = sis.codsis;
|
|
2484
2538
|
this.estado = sis.estsis;
|
|
2485
2539
|
this.imagen = sis.imgsis;
|
|
2486
|
-
|
|
2540
|
+
if (sis.usuarios) {
|
|
2541
|
+
this.usuarios = sis.usuarios.map(e => new MUserDetail(e));
|
|
2542
|
+
}
|
|
2487
2543
|
}
|
|
2488
2544
|
else {
|
|
2489
2545
|
this.isNew = true;
|
|
@@ -3899,20 +3955,6 @@ class MEmpresa extends MBasicModel {
|
|
|
3899
3955
|
this.descripcionMunicipio = '';
|
|
3900
3956
|
this.descripcionParroquia = '';
|
|
3901
3957
|
this.descripcionComunidad = '';
|
|
3902
|
-
this.cuentaDiferencialCambiario = '';
|
|
3903
|
-
this.idEP1 = 0;
|
|
3904
|
-
this.idEP2 = 0;
|
|
3905
|
-
this.idEP3 = 0;
|
|
3906
|
-
this.idEP4 = 0;
|
|
3907
|
-
this.idEP5 = 0;
|
|
3908
|
-
this.idFuenteFinanciaminto = 0;
|
|
3909
|
-
this.idUnidadAdministrativa = 0;
|
|
3910
|
-
this.denominacionUnidadAdministrativa = '';
|
|
3911
|
-
this.codigoUnidadAdministrativa = '';
|
|
3912
|
-
this.codigoFuenteFinanciaminto = '';
|
|
3913
|
-
this.idCentroCosto = 0;
|
|
3914
|
-
this.codigoCentroCosto = '';
|
|
3915
|
-
this.estructuraPresupuestaria = '';
|
|
3916
3958
|
this.tipoEmpresa = 0;
|
|
3917
3959
|
if (e) {
|
|
3918
3960
|
this.idEmpresa = +e.id_empresa;
|
|
@@ -3947,19 +3989,6 @@ class MEmpresa extends MBasicModel {
|
|
|
3947
3989
|
this.descripcionMunicipio = e.desmun;
|
|
3948
3990
|
this.descripcionParroquia = e.despar;
|
|
3949
3991
|
this.descripcionComunidad = e.descom;
|
|
3950
|
-
this.cuentaDiferencialCambiario = e.cuenta_diferencial;
|
|
3951
|
-
this.idEP1 = +e.id_ep1;
|
|
3952
|
-
this.idEP2 = +e.id_ep2;
|
|
3953
|
-
this.idEP3 = +e.id_ep3;
|
|
3954
|
-
this.idEP4 = +e.id_ep4;
|
|
3955
|
-
this.idEP5 = +e.id_ep5;
|
|
3956
|
-
this.idFuenteFinanciaminto = +e.id_fuefin;
|
|
3957
|
-
this.idUnidadAdministrativa = +e.id_uniadm;
|
|
3958
|
-
this.denominacionUnidadAdministrativa = e.denuniadm;
|
|
3959
|
-
this.codigoUnidadAdministrativa = e.coduniadm;
|
|
3960
|
-
this.codigoFuenteFinanciaminto = e.codigoftefin;
|
|
3961
|
-
this.codigoCentroCosto = e.codcencos;
|
|
3962
|
-
this.estructuraPresupuestaria = e.estpre;
|
|
3963
3992
|
this.tipoEmpresa = +e.tipoempresa;
|
|
3964
3993
|
}
|
|
3965
3994
|
else {
|
|
@@ -4000,18 +4029,7 @@ class MEmpresa extends MBasicModel {
|
|
|
4000
4029
|
perfiscal: this.periodoFiscal,
|
|
4001
4030
|
nroivss: this.numeroSeguroSocial,
|
|
4002
4031
|
presupuesto: this.estatusPresupuesto ? '1' : '0',
|
|
4003
|
-
cuenta_diferencial: this.cuentaDiferencialCambiario,
|
|
4004
|
-
id_ep1: this.idEP1.toString(),
|
|
4005
|
-
id_ep2: this.idEP2.toString(),
|
|
4006
|
-
id_ep3: this.idEP3.toString(),
|
|
4007
|
-
id_ep4: this.idEP4.toString(),
|
|
4008
|
-
id_ep5: this.idEP5.toString(),
|
|
4009
|
-
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
4010
|
-
codcencos: this.codigoCentroCosto,
|
|
4011
|
-
id_fuefin: this.idFuenteFinanciaminto.toString(),
|
|
4012
|
-
estpre: this.estructuraPresupuestaria,
|
|
4013
4032
|
tipoempresa: this.tipoEmpresa.toString(),
|
|
4014
|
-
id_cencos: this.idCentroCosto.toString(),
|
|
4015
4033
|
};
|
|
4016
4034
|
}
|
|
4017
4035
|
}
|
|
@@ -6943,8 +6961,8 @@ class SigespService {
|
|
|
6943
6961
|
* @return Observable<MConfigurationSPG[]>
|
|
6944
6962
|
* @author Miguel Ramírez
|
|
6945
6963
|
*/
|
|
6946
|
-
getConfigurationSPG() {
|
|
6947
|
-
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])));
|
|
6964
|
+
getConfigurationSPG(idEnterprise, periodoFical) {
|
|
6965
|
+
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])));
|
|
6948
6966
|
}
|
|
6949
6967
|
/**
|
|
6950
6968
|
* @description Obtiene las configuraciones de los proveedores
|
|
@@ -7525,8 +7543,8 @@ class SigespService {
|
|
|
7525
7543
|
}
|
|
7526
7544
|
});
|
|
7527
7545
|
}
|
|
7528
|
-
getUnidadAdministrativa(tipo,
|
|
7529
|
-
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${
|
|
7546
|
+
getUnidadAdministrativa(tipo, idEnterprise, periodoFical) {
|
|
7547
|
+
return this.http.get(`${this.URL}/dao/spg/unidad_administrativa_dao.php?tipo=${tipo}&e=${idEnterprise}&periodo=${periodoFical}`, { headers: this.getHttpHeaders() })
|
|
7530
7548
|
.pipe(map((res) => {
|
|
7531
7549
|
if (res.success) {
|
|
7532
7550
|
res.data = res.data.map(e => new MAdministrativeUnit(e));
|
|
@@ -7636,9 +7654,14 @@ class SigespService {
|
|
|
7636
7654
|
* (mon:formato para inputCurrency + id )
|
|
7637
7655
|
*/
|
|
7638
7656
|
getCurrentCurrency(tipo = null, id) {
|
|
7639
|
-
return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(
|
|
7657
|
+
return this.http.get(`${this.URL}/dao/cfg/moneda_dao.php?tipo=${tipo}&id=${id}`, { headers: this.getHttpHeaders() }).pipe(map((res) => {
|
|
7640
7658
|
if (res.success) {
|
|
7641
|
-
|
|
7659
|
+
if (tipo == 'todas') {
|
|
7660
|
+
res.data = res.data.map(e => new MMonedaConfig(e));
|
|
7661
|
+
}
|
|
7662
|
+
else {
|
|
7663
|
+
res.data = new MMonedaConfig(res.data);
|
|
7664
|
+
}
|
|
7642
7665
|
}
|
|
7643
7666
|
return res;
|
|
7644
7667
|
}));
|
|
@@ -7867,8 +7890,8 @@ class SigespService {
|
|
|
7867
7890
|
* @return Observable<IResponse>
|
|
7868
7891
|
* @author Carlos Albornoz
|
|
7869
7892
|
*/
|
|
7870
|
-
getConfigSOC() {
|
|
7871
|
-
return this.http.get(`${this.URL}/dao/soc/configuracion_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7893
|
+
getConfigSOC(idEnterprise) {
|
|
7894
|
+
return this.http.get(`${this.URL}/dao/soc/configuracion_dao.php?e=${idEnterprise}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((res) => {
|
|
7872
7895
|
if (res.success) {
|
|
7873
7896
|
res.data = new MConfigSOC(res.data);
|
|
7874
7897
|
}
|