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/fesm2020/sigesp.mjs
CHANGED
|
@@ -1256,6 +1256,9 @@ class MCuentaEgresos$1 extends MBasicModel {
|
|
|
1256
1256
|
class MCuentaInstitucional extends MBasicModel {
|
|
1257
1257
|
constructor(institucional) {
|
|
1258
1258
|
super();
|
|
1259
|
+
this.idEmpresa = '0';
|
|
1260
|
+
this.idEnterprise = 0;
|
|
1261
|
+
this.periodoFiscal = 0;
|
|
1259
1262
|
this.cuenta = '';
|
|
1260
1263
|
this.cueproacu = '';
|
|
1261
1264
|
this.denominacion = '';
|
|
@@ -1274,7 +1277,6 @@ class MCuentaInstitucional extends MBasicModel {
|
|
|
1274
1277
|
this.asignado = '0';
|
|
1275
1278
|
this.distribuir = '';
|
|
1276
1279
|
this.status = '0';
|
|
1277
|
-
this.idEmpresa = '0';
|
|
1278
1280
|
this.nivel = '0';
|
|
1279
1281
|
this.referencia = '';
|
|
1280
1282
|
this.denominacionCuentaProvisionAcumulada = '';
|
|
@@ -1315,6 +1317,8 @@ class MCuentaInstitucional extends MBasicModel {
|
|
|
1315
1317
|
}
|
|
1316
1318
|
dataInterface() {
|
|
1317
1319
|
return {
|
|
1320
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
1321
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
1318
1322
|
sc_cuenta: this.cuenta,
|
|
1319
1323
|
cueproacu: this.cueproacu,
|
|
1320
1324
|
denominacion: this.denominacion,
|
|
@@ -1458,29 +1462,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1458
1462
|
class MConfiguracionSCG extends MBasicModel {
|
|
1459
1463
|
constructor(configuracion) {
|
|
1460
1464
|
super();
|
|
1465
|
+
this.idEnterprise = 0;
|
|
1466
|
+
this.periodoFiscal = 0;
|
|
1467
|
+
this.idSCG = 0;
|
|
1461
1468
|
this.activo = '';
|
|
1462
|
-
this.bloqueoAnulacion = '0';
|
|
1463
1469
|
this.cuentaSituacionDelTesoroFinanciera = '';
|
|
1464
1470
|
this.CuentaSituacionDelTesoroFiscal = '';
|
|
1465
1471
|
this.cuentaResultadoActual = '';
|
|
1466
1472
|
this.cuentaResultadoAnterior = '';
|
|
1467
1473
|
this.capital = '';
|
|
1468
|
-
this.casamientoConceptoMovimientoConCuentaBancaria = '0';
|
|
1469
|
-
this.cierreSemestral1 = '0';
|
|
1470
|
-
this.cierreSemestral2 = '0';
|
|
1471
1474
|
this.clasificacionCuentasContables = '0';
|
|
1472
1475
|
this.cuentaConsolidadaResultadoActual = '';
|
|
1473
1476
|
this.cuentaConsolidadaResultadoAnterior = '';
|
|
1474
1477
|
this.grupoCuentaDeProvicionesAcumuladaYReservaTecnica = '';
|
|
1475
1478
|
this.grupoCuentaDeDepresiacionAcumulada = '';
|
|
1476
1479
|
this.estadoCierreContable = '0';
|
|
1477
|
-
this.
|
|
1478
|
-
this.tipoContabilidadPatrimonialOFiscal = '';
|
|
1480
|
+
this.tipoContabilidadPatrimonialOFiscal = '1';
|
|
1479
1481
|
this.formatoCuentaContable = '';
|
|
1480
|
-
this.formatoPlanCuenta = '';
|
|
1481
1482
|
this.gasto = '';
|
|
1482
1483
|
this.idEmpresa = 0;
|
|
1483
|
-
this.idSCG = 0;
|
|
1484
1484
|
this.ingreso = '';
|
|
1485
1485
|
this.m01 = 0;
|
|
1486
1486
|
this.m02 = 0;
|
|
@@ -1511,26 +1511,22 @@ class MConfiguracionSCG extends MBasicModel {
|
|
|
1511
1511
|
this.costo = 0;
|
|
1512
1512
|
this.cuentaResultadoPresupuesto = '';
|
|
1513
1513
|
if (configuracion) {
|
|
1514
|
+
this.idEnterprise = +configuracion.id_enterprise;
|
|
1515
|
+
this.periodoFiscal = +configuracion.perfiscal;
|
|
1514
1516
|
this.activo = configuracion.activo;
|
|
1515
|
-
this.bloqueoAnulacion = configuracion.bloanu;
|
|
1516
1517
|
this.cuentaSituacionDelTesoroFinanciera = configuracion.c_financiera_t;
|
|
1517
1518
|
this.CuentaSituacionDelTesoroFiscal = configuracion.c_fiscal_t;
|
|
1518
1519
|
this.cuentaResultadoActual = configuracion.c_resultadoact;
|
|
1519
1520
|
this.cuentaResultadoAnterior = configuracion.c_resultadoant;
|
|
1520
1521
|
this.capital = configuracion.capital;
|
|
1521
|
-
this.casamientoConceptoMovimientoConCuentaBancaria = configuracion.casconmov;
|
|
1522
|
-
this.cierreSemestral1 = configuracion.ciesem1;
|
|
1523
|
-
this.cierreSemestral2 = configuracion.ciesem2;
|
|
1524
1522
|
this.clasificacionCuentasContables = configuracion.clactacon;
|
|
1525
1523
|
this.cuentaConsolidadaResultadoActual = configuracion.ctaresconact;
|
|
1526
1524
|
this.cuentaConsolidadaResultadoAnterior = configuracion.ctaresconant;
|
|
1527
1525
|
this.grupoCuentaDeProvicionesAcumuladaYReservaTecnica = configuracion.cuedepamo;
|
|
1528
1526
|
this.grupoCuentaDeDepresiacionAcumulada = configuracion.cueproacu;
|
|
1529
1527
|
this.estadoCierreContable = configuracion.estciescg;
|
|
1530
|
-
this.estadoCierreSemestral = configuracion.estciesem;
|
|
1531
1528
|
this.tipoContabilidadPatrimonialOFiscal = configuracion.esttipcon;
|
|
1532
1529
|
this.formatoCuentaContable = configuracion.formcont;
|
|
1533
|
-
this.formatoPlanCuenta = configuracion.formplan;
|
|
1534
1530
|
this.gasto = configuracion.gasto;
|
|
1535
1531
|
this.idEmpresa = parseInt(configuracion.id_empresa);
|
|
1536
1532
|
this.idSCG = parseInt(configuracion.id_scg);
|
|
@@ -1567,26 +1563,22 @@ class MConfiguracionSCG extends MBasicModel {
|
|
|
1567
1563
|
}
|
|
1568
1564
|
dataInterface() {
|
|
1569
1565
|
return {
|
|
1566
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
1567
|
+
perfiscal: this.periodoFiscal.toString(),
|
|
1570
1568
|
activo: this.activo,
|
|
1571
|
-
bloanu: this.bloqueoAnulacion,
|
|
1572
1569
|
c_financiera_t: this.cuentaSituacionDelTesoroFinanciera,
|
|
1573
1570
|
c_fiscal_t: this.CuentaSituacionDelTesoroFiscal,
|
|
1574
1571
|
c_resultadoact: this.cuentaResultadoActual,
|
|
1575
1572
|
c_resultadoant: this.cuentaResultadoAnterior,
|
|
1576
1573
|
capital: this.capital,
|
|
1577
|
-
casconmov: this.casamientoConceptoMovimientoConCuentaBancaria,
|
|
1578
|
-
ciesem1: this.cierreSemestral1,
|
|
1579
|
-
ciesem2: this.cierreSemestral2,
|
|
1580
1574
|
clactacon: this.clasificacionCuentasContables,
|
|
1581
1575
|
ctaresconact: this.cuentaConsolidadaResultadoActual,
|
|
1582
1576
|
ctaresconant: this.cuentaConsolidadaResultadoAnterior,
|
|
1583
1577
|
cuedepamo: this.grupoCuentaDeProvicionesAcumuladaYReservaTecnica,
|
|
1584
1578
|
cueproacu: this.grupoCuentaDeDepresiacionAcumulada,
|
|
1585
1579
|
estciescg: this.estadoCierreContable,
|
|
1586
|
-
estciesem: this.estadoCierreSemestral,
|
|
1587
1580
|
esttipcon: this.tipoContabilidadPatrimonialOFiscal,
|
|
1588
1581
|
formcont: this.formatoCuentaContable,
|
|
1589
|
-
formplan: this.formatoPlanCuenta,
|
|
1590
1582
|
gasto: this.gasto,
|
|
1591
1583
|
id_empresa: this.idEmpresa.toString(),
|
|
1592
1584
|
id_scg: this.idSCG.toString(),
|
|
@@ -1741,49 +1733,55 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
1741
1733
|
|
|
1742
1734
|
class MConfigurationSPG {
|
|
1743
1735
|
constructor(configuration) {
|
|
1736
|
+
this.idEnterprise = 0;
|
|
1737
|
+
this.periodoFiscal = 0;
|
|
1744
1738
|
this.longitudesCodigoEstructuraPresupuestria = [];
|
|
1745
1739
|
this.nombresEstructuraPresupuestaria = [];
|
|
1746
1740
|
this.moneda = null;
|
|
1747
1741
|
this.codigoONAPRE = null;
|
|
1748
1742
|
this.decimalesAlternos = 0;
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
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
|
-
|
|
1743
|
+
if (configuration) {
|
|
1744
|
+
this.idEnterprise = +configuration.id_enterprise;
|
|
1745
|
+
this.periodoFiscal = +configuration.perfiscal;
|
|
1746
|
+
this.cuentasPresupuestoCedentes = configuration.ctaspgced;
|
|
1747
|
+
this.cunetasPresupuestoRecaudadores = configuration.ctaspgrec;
|
|
1748
|
+
this.estatusAnticipoPresupuestario = configuration.estantspg;
|
|
1749
|
+
this.estatusCierrePresupuestoGasto = configuration.estciespg;
|
|
1750
|
+
this.estatusCierrePresupuestoIngreso = configuration.estciespi;
|
|
1751
|
+
this.estatusIntegracionCredito = configuration.estintcred;
|
|
1752
|
+
this.estatusModoEstructuraPresupuestaria = configuration.estmodest;
|
|
1753
|
+
this.estatusPresupuestoIngreso = configuration.estpreing;
|
|
1754
|
+
this.estatusDecimalesPresupuestoGasto = configuration.estspgdecimal;
|
|
1755
|
+
this.estatusDecimalesPresupuestoIngreso = configuration.estspidecimal;
|
|
1756
|
+
this.estatusValidacionPresupuestoGasto = configuration.estvalspg;
|
|
1757
|
+
this.estatusVariacionPartidas = configuration.estvarpar;
|
|
1758
|
+
this.formatoPresupuestoGasto = configuration.formpre;
|
|
1759
|
+
this.formatoPresupuestoIngreso = configuration.formspi;
|
|
1760
|
+
this.digitosCuentasPresupuestoContabilidadGeneralParaGastos = configuration.gasto_p;
|
|
1761
|
+
this.idEmpresa = configuration.id_empresa;
|
|
1762
|
+
this.IdSPG = configuration.id_spg;
|
|
1763
|
+
this.digitoCuentaPresupuestoContabilidadParaIngresos = configuration.ingreso_p;
|
|
1764
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro1 || null);
|
|
1765
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro2 || null);
|
|
1766
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro3 || null);
|
|
1767
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro4 || null);
|
|
1768
|
+
this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro5 || null);
|
|
1769
|
+
this.nivelValidacionEstructura = configuration.nivvalest;
|
|
1770
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro1 || null);
|
|
1771
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro2 || null);
|
|
1772
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro3 || null);
|
|
1773
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro4 || null);
|
|
1774
|
+
this.nombresEstructuraPresupuestaria.push(configuration.nomestpro5 || null);
|
|
1775
|
+
this.numerosNiveles = configuration.numniv;
|
|
1776
|
+
this.validacionPorEstucturaPresupuestaria = configuration.valestpre;
|
|
1777
|
+
this.validacionNivelCuentaGenerica = configuration.vali_nivel;
|
|
1778
|
+
this.estatusModoAperturaCuentas = configuration.estmodape;
|
|
1779
|
+
this.saldoInicialProgramado = configuration.salinipro;
|
|
1780
|
+
this.saldoInicialEjecutado = configuration.salinieje;
|
|
1781
|
+
this.estatusContadorCompromiso = configuration.estconcom;
|
|
1782
|
+
this.numeroInicialCompromiso = configuration.numinicom;
|
|
1783
|
+
this.codigoONAPRE = configuration.codasiona;
|
|
1784
|
+
}
|
|
1787
1785
|
}
|
|
1788
1786
|
}
|
|
1789
1787
|
|
|
@@ -1955,16 +1953,14 @@ class MCentroCosto extends MBasicModel {
|
|
|
1955
1953
|
this.idEmpresa = 0;
|
|
1956
1954
|
this.idEnterprise = 0;
|
|
1957
1955
|
this.idCentroCosto = 0;
|
|
1958
|
-
this.
|
|
1956
|
+
this.periodoFical = 0;
|
|
1959
1957
|
if (centroCosto) {
|
|
1960
1958
|
this.idEmpresa = +centroCosto.id_empresa;
|
|
1961
1959
|
this.idEnterprise = +centroCosto.id_enterprise;
|
|
1962
1960
|
this.idCentroCosto = +centroCosto.id_cencos;
|
|
1963
|
-
this.centro = centroCosto.
|
|
1961
|
+
this.centro = centroCosto.codcencos;
|
|
1964
1962
|
this.denominacion = centroCosto.denominacion;
|
|
1965
|
-
|
|
1966
|
-
this.usuarios = centroCosto.usuarios.map(e => new MUsuarioCentroCosto(e));
|
|
1967
|
-
}
|
|
1963
|
+
this.periodoFical = +centroCosto.perfiscal;
|
|
1968
1964
|
}
|
|
1969
1965
|
else {
|
|
1970
1966
|
this.isNew = true;
|
|
@@ -1975,10 +1971,10 @@ class MCentroCosto extends MBasicModel {
|
|
|
1975
1971
|
return {
|
|
1976
1972
|
id_empresa: this.idEmpresa.toString(),
|
|
1977
1973
|
id_enterprise: this.idEnterprise.toString(),
|
|
1974
|
+
perfiscal: this.periodoFical.toString(),
|
|
1978
1975
|
id_cencos: this.idCentroCosto.toString(),
|
|
1979
1976
|
codcencos: this.centro,
|
|
1980
1977
|
denominacion: this.denominacion,
|
|
1981
|
-
usuarios: this.usuarios.map(e => e.dataInterface()),
|
|
1982
1978
|
};
|
|
1983
1979
|
}
|
|
1984
1980
|
}
|
|
@@ -2585,8 +2581,10 @@ class MComprobantePresupuestarioIngresos {
|
|
|
2585
2581
|
class MCuentaIngresos extends MBasicModel {
|
|
2586
2582
|
constructor(cuenta = null, isNew = false) {
|
|
2587
2583
|
super();
|
|
2588
|
-
this.idEmpresa =
|
|
2589
|
-
this.
|
|
2584
|
+
this.idEmpresa = 0;
|
|
2585
|
+
this.idEnterprise = 0;
|
|
2586
|
+
this.periodoFiscal = 0;
|
|
2587
|
+
this.nivel = 0;
|
|
2590
2588
|
this.denominacion = '';
|
|
2591
2589
|
this.cuenta = null;
|
|
2592
2590
|
this.cuentaContable = null;
|
|
@@ -2625,6 +2623,8 @@ class MCuentaIngresos extends MBasicModel {
|
|
|
2625
2623
|
this.estructura = null;
|
|
2626
2624
|
if (cuenta) {
|
|
2627
2625
|
this.idEmpresa = parseInt(cuenta.id_empresa);
|
|
2626
|
+
this.idEnterprise = +cuenta.id_enterprise;
|
|
2627
|
+
this.periodoFiscal = +cuenta.perfiscal;
|
|
2628
2628
|
this.nivel = parseInt(cuenta.nivel);
|
|
2629
2629
|
this.denominacion = cuenta.denspi;
|
|
2630
2630
|
this.cuenta = cuenta.spi_cuenta;
|
|
@@ -3599,12 +3599,12 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3599
3599
|
this.unidadCentral = 0;
|
|
3600
3600
|
this.emiteRequisicion = true;
|
|
3601
3601
|
this.idcentroCosto = 0;
|
|
3602
|
-
this.centroCosto = '';
|
|
3603
3602
|
this.id = 0;
|
|
3604
3603
|
this.denominacionUnidadCentral = '';
|
|
3605
3604
|
this.codigoUnidadCentral = '';
|
|
3606
3605
|
this.denominacionCentroCosto = '';
|
|
3607
3606
|
this.estructuras = [];
|
|
3607
|
+
this.centroCosto = [];
|
|
3608
3608
|
if (unidad) {
|
|
3609
3609
|
this.idEmpresa = +unidad.id_empresa;
|
|
3610
3610
|
this.idEnterprise = +unidad.id_enterprise;
|
|
@@ -3613,14 +3613,14 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3613
3613
|
this.denominacion = unidad.denuniadm;
|
|
3614
3614
|
this.unidadCentral = +unidad.coduac;
|
|
3615
3615
|
this.emiteRequisicion = unidad.estemireq == '1' ? true : false;
|
|
3616
|
-
this.idcentroCosto = +unidad.id_cencos;
|
|
3617
|
-
this.centroCosto = unidad.codcencos;
|
|
3618
3616
|
this.denominacionUnidadCentral = unidad.denuac;
|
|
3619
3617
|
this.codigoUnidadCentral = unidad.codigouac;
|
|
3620
|
-
this.denominacionCentroCosto = unidad.denenominacion;
|
|
3621
3618
|
if (unidad.estructuras) {
|
|
3622
3619
|
this.estructuras = unidad.estructuras.map(e => new MEstructuras(e));
|
|
3623
3620
|
}
|
|
3621
|
+
if (unidad.centros) {
|
|
3622
|
+
this.centroCosto = unidad.centros.map(e => new MCentroCosto(e));
|
|
3623
|
+
}
|
|
3624
3624
|
}
|
|
3625
3625
|
else {
|
|
3626
3626
|
this.isNew = true;
|
|
@@ -3630,20 +3630,22 @@ class MAdministrativeUnit extends MBasicModel {
|
|
|
3630
3630
|
return {
|
|
3631
3631
|
id_empresa: this.idEmpresa.toString(),
|
|
3632
3632
|
id_enterprise: this.idEnterprise.toString(),
|
|
3633
|
-
id_cencos: this.idcentroCosto.toString(),
|
|
3634
3633
|
coduniadm: this.codigo,
|
|
3635
3634
|
coduac: this.unidadCentral.toString(),
|
|
3636
3635
|
denuniadm: this.denominacion,
|
|
3637
3636
|
estemireq: this.emiteRequisicion ? '1' : '0',
|
|
3638
|
-
codcencos: this.centroCosto,
|
|
3639
3637
|
id_uniadm: this.id.toString(),
|
|
3640
3638
|
estructuras: this.estructuras.map(function (e) { return e.dataInterface(); }),
|
|
3639
|
+
centros: this.centroCosto.map(function (e) { return e.dataInterface(); }),
|
|
3641
3640
|
};
|
|
3642
3641
|
}
|
|
3643
3642
|
}
|
|
3644
3643
|
class MEstructuras extends MBasicModel {
|
|
3645
3644
|
constructor(dt) {
|
|
3646
3645
|
super();
|
|
3646
|
+
this.idEnterprise = 0;
|
|
3647
|
+
this.periodoFiscal = 0;
|
|
3648
|
+
this.idEmpresa = 0;
|
|
3647
3649
|
this.fuentes = [];
|
|
3648
3650
|
if (dt) {
|
|
3649
3651
|
this.cuentaContable = dt.cuentacontable;
|
|
@@ -3666,6 +3668,9 @@ class MEstructuras extends MBasicModel {
|
|
|
3666
3668
|
this.denominacion5 = dt.status;
|
|
3667
3669
|
this.denominacion3 = dt.status;
|
|
3668
3670
|
this.idDtUni = parseInt(dt.id_dt_uniadm);
|
|
3671
|
+
this.idEmpresa = +dt.id_empresa;
|
|
3672
|
+
this.idEnterprise = +dt.id_enterprise;
|
|
3673
|
+
this.periodoFiscal = +dt.id_perfiscal;
|
|
3669
3674
|
this.idUnidadAdministrativa = parseInt(dt.id_uniadm);
|
|
3670
3675
|
if (dt.fuentes) {
|
|
3671
3676
|
this.fuentes = dt.fuentes.map(e => new MFuenteFinanciamiento(e));
|
|
@@ -3681,6 +3686,9 @@ class MEstructuras extends MBasicModel {
|
|
|
3681
3686
|
id_ep5: this.idEp5.toString(),
|
|
3682
3687
|
id_dt_uniadm: this.idDtUni.toString(),
|
|
3683
3688
|
id_uniadm: this.idUnidadAdministrativa.toString(),
|
|
3689
|
+
id_empresa: this.idEmpresa.toString(),
|
|
3690
|
+
id_enterprise: this.idEnterprise.toString(),
|
|
3691
|
+
id_perfiscal: this.idEnterprise.toString(),
|
|
3684
3692
|
};
|
|
3685
3693
|
}
|
|
3686
3694
|
}
|
|
@@ -7019,8 +7027,8 @@ class SigespService {
|
|
|
7019
7027
|
* @author Miguel Ramírez
|
|
7020
7028
|
* @modifit 25-07-2021
|
|
7021
7029
|
*/
|
|
7022
|
-
getConfigurationSCG() {
|
|
7023
|
-
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))));
|
|
7030
|
+
getConfigurationSCG(lineaEmpresa, periodoFiscal) {
|
|
7031
|
+
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))));
|
|
7024
7032
|
}
|
|
7025
7033
|
/**
|
|
7026
7034
|
* @description Abre un dialog de confirmación
|
|
@@ -7320,7 +7328,7 @@ class SigespService {
|
|
|
7320
7328
|
data: {
|
|
7321
7329
|
columns: ['cuenta', 'denominacion'],
|
|
7322
7330
|
columnNames: ['cuenta', 'denominación'],
|
|
7323
|
-
title: 'Catálogo de
|
|
7331
|
+
title: 'Catálogo de Plan de Cuenta Institucional',
|
|
7324
7332
|
dataSource: accounts
|
|
7325
7333
|
},
|
|
7326
7334
|
width: '1000px',
|
|
@@ -8032,11 +8040,35 @@ class SigespService {
|
|
|
8032
8040
|
/**
|
|
8033
8041
|
* @description Valida si la fecha esta dentro del periodo fiscal y el mes esta abierto o cerrado
|
|
8034
8042
|
* @return Observable<IResponse>
|
|
8043
|
+
* @param fecha: fecha a comparar
|
|
8044
|
+
* @param lineaEmpresa: linea empresa del documento
|
|
8045
|
+
* @param periodoFiscal : fecha del periodo a evaluar '1900-01-01'
|
|
8035
8046
|
* @author Dimaly Crespo
|
|
8036
|
-
* @
|
|
8047
|
+
* @fecha 11-10-2023
|
|
8048
|
+
*
|
|
8037
8049
|
*/
|
|
8038
|
-
getValidarPeriodo(fecha, periodoFiscal) {
|
|
8039
|
-
return this.http.get(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?fecha=${fecha}&periodo=${periodoFiscal}`, { headers: this.getHttpHeaders() }).pipe(map((res) => { return res; }));
|
|
8050
|
+
getValidarPeriodo(fecha, periodoFiscal, lineaEmpresa) {
|
|
8051
|
+
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; }));
|
|
8052
|
+
}
|
|
8053
|
+
/**
|
|
8054
|
+
* @description Obtiene los periodo fiscales configurados en SCG y SPG menores o iguales al periodo fiscal actual.
|
|
8055
|
+
* @return Observable<IResponse>
|
|
8056
|
+
* @param lineaEmpresa: linea empresa del documento
|
|
8057
|
+
* @author Dimaly Crespo
|
|
8058
|
+
* @fecha 01-10-2024
|
|
8059
|
+
*/
|
|
8060
|
+
getPeriodosConfigurados(lineaEmpresa) {
|
|
8061
|
+
return this.http.get(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?tipo=${'periodoConfig'}&e=${lineaEmpresa}`, { headers: this.getHttpHeaders() }).pipe(map((res) => { return res; }));
|
|
8062
|
+
}
|
|
8063
|
+
/**
|
|
8064
|
+
* @description Obtiene los periodo fiscales configurados en SCG y SPG menores al periodo fiscal actual y el inmediato.
|
|
8065
|
+
* @return Observable<IResponse>
|
|
8066
|
+
* @param lineaEmpresa: linea empresa del documento
|
|
8067
|
+
* @author Dimaly Crespo
|
|
8068
|
+
* @fecha 01-10-2024
|
|
8069
|
+
*/
|
|
8070
|
+
getPeriodosConfiguradosSCGSPG(lineaEmpresa) {
|
|
8071
|
+
return this.http.get(`${this.URL}/dao/scg/configuracion_contabilidad_dao.php?tipo=${'periodoSCGSPG'}&e=${lineaEmpresa}`, { headers: this.getHttpHeaders() }).pipe(map((res) => { return res; }));
|
|
8040
8072
|
}
|
|
8041
8073
|
userHasRights(column) {
|
|
8042
8074
|
return this.http.get(`${this.URL}/dao/sss/derechos_usuario_dao.php?idComponent=${this.currentComponent.id}&column=${column}`, { headers: this.getHttpHeaders() });
|