sigo-package 1.0.32 → 1.0.34
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/dist/Programados/ActualizarDataManoObra.d.ts +2 -0
- package/dist/Programados/ActualizarDataReserva.d.ts +2 -0
- package/dist/Programados/ActualizarDataTrabajos.d.ts +14 -0
- package/dist/Programados/Dtos/AmapCantidadesDto.d.ts +6 -0
- package/dist/Programados/Dtos/AmapDto.d.ts +30 -0
- package/dist/Programados/Dtos/ContratoOTDto.d.ts +8 -0
- package/dist/Programados/Dtos/DatosCatalogoItemDto.d.ts +6 -0
- package/dist/Programados/Dtos/DatosCatalogoMODto.d.ts +8 -0
- package/dist/Programados/Dtos/DatosItemDto.d.ts +6 -0
- package/dist/Programados/Dtos/DatosManoObraGlobalDto.d.ts +8 -0
- package/dist/Programados/Dtos/DatosPrecioEspecialidadDto.d.ts +8 -0
- package/dist/Programados/Dtos/DatosPrecioMaterialDto.d.ts +9 -0
- package/dist/Programados/Dtos/DatosUnidadObraMaterialDto.d.ts +6 -0
- package/dist/Programados/Dtos/DetalleChileReservaMODto.d.ts +29 -0
- package/dist/Programados/Dtos/DetalleManoObraChileDto.d.ts +4 -0
- package/dist/Programados/Dtos/ItemCantidadesDto.d.ts +5 -0
- package/dist/Programados/Dtos/ItemDto.d.ts +30 -0
- package/dist/Programados/Dtos/ManoObraBaremoDto.d.ts +7 -0
- package/dist/Programados/Dtos/MaterialAmapDto.d.ts +15 -0
- package/dist/Programados/Dtos/MaterialLogisticaDto.d.ts +9 -0
- package/dist/Programados/Dtos/OTGlobalDto.d.ts +6 -0
- package/dist/Programados/Dtos/PrecioActividadDto.d.ts +11 -0
- package/dist/Programados/Dtos/PreciosAgenciaDto.d.ts +10 -0
- package/dist/Programados/Dtos/PreciosContrataDto.d.ts +8 -0
- package/dist/Programados/Dtos/PreciosVigentesDto.d.ts +8 -0
- package/dist/Programados/Dtos/PreciosZonasDto.d.ts +9 -0
- package/dist/Programados/Dtos/ValorizacionDto.d.ts +2 -0
- package/dist/Programados/Dtos/VarianteDto.d.ts +4 -0
- package/dist/Programados/Dtos/VigenciaDto.d.ts +4 -0
- package/dist/Programados/Dtos/WBEDto.d.ts +5 -0
- package/dist/Programados/Dtos/index.d.ts +2 -0
- package/dist/Programados/Entitys/EstadoInternoEntity.d.ts +1 -1
- package/dist/Programados/Entitys/ManoDeObraEntity.d.ts +5 -0
- package/dist/Programados/Entitys/ObraEntity.d.ts +4 -0
- package/dist/Programados/Entitys/ReservaEntity.d.ts +4 -0
- package/dist/Programados/Entitys/TrabajoEntity.d.ts +3 -3
- package/dist/Programados/index.d.ts +4 -1
- package/dist/Shared/Dtos/DelegacionDto.d.ts +4 -0
- package/dist/Shared/Dtos/EmpresaDto.d.ts +4 -0
- package/dist/Shared/Dtos/EmpresaUsuarioDto.d.ts +7 -0
- package/dist/Shared/Dtos/GeneralCodigoNombreDto.d.ts +4 -0
- package/dist/Shared/Dtos/GeneralCodigoNombreUnidadDto.d.ts +5 -0
- package/dist/Shared/Dtos/PaisDto.d.ts +4 -0
- package/dist/Shared/Dtos/index.d.ts +9 -0
- package/dist/Shared/index.d.ts +2 -0
- package/dist/index.d.ts +2 -2
- package/dist/sigo-package.cjs.development.js +67 -0
- package/dist/sigo-package.cjs.development.js.map +1 -1
- package/dist/sigo-package.cjs.production.min.js +1 -1
- package/dist/sigo-package.cjs.production.min.js.map +1 -1
- package/dist/sigo-package.esm.js +65 -1
- package/dist/sigo-package.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Programados/ActualizarDataManoObra.ts +13 -0
- package/src/Programados/ActualizarDataReserva.ts +9 -0
- package/src/Programados/ActualizarDataTrabajos.ts +32 -0
- package/src/Programados/Dtos/AmapCantidadesDto.ts +6 -0
- package/src/Programados/Dtos/AmapDto.ts +31 -0
- package/src/Programados/Dtos/ContratoOTDto.ts +9 -0
- package/src/Programados/Dtos/DatosCatalogoItemDto.ts +7 -0
- package/src/Programados/Dtos/DatosCatalogoMODto.ts +9 -0
- package/src/Programados/Dtos/DatosItemDto.ts +6 -0
- package/src/Programados/Dtos/DatosManoObraGlobalDto.ts +9 -0
- package/src/Programados/Dtos/DatosPrecioEspecialidadDto.ts +9 -0
- package/src/Programados/Dtos/DatosPrecioMaterialDto.ts +10 -0
- package/src/Programados/Dtos/DatosUnidadObraMaterialDto.ts +7 -0
- package/src/Programados/Dtos/DetalleChileReservaMODto.ts +30 -0
- package/src/Programados/Dtos/DetalleManoObraChileDto.ts +5 -0
- package/src/Programados/Dtos/ItemCantidadesDto.ts +5 -0
- package/src/Programados/Dtos/ItemDto.ts +31 -0
- package/src/Programados/Dtos/ManoObraBaremoDto.ts +8 -0
- package/src/Programados/Dtos/MaterialAmapDto.ts +16 -0
- package/src/Programados/Dtos/MaterialLogisticaDto.ts +10 -0
- package/src/Programados/Dtos/OTGlobalDto.ts +6 -0
- package/src/Programados/Dtos/PrecioActividadDto.ts +12 -0
- package/src/Programados/Dtos/PreciosAgenciaDto.ts +11 -0
- package/src/Programados/Dtos/PreciosContrataDto.ts +9 -0
- package/src/Programados/Dtos/PreciosVigentesDto.ts +9 -0
- package/src/Programados/Dtos/PreciosZonasDto.ts +10 -0
- package/src/Programados/Dtos/ValorizacionDto.ts +2 -1
- package/src/Programados/Dtos/VarianteDto.ts +4 -0
- package/src/Programados/Dtos/VigenciaDto.ts +4 -0
- package/src/Programados/Dtos/WBEDto.ts +5 -0
- package/src/Programados/Dtos/index.ts +5 -0
- package/src/Programados/Entitys/EstadoInternoEntity.ts +1 -1
- package/src/Programados/Entitys/ManoDeObraEntity.ts +21 -0
- package/src/Programados/Entitys/ObraEntity.ts +5 -0
- package/src/Programados/Entitys/ReservaEntity.ts +21 -0
- package/src/Programados/Entitys/TrabajoEntity.ts +3 -3
- package/src/Programados/index.ts +9 -3
- package/src/Shared/Dtos/DelegacionDto.ts +4 -0
- package/src/Shared/Dtos/EmpresaDto.ts +4 -0
- package/src/Shared/Dtos/EmpresaUsuarioDto.ts +7 -0
- package/src/Shared/Dtos/GeneralCodigoNombreDto.ts +4 -0
- package/src/Shared/Dtos/GeneralCodigoNombreUnidadDto.ts +5 -0
- package/src/Shared/Dtos/{CodigoNombreDto.ts → PaisDto.ts} +3 -3
- package/src/Shared/Dtos/index.ts +19 -0
- package/src/Shared/index.ts +21 -0
- package/src/index.ts +8 -2
- package/dist/Programados/Procesos/ParteDiario/trabajo.d.ts +0 -2
- package/dist/Shared/Dtos/CodigoNombreDto.d.ts +0 -4
- package/src/Programados/Procesos/ParteDiario/trabajo.ts +0 -1309
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ManoDeObraEntity } from './Entitys/ManoDeObraEntity';
|
|
2
|
+
import { ObraEntity } from './Entitys/ObraEntity';
|
|
3
|
+
import { TrabajoEntity } from './Entitys/TrabajoEntity';
|
|
4
|
+
interface IParams {
|
|
5
|
+
manoObra: ManoDeObraEntity;
|
|
6
|
+
trabajos: TrabajoEntity[];
|
|
7
|
+
obra: ObraEntity;
|
|
8
|
+
envSIGO: IenvSIGO;
|
|
9
|
+
}
|
|
10
|
+
interface IenvSIGO {
|
|
11
|
+
SISTEMAS_VALORIZACION_MANO_OBRA: string[];
|
|
12
|
+
}
|
|
13
|
+
export declare const ActualizarDataTrabajos: ({ manoObra, trabajos, obra, envSIGO }: IParams) => void;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EstadoDto } from 'Shared/index';
|
|
2
|
+
import { WBEDto } from './WBEDto';
|
|
3
|
+
import { DetalleChileReservaMODto } from './DetalleChileReservaMODto';
|
|
4
|
+
import { DatosCatalogoMODto } from './DatosCatalogoMODto';
|
|
5
|
+
import { AmapCantidadesDto } from './AmapCantidadesDto';
|
|
6
|
+
export declare class AmapDto {
|
|
7
|
+
ID_Amap: number;
|
|
8
|
+
Amap: number;
|
|
9
|
+
Cantidad: number;
|
|
10
|
+
CantidadUsado: number;
|
|
11
|
+
CantidadTransito: number;
|
|
12
|
+
CantidadAprobada: number;
|
|
13
|
+
Codigo: string;
|
|
14
|
+
Descripcion: string;
|
|
15
|
+
Estado: EstadoDto;
|
|
16
|
+
Precio: number;
|
|
17
|
+
Total: number;
|
|
18
|
+
Unidad: string;
|
|
19
|
+
Moneda: string;
|
|
20
|
+
Simbolo: string;
|
|
21
|
+
Decimales: number;
|
|
22
|
+
WBE: WBEDto;
|
|
23
|
+
DetalleChile: DetalleChileReservaMODto;
|
|
24
|
+
CantidadUO: number;
|
|
25
|
+
CantidadUOUsado: number;
|
|
26
|
+
CantidadUOTransito: number;
|
|
27
|
+
CantidadUOAprobada: number;
|
|
28
|
+
Cantidades: AmapCantidadesDto[];
|
|
29
|
+
DatosCatalogoMO: DatosCatalogoMODto;
|
|
30
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DatosManoObraGlobalDto } from './DatosManoObraGlobalDto';
|
|
2
|
+
import { DatosPrecioEspecialidadDto } from './DatosPrecioEspecialidadDto';
|
|
3
|
+
import { DatosUnidadObraMaterialDto } from './DatosUnidadObraMaterialDto';
|
|
4
|
+
export declare class DatosCatalogoMODto {
|
|
5
|
+
DatosManoObraGlobal: DatosManoObraGlobalDto;
|
|
6
|
+
DatosPrecioEspecialidad: DatosPrecioEspecialidadDto;
|
|
7
|
+
DatosUnidadObraMaterial: DatosUnidadObraMaterialDto;
|
|
8
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DetalleManoObraChileDto } from "./DetalleManoObraChileDto";
|
|
2
|
+
import { MaterialAmapDto } from "./MaterialAmapDto";
|
|
3
|
+
export declare class DatosManoObraGlobalDto {
|
|
4
|
+
Actividad: string;
|
|
5
|
+
Alcance: string;
|
|
6
|
+
Material: MaterialAmapDto[];
|
|
7
|
+
DetalleChile: DetalleManoObraChileDto;
|
|
8
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { GeneralCodigoNombreDto, GeneralCodigoNombreUnidadDto } from 'Shared/index';
|
|
2
|
+
export declare class DetalleChileReservaMODto {
|
|
3
|
+
Codigo: string;
|
|
4
|
+
Linea: string;
|
|
5
|
+
DirDesde: string;
|
|
6
|
+
AltDesde: string;
|
|
7
|
+
DirHasta: string;
|
|
8
|
+
AltHasta: string;
|
|
9
|
+
Plano: string;
|
|
10
|
+
Especialidad: GeneralCodigoNombreDto;
|
|
11
|
+
Actividad: GeneralCodigoNombreDto;
|
|
12
|
+
Clave: GeneralCodigoNombreDto;
|
|
13
|
+
Tarea: string;
|
|
14
|
+
ManoObra: GeneralCodigoNombreUnidadDto;
|
|
15
|
+
UnidadObra: GeneralCodigoNombreUnidadDto;
|
|
16
|
+
HomePass: GeneralCodigoNombreDto;
|
|
17
|
+
LineaCodigoCub: string;
|
|
18
|
+
CodigoCub: string;
|
|
19
|
+
CanMOCub: number;
|
|
20
|
+
CanMOInf: number;
|
|
21
|
+
CanMOApr: number;
|
|
22
|
+
CanUOCub: number;
|
|
23
|
+
CanUOInf: number;
|
|
24
|
+
TotalUO: number;
|
|
25
|
+
CanUOApr: number;
|
|
26
|
+
Origen: string;
|
|
27
|
+
CodigoBarra: string;
|
|
28
|
+
PuntoBaremo: number;
|
|
29
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { EmpresaDto, UnidadMedidadDto } from 'Shared/index';
|
|
2
|
+
import { VarianteDto } from './VarianteDto';
|
|
3
|
+
import { WBEDto } from './WBEDto';
|
|
4
|
+
import { ItemCantidadesDto } from './ItemCantidadesDto';
|
|
5
|
+
import { DatosCatalogoItemDto } from './DatosCatalogoItemDto';
|
|
6
|
+
export declare class ItemDto {
|
|
7
|
+
ID_Item: number;
|
|
8
|
+
Empresa: EmpresaDto;
|
|
9
|
+
Codigo: string;
|
|
10
|
+
Nombre: string;
|
|
11
|
+
Descripcion: string;
|
|
12
|
+
Variante: VarianteDto;
|
|
13
|
+
UnidadMedida: UnidadMedidadDto;
|
|
14
|
+
Ind_SB: string;
|
|
15
|
+
Lote: string;
|
|
16
|
+
Cantidad: number;
|
|
17
|
+
CantidadDespacho: number;
|
|
18
|
+
CantidadUsados: number;
|
|
19
|
+
CantidadDevolucion: number;
|
|
20
|
+
CantidadAprobada: number;
|
|
21
|
+
POS: number;
|
|
22
|
+
Valor: number;
|
|
23
|
+
WBE: WBEDto;
|
|
24
|
+
Total: number;
|
|
25
|
+
Moneda: string;
|
|
26
|
+
Simbolo: string;
|
|
27
|
+
Decimales: number;
|
|
28
|
+
Cantidades: ItemCantidadesDto[];
|
|
29
|
+
DatosCatalogoItem: DatosCatalogoItemDto;
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EstadoDto } from 'Shared/index';
|
|
2
|
+
import { MaterialLogisticaDto } from './MaterialLogisticaDto';
|
|
3
|
+
export declare class MaterialAmapDto {
|
|
4
|
+
ID_MaterialAmap: number;
|
|
5
|
+
ID_Item: number;
|
|
6
|
+
Transaccion: string;
|
|
7
|
+
Requerido: number;
|
|
8
|
+
Codigo: string;
|
|
9
|
+
Descripcion: string;
|
|
10
|
+
Unidad: string;
|
|
11
|
+
CantidadMax: number;
|
|
12
|
+
Grupo: string;
|
|
13
|
+
MaterialLogistica: MaterialLogisticaDto[];
|
|
14
|
+
Estado: EstadoDto;
|
|
15
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EstadoDto } from 'Shared/index';
|
|
2
|
+
import { PreciosVigentesDto } from './PreciosVigentesDto';
|
|
3
|
+
export declare class PrecioActividadDto {
|
|
4
|
+
ID_PrecioActividad: number;
|
|
5
|
+
Codigo: string;
|
|
6
|
+
Descripcion: string;
|
|
7
|
+
Ultimo_Precio: PreciosVigentesDto;
|
|
8
|
+
Precios: PreciosVigentesDto[];
|
|
9
|
+
FechaRegistro: Date;
|
|
10
|
+
Estado: EstadoDto;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EstadoDto } from 'Shared/index';
|
|
2
|
+
import { PreciosVigentesDto } from './PreciosVigentesDto';
|
|
3
|
+
export declare class PreciosAgenciaDto {
|
|
4
|
+
ID_PreciosAgencia: number;
|
|
5
|
+
Codigo: string;
|
|
6
|
+
Nombre: string;
|
|
7
|
+
Ultimo_Precio: PreciosVigentesDto;
|
|
8
|
+
Precios: PreciosVigentesDto[];
|
|
9
|
+
Estado: EstadoDto;
|
|
10
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EmpresaUsuarioDto, EstadoDto } from 'Shared/index';
|
|
2
|
+
import { PreciosZonasDto } from './PreciosZonasDto';
|
|
3
|
+
export declare class PreciosContrataDto {
|
|
4
|
+
ID_PrecioContrata: number;
|
|
5
|
+
Zonas: PreciosZonasDto[];
|
|
6
|
+
Empresa: EmpresaUsuarioDto;
|
|
7
|
+
Estado: EstadoDto;
|
|
8
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EstadoDto } from "Shared/index";
|
|
2
|
+
import { PrecioActividadDto } from "./PrecioActividadDto";
|
|
3
|
+
export declare class PreciosZonasDto {
|
|
4
|
+
ID_PreciosZonas: number;
|
|
5
|
+
Codigo: string;
|
|
6
|
+
Descripcion: string;
|
|
7
|
+
Actividades: PrecioActividadDto[];
|
|
8
|
+
Estado: EstadoDto;
|
|
9
|
+
}
|
|
@@ -5,6 +5,7 @@ import { ProduccionDto } from "./ProduccionDto";
|
|
|
5
5
|
import { AnexoDto } from "Shared/Dtos/AnexoDto";
|
|
6
6
|
import { FilesDocDto } from "./FilesDocDto";
|
|
7
7
|
import { MaterialesUtiRetDto } from "./MaterialesUtiRetDto";
|
|
8
|
+
import { DetalleChileReservaMODto } from "./DetalleChileReservaMODto";
|
|
8
9
|
export declare class ValorizacionDto {
|
|
9
10
|
ID_Valorizacion: number;
|
|
10
11
|
Amap: number;
|
|
@@ -33,6 +34,7 @@ export declare class ValorizacionDto {
|
|
|
33
34
|
Unidad: string;
|
|
34
35
|
MaterialesUtilizados: MaterialesUtiRetDto[];
|
|
35
36
|
MaterialesRetirados: MaterialesUtiRetDto[];
|
|
37
|
+
DetalleChile: DetalleChileReservaMODto;
|
|
36
38
|
PrecioContrata: number;
|
|
37
39
|
TotalContrata: number;
|
|
38
40
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnexoDto } from 'Shared/Dtos/AnexoDto';
|
|
2
2
|
import { BitacoraDto } from 'Shared/Dtos/BitacoraDto';
|
|
3
|
-
import { CodigoNombreDto } from 'Shared/Dtos/
|
|
3
|
+
import { CodigoNombreDto } from 'Shared/Dtos/GeneralCodigoNombreDto';
|
|
4
4
|
import { EstadoDto } from 'Shared/Dtos/EstadoDto';
|
|
5
5
|
import { UsuarioEdicionDto } from 'Shared/Dtos/UsuarioEdicionDto';
|
|
6
6
|
export declare class EstadoInternoEntity {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { EstadoDto } from 'Shared/Dtos/EstadoDto';
|
|
2
|
-
import {
|
|
2
|
+
import { GeneralCodigoNombreDto } from '../../Shared/Dtos/GeneralCodigoNombreDto';
|
|
3
3
|
import { PersonalDto } from 'Shared/Dtos/PersonalDto';
|
|
4
4
|
import { UsuarioDto } from 'Shared/Dtos/UsuarioDto';
|
|
5
5
|
import { EstadoInternoDto } from 'Shared/Dtos/EstadoInternoDto';
|
|
@@ -11,8 +11,8 @@ export interface TrabajoEntity {
|
|
|
11
11
|
GOM: string;
|
|
12
12
|
Descripcion: string;
|
|
13
13
|
FechaRegistro: Date;
|
|
14
|
-
Pais:
|
|
15
|
-
Delegacion:
|
|
14
|
+
Pais: GeneralCodigoNombreDto;
|
|
15
|
+
Delegacion: GeneralCodigoNombreDto;
|
|
16
16
|
ZonaAsignada: string;
|
|
17
17
|
Ultima_PreLiquidacion: PreliquidacionDto;
|
|
18
18
|
Preliquidaciones: PreliquidacionDto[];
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { ActualizarDataResumenLiquidaciones } from './ActualizarDataResumenLiquidaciones';
|
|
2
2
|
import { CalcularResumenLiquidaciones } from './CalcularResumenLiquidaciones';
|
|
3
|
+
import { ActualizarDataReserva } from './ActualizarDataReserva';
|
|
4
|
+
import { ActualizarDataManoObra } from './ActualizarDataManoObra';
|
|
5
|
+
import { ActualizarDataTrabajos } from './ActualizarDataTrabajos';
|
|
3
6
|
import { DocumentacionReplanteo, ModelDataFlujosDocumentacionReplanteo, CompararFechas } from './Procesos/index';
|
|
4
|
-
export { ActualizarDataResumenLiquidaciones, CalcularResumenLiquidaciones, DocumentacionReplanteo, ModelDataFlujosDocumentacionReplanteo, CompararFechas };
|
|
7
|
+
export { ActualizarDataResumenLiquidaciones, CalcularResumenLiquidaciones, DocumentacionReplanteo, ModelDataFlujosDocumentacionReplanteo, CompararFechas, ActualizarDataReserva, ActualizarDataManoObra, ActualizarDataTrabajos, };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PaisDto } from './PaisDto';
|
|
2
|
+
import { DelegacionDto } from './DelegacionDto';
|
|
3
|
+
import { EmpresaDto } from './EmpresaDto';
|
|
4
|
+
import { UnidadMedidadDto } from './UnidadMedidadDto';
|
|
5
|
+
import { EstadoDto } from './EstadoDto';
|
|
6
|
+
import { GeneralCodigoNombreDto } from './GeneralCodigoNombreDto';
|
|
7
|
+
import { GeneralCodigoNombreUnidadDto } from './GeneralCodigoNombreUnidadDto';
|
|
8
|
+
import { EmpresaUsuarioDto } from './EmpresaUsuarioDto';
|
|
9
|
+
export { PaisDto, DelegacionDto, EmpresaDto, UnidadMedidadDto, EstadoDto, GeneralCodigoNombreDto, GeneralCodigoNombreUnidadDto, EmpresaUsuarioDto, };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { PaisDto, DelegacionDto, EmpresaDto, UnidadMedidadDto, EstadoDto, GeneralCodigoNombreDto, GeneralCodigoNombreUnidadDto, EmpresaUsuarioDto } from './Dtos/index';
|
|
2
|
+
export { PaisDto, DelegacionDto, EmpresaDto, UnidadMedidadDto, EstadoDto, GeneralCodigoNombreDto, GeneralCodigoNombreUnidadDto, EmpresaUsuarioDto, };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ActualizarDataResumenLiquidaciones, CalcularResumenLiquidaciones, DocumentacionReplanteo, ModelDataFlujosDocumentacionReplanteo, CompararFechas } from './Programados/index';
|
|
2
|
-
export { ActualizarDataResumenLiquidaciones, CalcularResumenLiquidaciones, DocumentacionReplanteo, ModelDataFlujosDocumentacionReplanteo, CompararFechas };
|
|
1
|
+
import { ActualizarDataResumenLiquidaciones, CalcularResumenLiquidaciones, DocumentacionReplanteo, ModelDataFlujosDocumentacionReplanteo, CompararFechas, ActualizarDataReserva, ActualizarDataManoObra, ActualizarDataTrabajos } from './Programados/index';
|
|
2
|
+
export { ActualizarDataResumenLiquidaciones, CalcularResumenLiquidaciones, DocumentacionReplanteo, ModelDataFlujosDocumentacionReplanteo, CompararFechas, ActualizarDataReserva, ActualizarDataManoObra, ActualizarDataTrabajos };
|
|
@@ -156,6 +156,70 @@ var CalcularResumenLiquidaciones = function CalcularResumenLiquidaciones(trabajo
|
|
|
156
156
|
};
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
+
var ActualizarDataReserva = function ActualizarDataReserva(reserva) {
|
|
160
|
+
for (var _iterator = _createForOfIteratorHelperLoose(reserva.Item), _step; !(_step = _iterator()).done;) {
|
|
161
|
+
var _item$DatosCatalogoIt, _item$DatosCatalogoIt2;
|
|
162
|
+
var item = _step.value;
|
|
163
|
+
var tipo = (item == null || (_item$DatosCatalogoIt = item.DatosCatalogoItem) == null || (_item$DatosCatalogoIt = _item$DatosCatalogoIt.DatosItem) == null ? void 0 : _item$DatosCatalogoIt.Tipo) || '';
|
|
164
|
+
var precio = Number(item == null || (_item$DatosCatalogoIt2 = item.DatosCatalogoItem) == null || (_item$DatosCatalogoIt2 = _item$DatosCatalogoIt2.DatosPrecioMaterial) == null ? void 0 : _item$DatosCatalogoIt2.Precio) || 0;
|
|
165
|
+
item.Valor = tipo.trim() === 'AP Valorado' ? precio : 0;
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
var ActualizarDataManoObra = function ActualizarDataManoObra(manoObra) {
|
|
170
|
+
for (var _iterator = _createForOfIteratorHelperLoose(manoObra.Valorizacion), _step; !(_step = _iterator()).done;) {
|
|
171
|
+
var valorizacion = _step.value;
|
|
172
|
+
var _valorizacion$DatosCa = valorizacion.DatosCatalogoMO,
|
|
173
|
+
ManoObraBaremo = _valorizacion$DatosCa.DatosManoObraGlobal.DetalleChile.ManoObraBaremo,
|
|
174
|
+
Agencias = _valorizacion$DatosCa.DatosPrecioEspecialidad.Agencias;
|
|
175
|
+
if (!!!Agencias.length) throw Error("\xA1No se pudo obtener Precio! Comun\xEDcate con Soporte");
|
|
176
|
+
var agencia = Agencias.find(function (e) {
|
|
177
|
+
return e.Estado.ID_Estado === 1;
|
|
178
|
+
});
|
|
179
|
+
if (!!!agencia) throw Error("\xA1No se pudo obtener Precio! Comun\xEDcate con Soporte");
|
|
180
|
+
valorizacion.Precio = Number(agencia.Ultimo_Precio.Precio);
|
|
181
|
+
if (!!!ManoObraBaremo.length) throw Error("\xA1No se pudo obtener Punto Baremo! Comun\xEDcate con Soporte");
|
|
182
|
+
valorizacion.DetalleChile.PuntoBaremo = ManoObraBaremo[0].PuntoBaremo;
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
var ActualizarDataTrabajos = function ActualizarDataTrabajos(_ref) {
|
|
187
|
+
var manoObra = _ref.manoObra,
|
|
188
|
+
trabajos = _ref.trabajos,
|
|
189
|
+
obra = _ref.obra,
|
|
190
|
+
envSIGO = _ref.envSIGO;
|
|
191
|
+
var Sistema = envSIGO.SISTEMAS_VALORIZACION_MANO_OBRA.includes(obra.ContratoOT.Sistema) ? 'onNet' : 'default';
|
|
192
|
+
for (var _iterator = _createForOfIteratorHelperLoose(trabajos), _step; !(_step = _iterator()).done;) {
|
|
193
|
+
var trabajo = _step.value;
|
|
194
|
+
var _loop = function _loop() {
|
|
195
|
+
var valorizacion = _step2.value;
|
|
196
|
+
var valorizacionMO = manoObra.Valorizacion.find(function (e) {
|
|
197
|
+
return e.DetalleChile.LineaCodigoCub === valorizacion.DetalleChile.LineaCodigoCub;
|
|
198
|
+
});
|
|
199
|
+
if (valorizacionMO) {
|
|
200
|
+
var _valorizacionMO$Datos = valorizacionMO.DatosCatalogoMO,
|
|
201
|
+
ManoObraBaremo = _valorizacionMO$Datos.DatosManoObraGlobal.DetalleChile.ManoObraBaremo,
|
|
202
|
+
Agencias = _valorizacionMO$Datos.DatosPrecioEspecialidad.Agencias;
|
|
203
|
+
var sistema = {
|
|
204
|
+
onNet: {
|
|
205
|
+
PuntoBaremo: Agencias[0].Ultimo_Precio.Precio,
|
|
206
|
+
Precio: ManoObraBaremo[0].PuntoBaremo
|
|
207
|
+
},
|
|
208
|
+
"default": {
|
|
209
|
+
PuntoBaremo: ManoObraBaremo[0].PuntoBaremo,
|
|
210
|
+
Precio: Agencias[0].Ultimo_Precio.Precio
|
|
211
|
+
}
|
|
212
|
+
};
|
|
213
|
+
valorizacion.DetalleChile.PuntoBaremo = sistema[Sistema].PuntoBaremo;
|
|
214
|
+
valorizacion.Precio = sistema[Sistema].Precio;
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
for (var _iterator2 = _createForOfIteratorHelperLoose(trabajo.Ultima_PreLiquidacion.Valorizacion), _step2; !(_step2 = _iterator2()).done;) {
|
|
218
|
+
_loop();
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
|
|
159
223
|
var DocumentacionReplanteo = [{
|
|
160
224
|
"id": 1,
|
|
161
225
|
"label": "REGISTRO FOTOGRAFICO",
|
|
@@ -259,7 +323,10 @@ var CompararFechas = function CompararFechas(Fecha1, Fecha2) {
|
|
|
259
323
|
return fecParteDiario.getTime() === hoy.getTime();
|
|
260
324
|
};
|
|
261
325
|
|
|
326
|
+
exports.ActualizarDataManoObra = ActualizarDataManoObra;
|
|
327
|
+
exports.ActualizarDataReserva = ActualizarDataReserva;
|
|
262
328
|
exports.ActualizarDataResumenLiquidaciones = ActualizarDataResumenLiquidaciones;
|
|
329
|
+
exports.ActualizarDataTrabajos = ActualizarDataTrabajos;
|
|
263
330
|
exports.CalcularResumenLiquidaciones = CalcularResumenLiquidaciones;
|
|
264
331
|
exports.CompararFechas = CompararFechas;
|
|
265
332
|
exports.DocumentacionReplanteo = DocumentacionReplanteo;
|