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