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.
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 +6 -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 +111 -79
  15. package/fesm2015/sigesp.mjs.map +1 -1
  16. package/fesm2020/sigesp.mjs +111 -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
@@ -2,10 +2,9 @@ export interface ICentroCosto {
2
2
  id_empresa: string;
3
3
  id_enterprise: string;
4
4
  id_cencos: string;
5
- centro?: string;
5
+ perfiscal: string;
6
6
  codcencos: string;
7
7
  denominacion: string;
8
- usuarios: IUsuariosCentroCosto[];
9
8
  }
10
9
  export interface IUsuariosCentroCosto {
11
10
  id_empresa: string;
@@ -1,27 +1,23 @@
1
1
  export interface IConfiguracionSCG {
2
+ id_empresa: string;
3
+ id_enterprise: string;
4
+ id_scg: string;
5
+ perfiscal: string;
2
6
  activo: string;
3
- bloanu: string;
4
7
  c_financiera_t: string;
5
8
  c_fiscal_t: string;
6
9
  c_resultadoact: string;
7
10
  c_resultadoant: string;
8
11
  capital: string;
9
- casconmov: string;
10
- ciesem1: string;
11
- ciesem2: string;
12
12
  clactacon: string;
13
13
  ctaresconact: string;
14
14
  ctaresconant: string;
15
15
  cuedepamo: string;
16
16
  cueproacu: string;
17
17
  estciescg: string;
18
- estciesem: string;
19
18
  esttipcon: string;
20
19
  formcont: string;
21
- formplan: string;
22
20
  gasto: string;
23
- id_empresa: string;
24
- id_scg: string;
25
21
  ingreso: string;
26
22
  m01: string;
27
23
  m02: string;
@@ -1,4 +1,6 @@
1
1
  export interface IConfigurationSPG {
2
+ id_enterprise: string;
3
+ perfiscal: string;
2
4
  ctaspgced: string;
3
5
  ctaspgrec: string;
4
6
  estantspg: string;
@@ -1,4 +1,6 @@
1
1
  export interface ICuentaIngresos {
2
+ id_enterprise: string;
3
+ perfiscal: string;
2
4
  abril: string;
3
5
  agosto: string;
4
6
  aumento: string;
@@ -1,4 +1,6 @@
1
1
  export interface ICuentaInstitucional {
2
+ id_enterprise: string;
3
+ perfiscal: string;
2
4
  sc_cuenta: string;
3
5
  cueproacu: string;
4
6
  denominacion: string;
@@ -1,3 +1,4 @@
1
+ import { ICentroCosto } from "./CentroCosto";
1
2
  import { IFuenteFinanciamiento } from "./FuenteFinanciamiento";
2
3
  export interface IUnidadAdministradoraCentral {
3
4
  id_enterprise: number;
@@ -12,19 +13,20 @@ export interface IUnidadAdministradoraCentral {
12
13
  export interface IUnitAdministrative {
13
14
  id_empresa: string;
14
15
  id_enterprise: string;
15
- id_cencos: string;
16
16
  coduniadm: string;
17
17
  coduac: string;
18
18
  denuniadm: string;
19
19
  estemireq: string;
20
- codcencos: string;
21
20
  id_uniadm: string;
22
21
  denuac?: string;
23
22
  codigouac?: string;
24
- denenominacion?: string;
25
23
  estructuras: IEstructuras[];
24
+ centros: ICentroCosto[];
26
25
  }
27
26
  export interface IEstructuras {
27
+ id_enterprise: string;
28
+ id_perfiscal: string;
29
+ id_empresa: string;
28
30
  id_ep1: string;
29
31
  id_ep2: string;
30
32
  id_ep3: string;
@@ -2,6 +2,8 @@ import { ICuentaIngresos } from '../../interfaces/CuentaIngreso';
2
2
  import { MBasicModel } from '../basic-model.model';
3
3
  export declare class MCuentaIngresos extends MBasicModel {
4
4
  idEmpresa: number;
5
+ idEnterprise: number;
6
+ periodoFiscal: number;
5
7
  nivel: number;
6
8
  denominacion: string;
7
9
  cuenta: string;
@@ -5,9 +5,9 @@ export declare class MCentroCosto extends MBasicModel {
5
5
  idEmpresa: number;
6
6
  idEnterprise: number;
7
7
  idCentroCosto: number;
8
+ periodoFical: number;
8
9
  centro: string;
9
10
  denominacion: string;
10
- usuarios: MUsuarioCentroCosto[];
11
11
  constructor(centroCosto?: ICentroCosto);
12
12
  dataInterface(): ICentroCosto;
13
13
  }
@@ -1,29 +1,25 @@
1
1
  import { MBasicModel } from '../basic-model.model';
2
2
  import { IConfiguracionSCG } from '../../interfaces/ConfiguracionSCG';
3
3
  export declare class MConfiguracionSCG extends MBasicModel {
4
+ idEnterprise: number;
5
+ periodoFiscal: number;
6
+ idSCG: number;
4
7
  activo: string;
5
- bloqueoAnulacion: string;
6
8
  cuentaSituacionDelTesoroFinanciera: string;
7
9
  CuentaSituacionDelTesoroFiscal: string;
8
10
  cuentaResultadoActual: string;
9
11
  cuentaResultadoAnterior: string;
10
12
  capital: string;
11
- casamientoConceptoMovimientoConCuentaBancaria: string;
12
- cierreSemestral1: string;
13
- cierreSemestral2: string;
14
13
  clasificacionCuentasContables: string;
15
14
  cuentaConsolidadaResultadoActual: string;
16
15
  cuentaConsolidadaResultadoAnterior: string;
17
16
  grupoCuentaDeProvicionesAcumuladaYReservaTecnica: string;
18
17
  grupoCuentaDeDepresiacionAcumulada: string;
19
18
  estadoCierreContable: string;
20
- estadoCierreSemestral: string;
21
19
  tipoContabilidadPatrimonialOFiscal: string;
22
20
  formatoCuentaContable: string;
23
- formatoPlanCuenta: string;
24
21
  gasto: string;
25
22
  idEmpresa: number;
26
- idSCG: number;
27
23
  ingreso: string;
28
24
  m01: number;
29
25
  m02: number;
@@ -1,6 +1,9 @@
1
1
  import { ICuentaInstitucional } from '../../interfaces/CuentaInstitucional';
2
2
  import { MBasicModel } from '../basic-model.model';
3
3
  export declare class MCuentaInstitucional extends MBasicModel {
4
+ idEmpresa: string;
5
+ idEnterprise: number;
6
+ periodoFiscal: number;
4
7
  cuenta: string;
5
8
  cueproacu: string;
6
9
  denominacion: string;
@@ -19,7 +22,6 @@ export declare class MCuentaInstitucional extends MBasicModel {
19
22
  asignado: string;
20
23
  distribuir: string;
21
24
  status: string;
22
- idEmpresa: string;
23
25
  nivel: string;
24
26
  referencia: string;
25
27
  denominacionCuentaProvisionAcumulada: string;
@@ -1,6 +1,7 @@
1
1
  import { MBasicModel } from '../basic-model.model';
2
2
  import { ICuentasSpSc, IEstructuras, IUnitAdministrative } from '../../interfaces/Presupuesto';
3
3
  import { MFuenteFinanciamiento } from './fuenteFinanciamiento.model';
4
+ import { MCentroCosto } from '../SCG/centroCosto.model';
4
5
  export declare class MAdministrativeUnit extends MBasicModel {
5
6
  idEmpresa: number;
6
7
  idEnterprise: number;
@@ -9,16 +10,19 @@ export declare class MAdministrativeUnit extends MBasicModel {
9
10
  unidadCentral: number;
10
11
  emiteRequisicion: boolean;
11
12
  idcentroCosto: number;
12
- centroCosto: string;
13
13
  id: number;
14
14
  denominacionUnidadCentral: string;
15
15
  codigoUnidadCentral: string;
16
16
  denominacionCentroCosto: string;
17
17
  estructuras: MEstructuras[];
18
+ centroCosto: MCentroCosto[];
18
19
  constructor(unidad?: IUnitAdministrative);
19
20
  dataInterface(): IUnitAdministrative;
20
21
  }
21
22
  export declare class MEstructuras extends MBasicModel {
23
+ idEnterprise: number;
24
+ periodoFiscal: number;
25
+ idEmpresa: number;
22
26
  cuentaContable: string;
23
27
  cuentaPresupuestaria: string;
24
28
  denominacion: string;
@@ -1,6 +1,10 @@
1
1
  import { IConfigurationSPG } from '../../interfaces/ConfigurationSPG';
2
2
  import { MMonedaConfig } from '../CFG/moneda.model';
3
3
  export declare class MConfigurationSPG {
4
+ idEmpresa: string;
5
+ IdSPG: string;
6
+ idEnterprise: number;
7
+ periodoFiscal: number;
4
8
  cuentasPresupuestoCedentes: string;
5
9
  cunetasPresupuestoRecaudadores: string;
6
10
  estatusAnticipoPresupuestario: string;
@@ -16,8 +20,6 @@ export declare class MConfigurationSPG {
16
20
  formatoPresupuestoGasto: string;
17
21
  formatoPresupuestoIngreso: string;
18
22
  digitosCuentasPresupuestoContabilidadGeneralParaGastos: string;
19
- idEmpresa: string;
20
- IdSPG: string;
21
23
  digitoCuentaPresupuestoContabilidadParaIngresos: string;
22
24
  longitudesCodigoEstructuraPresupuestria: string[];
23
25
  nivelValidacionEstructura: string;
@@ -33,5 +35,5 @@ export declare class MConfigurationSPG {
33
35
  moneda: MMonedaConfig;
34
36
  codigoONAPRE: any;
35
37
  decimalesAlternos: number;
36
- constructor(configuration: IConfigurationSPG);
38
+ constructor(configuration?: IConfigurationSPG);
37
39
  }
@@ -352,7 +352,7 @@ export declare class SigespService {
352
352
  * @author Miguel Ramírez
353
353
  * @modifit 25-07-2021
354
354
  */
355
- getConfigurationSCG(): Observable<MConfiguracionSCG[]>;
355
+ getConfigurationSCG(lineaEmpresa: number, periodoFiscal: number): Observable<MConfiguracionSCG[]>;
356
356
  /**
357
357
  * @description Abre un dialog de confirmación
358
358
  * @param title Título de la modal de confirm
@@ -837,10 +837,30 @@ export declare class SigespService {
837
837
  /**
838
838
  * @description Valida si la fecha esta dentro del periodo fiscal y el mes esta abierto o cerrado
839
839
  * @return Observable<IResponse>
840
+ * @param fecha: fecha a comparar
841
+ * @param lineaEmpresa: linea empresa del documento
842
+ * @param periodoFiscal : fecha del periodo a evaluar '1900-01-01'
840
843
  * @author Dimaly Crespo
841
- * @author 11-10-2023
844
+ * @fecha 11-10-2023
845
+ *
842
846
  */
843
- getValidarPeriodo(fecha: string, periodoFiscal: string): Observable<any>;
847
+ getValidarPeriodo(fecha: string, periodoFiscal: string, lineaEmpresa: number): Observable<any>;
848
+ /**
849
+ * @description Obtiene los periodo fiscales configurados en SCG y SPG menores o iguales al periodo fiscal actual.
850
+ * @return Observable<IResponse>
851
+ * @param lineaEmpresa: linea empresa del documento
852
+ * @author Dimaly Crespo
853
+ * @fecha 01-10-2024
854
+ */
855
+ getPeriodosConfigurados(lineaEmpresa: number): Observable<any>;
856
+ /**
857
+ * @description Obtiene los periodo fiscales configurados en SCG y SPG menores al periodo fiscal actual y el inmediato.
858
+ * @return Observable<IResponse>
859
+ * @param lineaEmpresa: linea empresa del documento
860
+ * @author Dimaly Crespo
861
+ * @fecha 01-10-2024
862
+ */
863
+ getPeriodosConfiguradosSCGSPG(lineaEmpresa: number): Observable<any>;
844
864
  userHasRights(column: 'administrador' | 'insertar' | 'actualizar' | 'consultar' | 'eliminar' | 'anular' | 'descargar' | 'ejecutar__procesar_' | 'imprimir' | 'enviar__correo_' | 'visible'): Observable<IResponse>;
845
865
  /**
846
866
  * @description Retorna los headers para hacer las peticiones
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigesp",
3
- "version": "1.1.7-20240927",
3
+ "version": "1.1.8-20241001",
4
4
  "dependencies": {
5
5
  "tslib": "^2.6.2"
6
6
  },