sigesp 1.1.6-20240925 → 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.
Files changed (35) 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/CFG/Empresa.model.mjs +2 -3
  8. package/esm2020/lib/core/models/CFG/moneda.model.mjs +4 -4
  9. package/esm2020/lib/core/models/SCG/IncomeAccount.mjs +7 -3
  10. package/esm2020/lib/core/models/SCG/centroCosto.model.mjs +5 -7
  11. package/esm2020/lib/core/models/SCG/configuracionSCG.model.mjs +9 -21
  12. package/esm2020/lib/core/models/SCG/cuentaInstitucional.model.mjs +6 -2
  13. package/esm2020/lib/core/models/SPG/administrativeUnit.model.mjs +16 -7
  14. package/esm2020/lib/core/models/SPG/configurationSPG.model.mjs +45 -39
  15. package/esm2020/lib/sigesp.service.mjs +31 -7
  16. package/fesm2015/sigesp.mjs +115 -84
  17. package/fesm2015/sigesp.mjs.map +1 -1
  18. package/fesm2020/sigesp.mjs +115 -84
  19. package/fesm2020/sigesp.mjs.map +1 -1
  20. package/lib/core/interfaces/CentroCosto.d.ts +1 -2
  21. package/lib/core/interfaces/ConfiguracionSCG.d.ts +4 -8
  22. package/lib/core/interfaces/ConfigurationSPG.d.ts +2 -0
  23. package/lib/core/interfaces/CuentaIngreso.d.ts +2 -0
  24. package/lib/core/interfaces/CuentaInstitucional.d.ts +2 -0
  25. package/lib/core/interfaces/Presupuesto.d.ts +5 -3
  26. package/lib/core/models/CFG/Empresa.model.d.ts +1 -2
  27. package/lib/core/models/CFG/moneda.model.d.ts +1 -1
  28. package/lib/core/models/SCG/IncomeAccount.d.ts +2 -0
  29. package/lib/core/models/SCG/centroCosto.model.d.ts +1 -1
  30. package/lib/core/models/SCG/configuracionSCG.model.d.ts +3 -7
  31. package/lib/core/models/SCG/cuentaInstitucional.model.d.ts +3 -1
  32. package/lib/core/models/SPG/administrativeUnit.model.d.ts +5 -1
  33. package/lib/core/models/SPG/configurationSPG.model.d.ts +5 -3
  34. package/lib/sigesp.service.d.ts +23 -3
  35. package/package.json +1 -1
