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