sigesp 1.1.7-20240927 → 1.1.8-20241001
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/CentroCosto.mjs +1 -1
- package/esm2020/lib/core/interfaces/ConfiguracionSCG.mjs +1 -1
- package/esm2020/lib/core/interfaces/ConfigurationSPG.mjs +1 -1
- package/esm2020/lib/core/interfaces/CuentaIngreso.mjs +1 -1
- package/esm2020/lib/core/interfaces/CuentaInstitucional.mjs +1 -1
- package/esm2020/lib/core/interfaces/Presupuesto.mjs +1 -1
- package/esm2020/lib/core/models/SCG/IncomeAccount.mjs +7 -3
- package/esm2020/lib/core/models/SCG/centroCosto.model.mjs +5 -7
- package/esm2020/lib/core/models/SCG/configuracionSCG.model.mjs +9 -21
- package/esm2020/lib/core/models/SCG/cuentaInstitucional.model.mjs +6 -2
- package/esm2020/lib/core/models/SPG/administrativeUnit.model.mjs +16 -7
- package/esm2020/lib/core/models/SPG/configurationSPG.model.mjs +45 -39
- package/esm2020/lib/sigesp.service.mjs +31 -7
- package/fesm2015/sigesp.mjs +111 -79
- package/fesm2015/sigesp.mjs.map +1 -1
- package/fesm2020/sigesp.mjs +111 -79
- package/fesm2020/sigesp.mjs.map +1 -1
- package/lib/core/interfaces/CentroCosto.d.ts +1 -2
- package/lib/core/interfaces/ConfiguracionSCG.d.ts +4 -8
- package/lib/core/interfaces/ConfigurationSPG.d.ts +2 -0
- package/lib/core/interfaces/CuentaIngreso.d.ts +2 -0
- package/lib/core/interfaces/CuentaInstitucional.d.ts +2 -0
- package/lib/core/interfaces/Presupuesto.d.ts +5 -3
- package/lib/core/models/SCG/IncomeAccount.d.ts +2 -0
- package/lib/core/models/SCG/centroCosto.model.d.ts +1 -1
- package/lib/core/models/SCG/configuracionSCG.model.d.ts +3 -7
- package/lib/core/models/SCG/cuentaInstitucional.model.d.ts +3 -1
- package/lib/core/models/SPG/administrativeUnit.model.d.ts +5 -1
- package/lib/core/models/SPG/configurationSPG.model.d.ts +5 -3
- package/lib/sigesp.service.d.ts +23 -3
- package/package.json +1 -1
package/fesm2015/sigesp.mjs
CHANGED
|
@@ -1259,6 +1259,9 @@ class MCuentaEgresos$1 extends MBasicModel {
|
|
|
1259
1259
|
class MCuentaInstitucional extends MBasicModel {
|
|
1260
1260
|
constructor(institucional) {
|
|
1261
1261
|
super();
|
|
1262
|
+
this.idEmpresa = '0';
|
|
1263
|
+
this.idEnterprise = 0;
|
|
1264
|
+
this.periodoFiscal = 0;
|
|
1262
1265
|
this.cuenta = '';
|
|
1263
1266
|
this.cueproacu = '';
|
|
1264
1267
|
this.denominacion = '';
|
|
@@ -1277,7 +1280,6 @@ class MCuentaInstitucional extends MBasicModel {
|
|
|
1277
1280
|
this.asignado = '0';
|
|
1278
1281
|
this.distribuir = '';
|
|
1279
1282
|
this.status = '0';
|
|
1280
|
-
this.idEmpresa = '0';
|
|
1281
1283
|
this.nivel = '0';
|
|
1282
1284
|
this.referencia = '';
|
|
1283
1285
|
this.denominacionCuentaProvisionAcumulada = '';
|
|
@@ -1318,6 +1320,8 @@ class MCuentaInstitucional extends MBasicModel {
|
|
|
1318
1320
|
}
|
|
1319
1321
|
dataInterface() {
|
|
1320
1322
|
return {
|
|
1323
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
1324
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
1321
1325
|
sc_cuenta: this.cuenta,
|
|
1322
1326
|
cueproacu: this.cueproacu,
|
|
1323
1327
|
denominacion: this.denominacion,
|
|
@@ -1463,29 +1467,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1463
1467
|
class MConfiguracionSCG extends MBasicModel {
|
|
1464
1468
|
constructor(configuracion) {
|
|
1465
1469
|
super();
|
|
1470
|
+
this.idEnterprise = 0;
|
|
1471
|
+
this.periodoFiscal = 0;
|
|
1472
|
+
this.idSCG = 0;
|
|
1466
1473
|
this.activo = '';
|
|
1467
|
-
this.bloqueoAnulacion = '0';
|
|
1468
1474
|
this.cuentaSituacionDelTesoroFinanciera = '';
|
|
1469
1475
|
this.CuentaSituacionDelTesoroFiscal = '';
|
|
1470
1476
|
this.cuentaResultadoActual = '';
|
|
1471
1477
|
this.cuentaResultadoAnterior = '';
|
|
1472
1478
|
this.capital = '';
|
|
1473
|
-
this.casamientoConceptoMovimientoConCuentaBancaria = '0';
|
|
1474
|
-
this.cierreSemestral1 = '0';
|
|
1475
|
-
this.cierreSemestral2 = '0';
|
|
1476
1479
|
this.clasificacionCuentasContables = '0';
|
|
1477
1480
|
this.cuentaConsolidadaResultadoActual = '';
|
|
1478
1481
|
this.cuentaConsolidadaResultadoAnterior = '';
|
|
1479
1482
|
this.grupoCuentaDeProvicionesAcumuladaYReservaTecnica = '';
|
|
1480
1483
|
this.grupoCuentaDeDepresiacionAcumulada = '';
|
|
1481
1484
|
this.estadoCierreContable = '0';
|
|
1482
|
-
this.
|
|
1483
|
-
this.tipoContabilidadPatrimonialOFiscal = '';
|
|
1485
|
+
this.tipoContabilidadPatrimonialOFiscal = '1';
|
|
1484
1486
|
this.formatoCuentaContable = '';
|
|
1485
|
-
this.formatoPlanCuenta = '';
|
|
1486
1487
|
this.gasto = '';
|
|
1487
1488
|
this.idEmpresa = 0;
|
|
1488
|
-
this.idSCG = 0;
|
|
1489
1489
|
this.ingreso = '';
|
|
1490
1490
|
this.m01 = 0;
|
|
1491
1491
|
this.m02 = 0;
|
|
@@ -1516,26 +1516,22 @@ class MConfiguracionSCG extends MBasicModel {
|
|
|
1516
1516
|
this.costo = 0;
|
|
1517
1517
|
this.cuentaResultadoPresupuesto = '';
|
|
1518
1518
|
if (configuracion) {
|
|
1519
|
+
this.idEnterprise = +configuracion.id_enterprise;
|
|
1520
|
+
this.periodoFiscal = +configuracion.perfiscal;
|
|
1519
1521
|
this.activo = configuracion.activo;
|
|
1520
|
-
this.bloqueoAnulacion = configuracion.bloanu;
|
|
1521
1522
|
this.cuentaSituacionDelTesoroFinanciera = configuracion.c_financiera_t;
|
|
1522
1523
|
this.CuentaSituacionDelTesoroFiscal = configuracion.c_fiscal_t;
|
|
1523
1524
|
this.cuentaResultadoActual = configuracion.c_resultadoact;
|
|
1524
1525
|
this.cuentaResultadoAnterior = configuracion.c_resultadoant;
|
|
1525
1526
|
this.capital = configuracion.capital;
|
|
1526
|
-
this.casamientoConceptoMovimientoConCuentaBancaria = configuracion.casconmov;
|
|
1527
|
-
this.cierreSemestral1 = configuracion.ciesem1;
|
|
1528
|
-
this.cierreSemestral2 = configuracion.ciesem2;
|
|
1529
1527
|
this.clasificacionCuentasContables = configuracion.clactacon;
|
|
1530
1528
|
this.cuentaConsolidadaResultadoActual = configuracion.ctaresconact;
|
|
1531
1529
|
this.cuentaConsolidadaResultadoAnterior = configuracion.ctaresconant;
|
|
1532
1530
|
this.grupoCuentaDeProvicionesAcumuladaYReservaTecnica = configuracion.cuedepamo;
|
|
1533
1531
|
this.grupoCuentaDeDepresiacionAcumulada = configuracion.cueproacu;
|
|
1534
1532
|
this.estadoCierreContable = configuracion.estciescg;
|
|
1535
|
-
this.estadoCierreSemestral = configuracion.estciesem;
|
|
1536
1533
|
this.tipoContabilidadPatrimonialOFiscal = configuracion.esttipcon;
|
|
1537
1534
|
this.formatoCuentaContable = configuracion.formcont;
|
|
1538
|
-
this.formatoPlanCuenta = configuracion.formplan;
|
|
1539
1535
|
this.gasto = configuracion.gasto;
|
|
1540
1536
|
this.idEmpresa = parseInt(configuracion.id_empresa);
|
|
1541
1537
|
this.idSCG = parseInt(configuracion.id_scg);
|
|
@@ -1572,26 +1568,22 @@ class MConfiguracionSCG extends MBasicModel {
|
|
|
1572
1568
|
}
|
|
1573
1569
|
dataInterface() {
|
|
1574
1570
|
return {
|
|
1571
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
1572
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
1575
1573
|
activo: this.activo,
|
|
1576
|
-
bloanu: this.bloqueoAnulacion,
|
|
1577
1574
|
c_financiera_t: this.cuentaSituacionDelTesoroFinanciera,
|
|
1578
1575
|
c_fiscal_t: this.CuentaSituacionDelTesoroFiscal,
|
|
1579
1576
|
c_resultadoact: this.cuentaResultadoActual,
|
|
1580
1577
|
c_resultadoant: this.cuentaResultadoAnterior,
|
|
1581
1578
|
capital: this.capital,
|
|
1582
|
-
casconmov: this.casamientoConceptoMovimientoConCuentaBancaria,
|
|
1583
|
-
ciesem1: this.cierreSemestral1,
|
|
1584
|
-
ciesem2: this.cierreSemestral2,
|
|
1585
1579
|
clactacon: this.clasificacionCuentasContables,
|
|
1586
1580
|
ctaresconact: this.cuentaConsolidadaResultadoActual,
|
|
1587
1581
|
ctaresconant: this.cuentaConsolidadaResultadoAnterior,
|
|
1588
1582
|
cuedepamo: this.grupoCuentaDeProvicionesAcumuladaYReservaTecnica,
|
|
1589
1583
|
cueproacu: this.grupoCuentaDeDepresiacionAcumulada,
|
|
1590
1584
|
estciescg: this.estadoCierreContable,
|
|
1591
|
-
estciesem: this.estadoCierreSemestral,
|
|
1592
1585
|
esttipcon: this.tipoContabilidadPatrimonialOFiscal,
|
|
1593
1586
|
formcont: this.formatoCuentaContable,
|
|
1594
|
-
formplan: this.formatoPlanCuenta,
|
|
1595
1587
|
gasto: this.gasto,
|
|
1596
1588
|
id_empresa: this.idEmpresa.toString(),
|
|
1597
1589
|
id_scg: this.idSCG.toString(),
|
|
@@ -1748,49 +1740,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1748
1740
|
|
|
1749
1741
|
class MConfigurationSPG {
|
|
1750
1742
|
constructor(configuration) {
|
|
1743
|
+
this.idEnterprise = 0;
|
|
1744
|
+
this.periodoFiscal = 0;
|
|
1751
1745
|
this.longitudesCodigoEstructuraPresupuestria = [];
|
|
1752
1746
|
this.nombresEstructuraPresupuestaria = [];
|
|
1753
1747
|
this.moneda = null;
|
|
1754
1748
|
this.codigoONAPRE = null;
|
|
1755
1749
|
this.decimalesAlternos = 0;
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1750
|
+
if (configuration) {
|
|
1751
|
+
this.idEnterprise = +configuration.id_enterprise;
|
|
1752
|
+
this.periodoFiscal = +configuration.perfiscal;
|
|
1753
|
+
this.cuentasPresupuestoCedentes = configuration.ctaspgced;
|
|
1754
|
+
this.cunetasPresupuestoRecaudadores = configuration.ctaspgrec;
|
|
1755
|
+
this.estatusAnticipoPresupuestario = configuration.estantspg;
|
|
1756
|
+
this.estatusCierrePresupuestoGasto = configuration.estciespg;
|
|
1757
|
+
this.estatusCierrePresupuestoIngreso = configuration.estciespi;
|
|
1758
|
+
this.estatusIntegracionCredito = configuration.estintcred;
|
|
1759
|
+
this.estatusModoEstructuraPresupuestaria = configuration.estmodest;
|
|
1760
|
+
this.estatusPresupuestoIngreso = configuration.estpreing;
|
|
1761
|
+
this.estatusDecimalesPresupuestoGasto = configuration.estspgdecimal;
|
|
1762
|
+
this.estatusDecimalesPresupuestoIngreso = configuration.estspidecimal;
|
|
1763
|
+
this.estatusValidacionPresupuestoGasto = configuration.estvalspg;
|
|
1764
|
+
this.estatusVariacionPartidas = configuration.estvarpar;
|
|
1765
|
+
this.formatoPresupuestoGasto = configuration.formpre;
|
|
1766
|
+
this.formatoPresupuestoIngreso = configuration.formspi;
|
|
1767
|
+
this.digitosCuentasPresupuestoContabilidadGeneralParaGastos = configuration.gasto_p;
|
|
1768
|
+
this.idEmpresa = configuration.id_empresa;
|
|
1769
|
+
this.IdSPG = configuration.id_spg;
|
|
1770
|
+
this.digitoCuentaPresupuestoContabilidadParaIngresos = configuration.ingreso_p;
|
|
1771
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro1 || null);
|
|
1772
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro2 || null);
|
|
1773
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro3 || null);
|
|
1774
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro4 || null);
|
|
1775
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro5 || null);
|
|
1776
|
+
this.nivelValidacionEstructura = configuration.nivvalest;
|
|
1777
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro1 || null);
|
|
1778
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro2 || null);
|
|
1779
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro3 || null);
|
|
1780
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro4 || null);
|
|
1781
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro5 || null);
|
|
1782
|
+
this.numerosNiveles = configuration.numniv;
|
|
1783
|
+
this.validacionPorEstucturaPresupuestaria = configuration.valestpre;
|
|
1784
|
+
this.validacionNivelCuentaGenerica = configuration.vali_nivel;
|
|
1785
|
+
this.estatusModoAperturaCuentas = configuration.estmodape;
|
|
1786
|
+
this.saldoInicialProgramado = configuration.salinipro;
|
|
1787
|
+
this.saldoInicialEjecutado = configuration.salinieje;
|
|
1788
|
+
this.estatusContadorCompromiso = configuration.estconcom;
|
|
1789
|
+
this.numeroInicialCompromiso = configuration.numinicom;
|
|
1790
|
+
this.codigoONAPRE = configuration.codasiona;
|
|
1791
|
+
}
|
|
1794
1792
|
}
|
|
1795
1793
|
}
|
|
1796
1794
|
|
|
@@ -1962,16 +1960,14 @@ class MCentroCosto extends MBasicModel {
|
|
|
1962
1960
|
this.idEmpresa = 0;
|
|
1963
1961
|
this.idEnterprise = 0;
|
|
1964
1962
|
this.idCentroCosto = 0;
|
|
1965
|
-
this.
|
|
1963
|
+
this.periodoFical = 0;
|
|
1966
1964
|
if (centroCosto) {
|
|
1967
1965
|
this.idEmpresa = +centroCosto.id_empresa;
|
|
1968
1966
|
this.idEnterprise = +centroCosto.id_enterprise;
|
|
1969
1967
|
this.idCentroCosto = +centroCosto.id_cencos;
|
|
1970
|
-
this.centro = centroCosto.
|
|
1968
|
+
this.centro = centroCosto.codcencos;
|
|
1971
1969
|
this.denominacion = centroCosto.denominacion;
|
|
1972
|
-
|
|
1973
|
-
this.usuarios = centroCosto.usuarios.map(e => new MUsuarioCentroCosto(e));
|
|
1974
|
-
}
|
|
1970
|
+
this.periodoFical = +centroCosto.perfiscal;
|
|
1975
1971
|
}
|
|
1976
1972
|
else {
|
|
1977
1973
|
this.isNew = true;
|
|
@@ -1982,10 +1978,10 @@ class MCentroCosto extends MBasicModel {
|
|
|
1982
1978
|
return {
|
|
1983
1979
|
id_empresa: this.idEmpresa.toString(),
|
|
1984
1980
|
id_enterprise: this.idEnterprise.toString(),
|
|
1981
|
+
perfiscal: this.periodoFical.toString(),
|
|
1985
1982
|
id_cencos: this.idCentroCosto.toString(),
|
|
1986
1983
|
codcencos: this.centro,
|
|
1987
1984
|
denominacion: this.denominacion,
|
|
1988
|
-
usuarios: this.usuarios.map(e => e.dataInterface()),
|
|
1989
1985
|
};
|
|
1990
1986
|
}
|
|
1991
1987
|
}
|
|
@@ -2596,8 +2592,10 @@ class MComprobantePresupuestarioIngresos {
|
|
|
2596
2592
|
class MCuentaIngresos extends MBasicModel {
|
|
2597
2593
|
constructor(cuenta = null, isNew = false) {
|
|
2598
2594
|
super();
|
|
2599
|
-
this.idEmpresa =
|
|
2600
|
-
this.
|
|
2595
|
+
this.idEmpresa = 0;
|
|
2596
|
+
this.idEnterprise = 0;
|
|
2597
|
+
this.periodoFiscal = 0;
|
|
2598
|
+
this.nivel = 0;
|
|
2601
2599
|
this.denominacion = '';
|
|
2602
2600
|
this.cuenta = null;
|
|
2603
2601
|
this.cuentaContable = null;
|
|
@@ -2636,6 +2634,8 @@ class MCuentaIngresos extends MBasicModel {
|
|
|
2636
2634
|
this.estructura = null;
|
|
2637
2635
|
if (cuenta) {
|
|
2638
2636
|
this.idEmpresa = parseInt(cuenta.id_empresa);
|
|
2637
|
+
this.idEnterprise = +cuenta.id_enterprise;
|
|
2638
|
+
this.periodoFiscal = +cuenta.perfiscal;
|
|
2639
2639
|
this.nivel = parseInt(cuenta.nivel);
|
|
2640
2640
|
this.denominacion = cuenta.denspi;
|
|
2641
2641
|
this.cuenta = cuenta.spi_cuenta;
|
|
@@ -3610,12 +3610,12 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3610
3610
|
this.unidadCentral = 0;
|
|
3611
3611
|
this.emiteRequisicion = true;
|
|
3612
3612
|
this.idcentroCosto = 0;
|
|
3613
|
-
this.centroCosto = '';
|
|
3614
3613
|
this.id = 0;
|
|
3615
3614
|
this.denominacionUnidadCentral = '';
|
|
3616
3615
|
this.codigoUnidadCentral = '';
|
|
3617
3616
|
this.denominacionCentroCosto = '';
|
|
3618
3617
|
this.estructuras = [];
|
|
3618
|
+
this.centroCosto = [];
|
|
3619
3619
|
if (unidad) {
|
|
3620
3620
|
this.idEmpresa = +unidad.id_empresa;
|
|
3621
3621
|
this.idEnterprise = +unidad.id_enterprise;
|
|
@@ -3624,14 +3624,14 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3624
3624
|
this.denominacion = unidad.denuniadm;
|
|
3625
3625
|
this.unidadCentral = +unidad.coduac;
|
|
3626
3626
|
this.emiteRequisicion = unidad.estemireq == '1' ? true : false;
|
|
3627
|
-
this.idcentroCosto = +unidad.id_cencos;
|
|
3628
|
-
this.centroCosto = unidad.codcencos;
|
|
3629
3627
|
this.denominacionUnidadCentral = unidad.denuac;
|
|
3630
3628
|
this.codigoUnidadCentral = unidad.codigouac;
|
|
3631
|
-
this.denominacionCentroCosto = unidad.denenominacion;
|
|
3632
3629
|
if (unidad.estructuras) {
|
|
3633
3630
|
this.estructuras = unidad.estructuras.map(e => new MEstructuras(e));
|
|
3634
3631
|
}
|
|
3632
|
+
if (unidad.centros) {
|
|
3633
|
+
this.centroCosto = unidad.centros.map(e => new MCentroCosto(e));
|
|
3634
|
+
}
|
|
3635
3635
|
}
|
|
3636
3636
|
else {
|
|
3637
3637
|
this.isNew = true;
|
|
@@ -3641,20 +3641,22 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3641
3641
|
return {
|
|
3642
3642
|
id_empresa: this.idEmpresa.toString(),
|
|
3643
3643
|
id_enterprise: this.idEnterprise.toString(),
|
|
3644
|
-
id_cencos: this.idcentroCosto.toString(),
|
|
3645
3644
|
coduniadm: this.codigo,
|
|
3646
3645
|
coduac: this.unidadCentral.toString(),
|
|
3647
3646
|
denuniadm: this.denominacion,
|
|
3648
3647
|
estemireq: this.emiteRequisicion ? '1' : '0',
|
|
3649
|
-
codcencos: this.centroCosto,
|
|
3650
3648
|
id_uniadm: this.id.toString(),
|
|
3651
3649
|
estructuras: this.estructuras.map(function (e) { return e.dataInterface(); }),
|
|
3650
|
+
centros: this.centroCosto.map(function (e) { return e.dataInterface(); }),
|
|
3652
3651
|
};
|
|
3653
3652
|
}
|
|
3654
3653
|
}
|
|
3655
3654
|
class MEstructuras extends MBasicModel {
|
|
3656
3655
|
constructor(dt) {
|
|
3657
3656
|
super();
|
|
3657
|
+
this.idEnterprise = 0;
|
|
3658
|
+
this.periodoFiscal = 0;
|
|
3659
|
+
this.idEmpresa = 0;
|
|
3658
3660
|
this.fuentes = [];
|
|
3659
3661
|
if (dt) {
|
|
3660
3662
|
this.cuentaContable = dt.cuentacontable;
|
|
@@ -3677,6 +3679,9 @@ class MEstructuras extends MBasicModel {
|
|
|
3677
3679
|
this.denominacion5 = dt.status;
|
|
3678
3680
|
this.denominacion3 = dt.status;
|
|
3679
3681
|
this.idDtUni = parseInt(dt.id_dt_uniadm);
|
|
3682
|
+
this.idEmpresa = +dt.id_empresa;
|
|
3683
|
+
this.idEnterprise = +dt.id_enterprise;
|
|
3684
|
+
this.periodoFiscal = +dt.id_perfiscal;
|
|
3680
3685
|
this.idUnidadAdministrativa = parseInt(dt.id_uniadm);
|
|
3681
3686
|
if (dt.fuentes) {
|
|
3682
3687
|
this.fuentes = dt.fuentes.map(e => new MFuenteFinanciamiento(e));
|
|
@@ -3692,6 +3697,9 @@ class MEstructuras extends MBasicModel {
|
|
|
3692
3697
|
id_ep5: this.idEp5.toString(),
|
|
3693
3698
|
id_dt_uniadm: this.idDtUni.toString(),
|
|
3694
3699
|
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
3700
|
+
id_empresa: this.idEmpresa.toString(),
|
|
3701
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
3702
|
+
id_perfiscal: this.idEnterprise.toString(),
|
|
3695
3703
|
};
|
|
3696
3704
|
}
|
|
3697
3705
|
}
|
|
@@ -7034,8 +7042,8 @@ class SigespService {
|
|
|
7034
7042
|
* @author Miguel Ramírez
|
|
7035
7043
|
* @modifit 25-07-2021
|
|
7036
7044
|
*/
|
|
7037
|
-
getConfigurationSCG() {
|
|
7038
|
-
return this.http.get(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.data.map(element => new MConfiguracionSCG(element))));
|
|
7045
|
+
getConfigurationSCG(lineaEmpresa, periodoFiscal) {
|
|
7046
|
+
return this.http.get(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?tipo=${'default'}&e=${lineaEmpresa}&periodo=${periodoFiscal}`, { headers: this.getHttpHeaders() }).pipe(retry(3), catchError(this.handlerError), map((resp) => resp.data.map(element => new MConfiguracionSCG(element))));
|
|
7039
7047
|
}
|
|
7040
7048
|
/**
|
|
7041
7049
|
* @description Abre un dialog de confirmación
|
|
@@ -7346,7 +7354,7 @@ class SigespService {
|
|
|
7346
7354
|
data: {
|
|
7347
7355
|
columns: ['cuenta', 'denominacion'],
|
|
7348
7356
|
columnNames: ['cuenta', 'denominación'],
|
|
7349
|
-
title: 'Catálogo de
|
|
7357
|
+
title: 'Catálogo de Plan de Cuenta Institucional',
|
|
7350
7358
|
dataSource: accounts
|
|
7351
7359
|
},
|
|
7352
7360
|
width: '1000px',
|
|
@@ -8069,11 +8077,35 @@ class SigespService {
|
|
|
8069
8077
|
/**
|
|
8070
8078
|
* @description Valida si la fecha esta dentro del periodo fiscal y el mes esta abierto o cerrado
|
|
8071
8079
|
* @return Observable<IResponse>
|
|
8080
|
+
* @param fecha: fecha a comparar
|
|
8081
|
+
* @param lineaEmpresa: linea empresa del documento
|
|
8082
|
+
* @param periodoFiscal : fecha del periodo a evaluar '1900-01-01'
|
|
8072
8083
|
* @author Dimaly Crespo
|
|
8073
|
-
* @
|
|
8084
|
+
* @fecha 11-10-2023
|
|
8085
|
+
*
|
|
8074
8086
|
*/
|
|
8075
|
-
getValidarPeriodo(fecha, periodoFiscal) {
|
|
8076
|
-
return this.http.get(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?fecha=${fecha}&periodo=${periodoFiscal}`, { headers: this.getHttpHeaders() }).pipe(map((res) => { return res; }));
|
|
8087
|
+
getValidarPeriodo(fecha, periodoFiscal, lineaEmpresa) {
|
|
8088
|
+
return this.http.get(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?tipo=${'validaFecha'}&fecha=${fecha}&periodo=${periodoFiscal}&e=${lineaEmpresa}`, { headers: this.getHttpHeaders() }).pipe(map((res) => { return res; }));
|
|
8089
|
+
}
|
|
8090
|
+
/**
|
|
8091
|
+
* @description Obtiene los periodo fiscales configurados en SCG y SPG menores o iguales al periodo fiscal actual.
|
|
8092
|
+
* @return Observable<IResponse>
|
|
8093
|
+
* @param lineaEmpresa: linea empresa del documento
|
|
8094
|
+
* @author Dimaly Crespo
|
|
8095
|
+
* @fecha 01-10-2024
|
|
8096
|
+
*/
|
|
8097
|
+
getPeriodosConfigurados(lineaEmpresa) {
|
|
8098
|
+
return this.http.get(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?tipo=${'periodoConfig'}&e=${lineaEmpresa}`, { headers: this.getHttpHeaders() }).pipe(map((res) => { return res; }));
|
|
8099
|
+
}
|
|
8100
|
+
/**
|
|
8101
|
+
* @description Obtiene los periodo fiscales configurados en SCG y SPG menores al periodo fiscal actual y el inmediato.
|
|
8102
|
+
* @return Observable<IResponse>
|
|
8103
|
+
* @param lineaEmpresa: linea empresa del documento
|
|
8104
|
+
* @author Dimaly Crespo
|
|
8105
|
+
* @fecha 01-10-2024
|
|
8106
|
+
*/
|
|
8107
|
+
getPeriodosConfiguradosSCGSPG(lineaEmpresa) {
|
|
8108
|
+
return this.http.get(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?tipo=${'periodoSCGSPG'}&e=${lineaEmpresa}`, { headers: this.getHttpHeaders() }).pipe(map((res) => { return res; }));
|
|
8077
8109
|
}
|
|
8078
8110
|
userHasRights(column) {
|
|
8079
8111
|
return this.http.get(`${this.URL}/dao/sss/derechos_usuario_dao.php?idComponent=${this.currentComponent.id}&column=${column}`, { headers: this.getHttpHeaders() });
|