@@ -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,
@@ -1344,7 +1348,7 @@ class MCuentaInstitucional extends MBasicModel {
1344
1348
  class MMoneda extends MBasicModel {
1345
1349
  constructor(moneda) {
1346
1350
  super();
1347
- this.id_moneda = 0;
1351
+ this.idMoneda = 0;
1348
1352
  this.denominacion = '';
1349
1353
  this.iso = '';
1350
1354
  this.simbolo = '';
@@ -1353,7 +1357,7 @@ class MMoneda extends MBasicModel {
1353
1357
  this.decimales = 0;
1354
1358
  this.decimalesAlternos = 0;
1355
1359
  if (moneda) {
1356
- this.id_moneda = +moneda.id_moneda;
1360
+ this.idMoneda = +moneda.id_moneda;
1357
1361
  this.denominacion = moneda.denmon;
1358
1362
  this.iso = moneda.codiso;
1359
1363
  this.simbolo = moneda.simmon;
@@ -1365,7 +1369,7 @@ class MMoneda extends MBasicModel {
1365
1369
  }
1366
1370
  dataInterface() {
1367
1371
  return {
1368
- id_moneda: this.id_moneda.toString(),
1372
+ id_moneda: this.idMoneda.toString(),
1369
1373
  denmon: this.denominacion,
1370
1374
  codiso: this.iso,
1371
1375
  simmon: this.simbolo,
@@ -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.estadoCierreSemestral = '0';
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
- this.cuentasPresupuestoCedentes = configuration.ctaspgced;
1750
- this.cunetasPresupuestoRecaudadores = configuration.ctaspgrec;
1751
- this.estatusAnticipoPresupuestario = configuration.estantspg;
1752
- this.estatusCierrePresupuestoGasto = configuration.estciespg;
1753
- this.estatusCierrePresupuestoIngreso = configuration.estciespi;
1754
- this.estatusIntegracionCredito = configuration.estintcred;
1755
- this.estatusModoEstructuraPresupuestaria = configuration.estmodest;
1756
- this.estatusPresupuestoIngreso = configuration.estpreing;
1757
- this.estatusDecimalesPresupuestoGasto = configuration.estspgdecimal;
1758
- this.estatusDecimalesPresupuestoIngreso = configuration.estspidecimal;
1759
- this.estatusValidacionPresupuestoGasto = configuration.estvalspg;
1760
- this.estatusVariacionPartidas = configuration.estvarpar;
1761
- this.formatoPresupuestoGasto = configuration.formpre;
1762
- this.formatoPresupuestoIngreso = configuration.formspi;
1763
- this.digitosCuentasPresupuestoContabilidadGeneralParaGastos = configuration.gasto_p;
1764
- this.idEmpresa = configuration.id_empresa;
1765
- this.IdSPG = configuration.id_spg;
1766
- this.digitoCuentaPresupuestoContabilidadParaIngresos = configuration.ingreso_p;
1767
- this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro1 || null);
1768
- this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro2 || null);
1769
- this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro3 || null);
1770
- this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro4 || null);
1771
- this.longitudesCodigoEstructuraPresupuestria.push(configuration.loncodestpro5 || null);
1772
- this.nivelValidacionEstructura = configuration.nivvalest;
1773
- this.nombresEstructuraPresupuestaria.push(configuration.nomestpro1 || null);
1774
- this.nombresEstructuraPresupuestaria.push(configuration.nomestpro2 || null);
1775
- this.nombresEstructuraPresupuestaria.push(configuration.nomestpro3 || null);
1776
- this.nombresEstructuraPresupuestaria.push(configuration.nomestpro4 || null);
1777
- this.nombresEstructuraPresupuestaria.push(configuration.nomestpro5 || null);
1778
- this.numerosNiveles = configuration.numniv;
1779
- this.validacionPorEstucturaPresupuestaria = configuration.valestpre;
1780
- this.validacionNivelCuentaGenerica = configuration.vali_nivel;
1781
- this.estatusModoAperturaCuentas = configuration.estmodape;
1782
- this.saldoInicialProgramado = configuration.salinipro;
1783
- this.saldoInicialEjecutado = configuration.salinieje;
1784
- this.estatusContadorCompromiso = configuration.estconcom;
1785
- this.numeroInicialCompromiso = configuration.numinicom;
1786
- this.codigoONAPRE = configuration.codasiona;
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.usuarios = [];
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.centro ? centroCosto.centro : centroCosto.codcencos;
1961
+ this.centro = centroCosto.codcencos;
1964
1962
  this.denominacion = centroCosto.denominacion;
1965
- if (centroCosto.usuarios) {
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 = null;
2589
- this.nivel = null;
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
  }
@@ -3802,7 +3810,7 @@ class MEmpresa extends MBasicModel {
3802
3810
  this.codigoMunicipio = '';
3803
3811
  this.codigoParroquia = '';
3804
3812
  this.codigoComunidad = '';
3805
- this.id_moneda = 0;
3813
+ this.idMoneda = 0;
3806
3814
  this.nombreRepresentanteLegal = '';
3807
3815
  this.cedulaRepresentanteLegal = '';
3808
3816
  this.telefonoRepresentanteLegal = '';
@@ -3831,7 +3839,6 @@ class MEmpresa extends MBasicModel {
3831
3839
  this.codigoCentroCosto = '';
3832
3840
  this.estructuraPresupuestaria = '';
3833
3841
  this.tipoEmpresa = 0;
3834
- this.idMoneda = 0;
3835
3842
  if (e) {
3836
3843
  this.idEmpresa = +e.id_empresa;
3837
3844
  this.rif = e.rifemp;
@@ -7020,8 +7027,8 @@ class SigespService {
7020
7027
  * @author Miguel Ramírez
7021
7028
  * @modifit 25-07-2021
7022
7029
  */
7023
- getConfigurationSCG() {
7024
- 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))));
7025
7032
  }
7026
7033
  /**
7027
7034
  * @description Abre un dialog de confirmación
@@ -7321,7 +7328,7 @@ class SigespService {
7321
7328
  data: {
7322
7329
  columns: ['cuenta', 'denominacion'],
7323
7330
  columnNames: ['cuenta', 'denominación'],
7324
- title: 'Catálogo de plan de cuenta institucional',
7331
+ title: 'Catálogo de Plan de Cuenta Institucional',
7325
7332
  dataSource: accounts
7326
7333
  },
7327
7334
  width: '1000px',
@@ -8033,11 +8040,35 @@ class SigespService {
8033
8040
  /**
8034
8041
  * @description Valida si la fecha esta dentro del periodo fiscal y el mes esta abierto o cerrado
8035
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'
8036
8046
  * @author Dimaly Crespo
8037
- * @author 11-10-2023
8047
+ * @fecha 11-10-2023
8048
+ *
8038
8049
  */
8039
- getValidarPeriodo(fecha, periodoFiscal) {
8040
- 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; }));
8041
8072
  }
8042
8073
  userHasRights(column) {
8043
8074
  return this.http.get(`${this.URL}/dao/sss/derechos_usuario_dao.php?idComponent=${this.currentComponent.id}&column=${column}`, { headers: this.getHttpHeaders() });