sigo-package 1.2.22 → 1.2.24
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/index.d.mts +16 -4
- package/dist/index.d.ts +16 -4
- package/dist/index.js +111 -23
- package/dist/index.mjs +109 -22
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ManoObraENTITY, ReservaENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, ValorizacionManoObraDTO, ValorizacionDTO, PrecioContratistaMOAL02ENTITY, StockPersonalENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
1
|
+
import { ManoObraENTITY, ReservaENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, ValorizacionManoObraDTO, ValorizacionDTO, PrecioContratistaMOAL02ENTITY, StockPersonalENTITY, ItemDetalleLogisticaDTO, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
2
2
|
|
|
3
3
|
interface IenvSIGO$1 {
|
|
4
4
|
SISTEMAS_VALORIZACION_MANO_OBRA: string[];
|
|
@@ -309,9 +309,10 @@ declare function obtenerTipoYCodigoMO(codigoOriginal: string): {
|
|
|
309
309
|
interface IMateriales {
|
|
310
310
|
id: string;
|
|
311
311
|
cantidad: number;
|
|
312
|
-
|
|
312
|
+
item: ItemDetalleLogisticaDTO;
|
|
313
|
+
material: IMOAndMaterialsRules;
|
|
313
314
|
}
|
|
314
|
-
declare function
|
|
315
|
+
declare function checkAndBuildMaterialsFromPersonalStock(Materiales: IMOAndMaterialsRules[], dataStockPersonal: StockPersonalENTITY[], id: string): IMateriales[];
|
|
315
316
|
|
|
316
317
|
declare function buildDataMaterialsRule(Materiales: Map<string, IMOAndMaterialsRules>, dataStockPersonal: Pick<StockPersonalENTITY, 'ID_StockPersonal' | 'Item' | 'Lote'>[]): {
|
|
317
318
|
id: number;
|
|
@@ -372,6 +373,17 @@ interface IenvSIGO {
|
|
|
372
373
|
}
|
|
373
374
|
declare const ActualizarDataTrabajos: ({ manoObra, trabajos, obra, ContratoOT, envSIGO }: IParams) => void;
|
|
374
375
|
|
|
376
|
+
declare enum EstadoEspecialidad9612 {
|
|
377
|
+
ACTIVO = "ACTIVO",
|
|
378
|
+
INACTIVO = "INACTIVO"
|
|
379
|
+
}
|
|
380
|
+
interface iMapaEspecialidades9612 {
|
|
381
|
+
OldSpecialty: string;
|
|
382
|
+
NewSpecialty: string;
|
|
383
|
+
Estado: EstadoEspecialidad9612;
|
|
384
|
+
}
|
|
385
|
+
declare const MapeoEspecialidades9612: iMapaEspecialidades9612[];
|
|
386
|
+
|
|
375
387
|
interface Zona {
|
|
376
388
|
Descripcion: string;
|
|
377
389
|
Codigo: string;
|
|
@@ -494,4 +506,4 @@ declare function generateUniqueNumber(): number;
|
|
|
494
506
|
|
|
495
507
|
declare function setContext(this: any, modules: __WebpackModuleApi.RequireContext): void;
|
|
496
508
|
|
|
497
|
-
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDocumentacion, type IMOAndMaterialsRules, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$1 as MatStockPersonalType, type MatUtilizadosType$1 as MatUtilizadosType, type MoUoType$1 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, SEGMENT_TY, type TARGET, UpdateNodosDocDP, buildDataMaterialsRule,
|
|
509
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDocumentacion, type IMOAndMaterialsRules, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$1 as MatStockPersonalType, type MatUtilizadosType$1 as MatUtilizadosType, type MoUoType$1 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, SEGMENT_TY, type TARGET, UpdateNodosDocDP, buildDataMaterialsRule, checkAndBuildMaterialsFromPersonalStock, codBalizaAL04, codClientes, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, convertDates, dataFlujosHomePass, esCadenaFechaISOValida, esObjetoFecha, generateUniqueNumber, getChannelName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Valorizacion, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ManoObraENTITY, ReservaENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, ValorizacionManoObraDTO, ValorizacionDTO, PrecioContratistaMOAL02ENTITY, StockPersonalENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
1
|
+
import { ManoObraENTITY, ReservaENTITY, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, ValorizacionManoObraDTO, ValorizacionDTO, PrecioContratistaMOAL02ENTITY, StockPersonalENTITY, ItemDetalleLogisticaDTO, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
2
2
|
|
|
3
3
|
interface IenvSIGO$1 {
|
|
4
4
|
SISTEMAS_VALORIZACION_MANO_OBRA: string[];
|
|
@@ -309,9 +309,10 @@ declare function obtenerTipoYCodigoMO(codigoOriginal: string): {
|
|
|
309
309
|
interface IMateriales {
|
|
310
310
|
id: string;
|
|
311
311
|
cantidad: number;
|
|
312
|
-
|
|
312
|
+
item: ItemDetalleLogisticaDTO;
|
|
313
|
+
material: IMOAndMaterialsRules;
|
|
313
314
|
}
|
|
314
|
-
declare function
|
|
315
|
+
declare function checkAndBuildMaterialsFromPersonalStock(Materiales: IMOAndMaterialsRules[], dataStockPersonal: StockPersonalENTITY[], id: string): IMateriales[];
|
|
315
316
|
|
|
316
317
|
declare function buildDataMaterialsRule(Materiales: Map<string, IMOAndMaterialsRules>, dataStockPersonal: Pick<StockPersonalENTITY, 'ID_StockPersonal' | 'Item' | 'Lote'>[]): {
|
|
317
318
|
id: number;
|
|
@@ -372,6 +373,17 @@ interface IenvSIGO {
|
|
|
372
373
|
}
|
|
373
374
|
declare const ActualizarDataTrabajos: ({ manoObra, trabajos, obra, ContratoOT, envSIGO }: IParams) => void;
|
|
374
375
|
|
|
376
|
+
declare enum EstadoEspecialidad9612 {
|
|
377
|
+
ACTIVO = "ACTIVO",
|
|
378
|
+
INACTIVO = "INACTIVO"
|
|
379
|
+
}
|
|
380
|
+
interface iMapaEspecialidades9612 {
|
|
381
|
+
OldSpecialty: string;
|
|
382
|
+
NewSpecialty: string;
|
|
383
|
+
Estado: EstadoEspecialidad9612;
|
|
384
|
+
}
|
|
385
|
+
declare const MapeoEspecialidades9612: iMapaEspecialidades9612[];
|
|
386
|
+
|
|
375
387
|
interface Zona {
|
|
376
388
|
Descripcion: string;
|
|
377
389
|
Codigo: string;
|
|
@@ -494,4 +506,4 @@ declare function generateUniqueNumber(): number;
|
|
|
494
506
|
|
|
495
507
|
declare function setContext(this: any, modules: __WebpackModuleApi.RequireContext): void;
|
|
496
508
|
|
|
497
|
-
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDocumentacion, type IMOAndMaterialsRules, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$1 as MatStockPersonalType, type MatUtilizadosType$1 as MatUtilizadosType, type MoUoType$1 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, SEGMENT_TY, type TARGET, UpdateNodosDocDP, buildDataMaterialsRule,
|
|
509
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDocumentacion, type IMOAndMaterialsRules, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$1 as MatStockPersonalType, type MatUtilizadosType$1 as MatUtilizadosType, type MoUoType$1 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, SEGMENT_TY, type TARGET, UpdateNodosDocDP, buildDataMaterialsRule, checkAndBuildMaterialsFromPersonalStock, codBalizaAL04, codClientes, codMOClientesAL02, codMOClientesAL02Asfaltado, codMOClientesAL02OC, codMOClientesAL02Soplado, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientesAL02, codMONoClientesAL02Asfaltado, codMONoClientesAL02OC, codMONoClientesAL02Soplado, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL02, codMOTroncalAL02Asfaltado, codMOTroncalAL02OC, codMOTroncalAL02Soplado, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, convertDates, dataFlujosHomePass, esCadenaFechaISOValida, esObjetoFecha, generateUniqueNumber, getChannelName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Valorizacion, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ __export(index_exports, {
|
|
|
48
48
|
MOCantidadNVT01: () => MOCantidadNVT01,
|
|
49
49
|
MOHijasAL04: () => MOHijasAL04,
|
|
50
50
|
MOHijasDEPTH: () => MOHijasDEPTH,
|
|
51
|
+
MapeoEspecialidades9612: () => MapeoEspecialidades9612,
|
|
51
52
|
MapeoMOBOMAL04: () => MapeoMOBOMAL04,
|
|
52
53
|
MapeoMatBOMAL04: () => MapeoMatBOMAL04,
|
|
53
54
|
ModelDataFlujosDocumentacionReplanteo: () => ModelDataFlujosDocumentacionReplanteo,
|
|
@@ -57,7 +58,7 @@ __export(index_exports, {
|
|
|
57
58
|
SEGMENT_TY: () => SEGMENT_TY,
|
|
58
59
|
UpdateNodosDocDP: () => UpdateNodosDocDP,
|
|
59
60
|
buildDataMaterialsRule: () => buildDataMaterialsRule,
|
|
60
|
-
|
|
61
|
+
checkAndBuildMaterialsFromPersonalStock: () => checkAndBuildMaterialsFromPersonalStock,
|
|
61
62
|
codBalizaAL04: () => codBalizaAL04,
|
|
62
63
|
codClientes: () => codClientes,
|
|
63
64
|
codMOClientesAL02: () => codMOClientesAL02,
|
|
@@ -5899,35 +5900,37 @@ function updatePriceMOAL04(valorizaciones, priceContractorMO) {
|
|
|
5899
5900
|
}
|
|
5900
5901
|
__name(updatePriceMOAL04, "updatePriceMOAL04");
|
|
5901
5902
|
|
|
5902
|
-
// src/Programados/Alemania/
|
|
5903
|
-
function
|
|
5903
|
+
// src/Programados/Alemania/checkAndBuildMaterialsFromPersonalStock.ts
|
|
5904
|
+
function checkAndBuildMaterialsFromPersonalStock(Materiales, dataStockPersonal, id) {
|
|
5905
|
+
const errores = [];
|
|
5906
|
+
for (const element of Materiales) {
|
|
5907
|
+
const exist = dataStockPersonal.find((e) => e.Item.Codigo === element.Codigo);
|
|
5908
|
+
if (!exist) {
|
|
5909
|
+
errores.push(element.Codigo);
|
|
5910
|
+
}
|
|
5911
|
+
}
|
|
5912
|
+
if (errores.length) {
|
|
5913
|
+
throw new Error(`No se encontr\xF3 materiales ${errores.join(", ").trim()}, en el stock personal para este trabajo`);
|
|
5914
|
+
}
|
|
5904
5915
|
const materiales = [];
|
|
5905
5916
|
for (const material of Materiales) {
|
|
5906
5917
|
const { Codigo: codMaterial } = material;
|
|
5907
|
-
const stocksPersonal = dataStockPersonal.
|
|
5908
|
-
if (stocksPersonal
|
|
5918
|
+
const stocksPersonal = dataStockPersonal.find((e) => e.Item.Codigo === codMaterial);
|
|
5919
|
+
if (!stocksPersonal) {
|
|
5909
5920
|
throw new Error(`No se encontr\xF3 el material ${codMaterial} en el stock personal para este trabajo.`);
|
|
5910
5921
|
}
|
|
5911
|
-
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
materiales.push({
|
|
5920
|
-
stockPersonal,
|
|
5921
|
-
id,
|
|
5922
|
-
cantidad: _cantidad * material.Factor
|
|
5923
|
-
});
|
|
5924
|
-
break;
|
|
5925
|
-
}
|
|
5926
|
-
}
|
|
5922
|
+
const cantidad = material.CantidadPadre ? 0 : material.CantidadFija ? material.Cantidad : 0;
|
|
5923
|
+
materiales.push({
|
|
5924
|
+
item: stocksPersonal.Item,
|
|
5925
|
+
id,
|
|
5926
|
+
cantidad: cantidad * material.Factor,
|
|
5927
|
+
material
|
|
5928
|
+
});
|
|
5929
|
+
break;
|
|
5927
5930
|
}
|
|
5928
5931
|
return materiales;
|
|
5929
5932
|
}
|
|
5930
|
-
__name(
|
|
5933
|
+
__name(checkAndBuildMaterialsFromPersonalStock, "checkAndBuildMaterialsFromPersonalStock");
|
|
5931
5934
|
|
|
5932
5935
|
// src/Programados/Alemania/buildDataMaterialsRule.ts
|
|
5933
5936
|
function buildDataMaterialsRule(Materiales, dataStockPersonal) {
|
|
@@ -5940,6 +5943,90 @@ function buildDataMaterialsRule(Materiales, dataStockPersonal) {
|
|
|
5940
5943
|
}
|
|
5941
5944
|
__name(buildDataMaterialsRule, "buildDataMaterialsRule");
|
|
5942
5945
|
|
|
5946
|
+
// src/Programados/Colombia/9612/MapaEspecialidadesColombia.ts
|
|
5947
|
+
var MapeoEspecialidades9612 = [
|
|
5948
|
+
{
|
|
5949
|
+
OldSpecialty: "Gastos Reembolsables",
|
|
5950
|
+
NewSpecialty: "GASTOS REEMBOLSABLES",
|
|
5951
|
+
Estado: "ACTIVO"
|
|
5952
|
+
},
|
|
5953
|
+
{
|
|
5954
|
+
OldSpecialty: "Clase D Datos",
|
|
5955
|
+
NewSpecialty: "CLASE D DATOS",
|
|
5956
|
+
Estado: "ACTIVO"
|
|
5957
|
+
},
|
|
5958
|
+
{
|
|
5959
|
+
OldSpecialty: "Clase L cobre",
|
|
5960
|
+
NewSpecialty: "CLASE L COBRE",
|
|
5961
|
+
Estado: "ACTIVO"
|
|
5962
|
+
},
|
|
5963
|
+
{
|
|
5964
|
+
OldSpecialty: "Clase C cobre",
|
|
5965
|
+
NewSpecialty: "CLASE C COBRE",
|
|
5966
|
+
Estado: "ACTIVO"
|
|
5967
|
+
},
|
|
5968
|
+
{
|
|
5969
|
+
OldSpecialty: "Clase L Fibra Optica",
|
|
5970
|
+
NewSpecialty: "CLASE L FIBRA OPTICA",
|
|
5971
|
+
Estado: "ACTIVO"
|
|
5972
|
+
},
|
|
5973
|
+
{
|
|
5974
|
+
OldSpecialty: "Clase C Fibra Optica",
|
|
5975
|
+
NewSpecialty: "CLASE C FIBRA OPTICA",
|
|
5976
|
+
Estado: "ACTIVO"
|
|
5977
|
+
},
|
|
5978
|
+
{
|
|
5979
|
+
OldSpecialty: "Clase G",
|
|
5980
|
+
NewSpecialty: "CLASE G",
|
|
5981
|
+
Estado: "ACTIVO"
|
|
5982
|
+
},
|
|
5983
|
+
{
|
|
5984
|
+
OldSpecialty: "Clase S",
|
|
5985
|
+
NewSpecialty: "CLASE S",
|
|
5986
|
+
Estado: "ACTIVO"
|
|
5987
|
+
},
|
|
5988
|
+
{
|
|
5989
|
+
OldSpecialty: "Clase P",
|
|
5990
|
+
NewSpecialty: "CLASE P",
|
|
5991
|
+
Estado: "ACTIVO"
|
|
5992
|
+
},
|
|
5993
|
+
{
|
|
5994
|
+
OldSpecialty: "Coeficiente Clase L cobre",
|
|
5995
|
+
NewSpecialty: "COEFICIENTE CLASE L COBRE",
|
|
5996
|
+
Estado: "ACTIVO"
|
|
5997
|
+
},
|
|
5998
|
+
{
|
|
5999
|
+
OldSpecialty: "Coeficiente Clase C cobre",
|
|
6000
|
+
NewSpecialty: "COEFICIENTE CLASE C COBRE",
|
|
6001
|
+
Estado: "ACTIVO"
|
|
6002
|
+
},
|
|
6003
|
+
{
|
|
6004
|
+
OldSpecialty: "Coeficiente Clase G",
|
|
6005
|
+
NewSpecialty: "COEFICIENTE CLASE G",
|
|
6006
|
+
Estado: "ACTIVO"
|
|
6007
|
+
},
|
|
6008
|
+
{
|
|
6009
|
+
OldSpecialty: "Coeficiente Clase L Fibra Optica",
|
|
6010
|
+
NewSpecialty: "COEFICIENTE CLASE L FIBRA OPTICA",
|
|
6011
|
+
Estado: "ACTIVO"
|
|
6012
|
+
},
|
|
6013
|
+
{
|
|
6014
|
+
OldSpecialty: "Coeficiente RTNFO",
|
|
6015
|
+
NewSpecialty: "COEFICIENTE CLASE C FIBRA OPTICA",
|
|
6016
|
+
Estado: "ACTIVO"
|
|
6017
|
+
},
|
|
6018
|
+
{
|
|
6019
|
+
OldSpecialty: "Clase D FTTH",
|
|
6020
|
+
NewSpecialty: "CLASE D FTTH",
|
|
6021
|
+
Estado: "ACTIVO"
|
|
6022
|
+
},
|
|
6023
|
+
{
|
|
6024
|
+
OldSpecialty: "Utilidad 2021",
|
|
6025
|
+
NewSpecialty: "Utilidad_2025",
|
|
6026
|
+
Estado: "ACTIVO"
|
|
6027
|
+
}
|
|
6028
|
+
];
|
|
6029
|
+
|
|
5943
6030
|
// src/Programados/BuscarZonaContratista.ts
|
|
5944
6031
|
function BuscarZonaContratista(EmpresaContratistaEnPrecioEspecialidad, Obra, ZonaAsignada) {
|
|
5945
6032
|
const zonaSearchMapping = {
|
|
@@ -6509,6 +6596,7 @@ var getNextID_Valorizacion = /* @__PURE__ */ __name((valorizaciones) => {
|
|
|
6509
6596
|
MOCantidadNVT01,
|
|
6510
6597
|
MOHijasAL04,
|
|
6511
6598
|
MOHijasDEPTH,
|
|
6599
|
+
MapeoEspecialidades9612,
|
|
6512
6600
|
MapeoMOBOMAL04,
|
|
6513
6601
|
MapeoMatBOMAL04,
|
|
6514
6602
|
ModelDataFlujosDocumentacionReplanteo,
|
|
@@ -6518,7 +6606,7 @@ var getNextID_Valorizacion = /* @__PURE__ */ __name((valorizaciones) => {
|
|
|
6518
6606
|
SEGMENT_TY,
|
|
6519
6607
|
UpdateNodosDocDP,
|
|
6520
6608
|
buildDataMaterialsRule,
|
|
6521
|
-
|
|
6609
|
+
checkAndBuildMaterialsFromPersonalStock,
|
|
6522
6610
|
codBalizaAL04,
|
|
6523
6611
|
codClientes,
|
|
6524
6612
|
codMOClientesAL02,
|
package/dist/index.mjs
CHANGED
|
@@ -5776,35 +5776,37 @@ function updatePriceMOAL04(valorizaciones, priceContractorMO) {
|
|
|
5776
5776
|
}
|
|
5777
5777
|
__name(updatePriceMOAL04, "updatePriceMOAL04");
|
|
5778
5778
|
|
|
5779
|
-
// src/Programados/Alemania/
|
|
5780
|
-
function
|
|
5779
|
+
// src/Programados/Alemania/checkAndBuildMaterialsFromPersonalStock.ts
|
|
5780
|
+
function checkAndBuildMaterialsFromPersonalStock(Materiales, dataStockPersonal, id) {
|
|
5781
|
+
const errores = [];
|
|
5782
|
+
for (const element of Materiales) {
|
|
5783
|
+
const exist = dataStockPersonal.find((e) => e.Item.Codigo === element.Codigo);
|
|
5784
|
+
if (!exist) {
|
|
5785
|
+
errores.push(element.Codigo);
|
|
5786
|
+
}
|
|
5787
|
+
}
|
|
5788
|
+
if (errores.length) {
|
|
5789
|
+
throw new Error(`No se encontr\xF3 materiales ${errores.join(", ").trim()}, en el stock personal para este trabajo`);
|
|
5790
|
+
}
|
|
5781
5791
|
const materiales = [];
|
|
5782
5792
|
for (const material of Materiales) {
|
|
5783
5793
|
const { Codigo: codMaterial } = material;
|
|
5784
|
-
const stocksPersonal = dataStockPersonal.
|
|
5785
|
-
if (stocksPersonal
|
|
5794
|
+
const stocksPersonal = dataStockPersonal.find((e) => e.Item.Codigo === codMaterial);
|
|
5795
|
+
if (!stocksPersonal) {
|
|
5786
5796
|
throw new Error(`No se encontr\xF3 el material ${codMaterial} en el stock personal para este trabajo.`);
|
|
5787
5797
|
}
|
|
5788
|
-
|
|
5789
|
-
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
|
|
5793
|
-
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
materiales.push({
|
|
5797
|
-
stockPersonal,
|
|
5798
|
-
id,
|
|
5799
|
-
cantidad: _cantidad * material.Factor
|
|
5800
|
-
});
|
|
5801
|
-
break;
|
|
5802
|
-
}
|
|
5803
|
-
}
|
|
5798
|
+
const cantidad = material.CantidadPadre ? 0 : material.CantidadFija ? material.Cantidad : 0;
|
|
5799
|
+
materiales.push({
|
|
5800
|
+
item: stocksPersonal.Item,
|
|
5801
|
+
id,
|
|
5802
|
+
cantidad: cantidad * material.Factor,
|
|
5803
|
+
material
|
|
5804
|
+
});
|
|
5805
|
+
break;
|
|
5804
5806
|
}
|
|
5805
5807
|
return materiales;
|
|
5806
5808
|
}
|
|
5807
|
-
__name(
|
|
5809
|
+
__name(checkAndBuildMaterialsFromPersonalStock, "checkAndBuildMaterialsFromPersonalStock");
|
|
5808
5810
|
|
|
5809
5811
|
// src/Programados/Alemania/buildDataMaterialsRule.ts
|
|
5810
5812
|
function buildDataMaterialsRule(Materiales, dataStockPersonal) {
|
|
@@ -5817,6 +5819,90 @@ function buildDataMaterialsRule(Materiales, dataStockPersonal) {
|
|
|
5817
5819
|
}
|
|
5818
5820
|
__name(buildDataMaterialsRule, "buildDataMaterialsRule");
|
|
5819
5821
|
|
|
5822
|
+
// src/Programados/Colombia/9612/MapaEspecialidadesColombia.ts
|
|
5823
|
+
var MapeoEspecialidades9612 = [
|
|
5824
|
+
{
|
|
5825
|
+
OldSpecialty: "Gastos Reembolsables",
|
|
5826
|
+
NewSpecialty: "GASTOS REEMBOLSABLES",
|
|
5827
|
+
Estado: "ACTIVO"
|
|
5828
|
+
},
|
|
5829
|
+
{
|
|
5830
|
+
OldSpecialty: "Clase D Datos",
|
|
5831
|
+
NewSpecialty: "CLASE D DATOS",
|
|
5832
|
+
Estado: "ACTIVO"
|
|
5833
|
+
},
|
|
5834
|
+
{
|
|
5835
|
+
OldSpecialty: "Clase L cobre",
|
|
5836
|
+
NewSpecialty: "CLASE L COBRE",
|
|
5837
|
+
Estado: "ACTIVO"
|
|
5838
|
+
},
|
|
5839
|
+
{
|
|
5840
|
+
OldSpecialty: "Clase C cobre",
|
|
5841
|
+
NewSpecialty: "CLASE C COBRE",
|
|
5842
|
+
Estado: "ACTIVO"
|
|
5843
|
+
},
|
|
5844
|
+
{
|
|
5845
|
+
OldSpecialty: "Clase L Fibra Optica",
|
|
5846
|
+
NewSpecialty: "CLASE L FIBRA OPTICA",
|
|
5847
|
+
Estado: "ACTIVO"
|
|
5848
|
+
},
|
|
5849
|
+
{
|
|
5850
|
+
OldSpecialty: "Clase C Fibra Optica",
|
|
5851
|
+
NewSpecialty: "CLASE C FIBRA OPTICA",
|
|
5852
|
+
Estado: "ACTIVO"
|
|
5853
|
+
},
|
|
5854
|
+
{
|
|
5855
|
+
OldSpecialty: "Clase G",
|
|
5856
|
+
NewSpecialty: "CLASE G",
|
|
5857
|
+
Estado: "ACTIVO"
|
|
5858
|
+
},
|
|
5859
|
+
{
|
|
5860
|
+
OldSpecialty: "Clase S",
|
|
5861
|
+
NewSpecialty: "CLASE S",
|
|
5862
|
+
Estado: "ACTIVO"
|
|
5863
|
+
},
|
|
5864
|
+
{
|
|
5865
|
+
OldSpecialty: "Clase P",
|
|
5866
|
+
NewSpecialty: "CLASE P",
|
|
5867
|
+
Estado: "ACTIVO"
|
|
5868
|
+
},
|
|
5869
|
+
{
|
|
5870
|
+
OldSpecialty: "Coeficiente Clase L cobre",
|
|
5871
|
+
NewSpecialty: "COEFICIENTE CLASE L COBRE",
|
|
5872
|
+
Estado: "ACTIVO"
|
|
5873
|
+
},
|
|
5874
|
+
{
|
|
5875
|
+
OldSpecialty: "Coeficiente Clase C cobre",
|
|
5876
|
+
NewSpecialty: "COEFICIENTE CLASE C COBRE",
|
|
5877
|
+
Estado: "ACTIVO"
|
|
5878
|
+
},
|
|
5879
|
+
{
|
|
5880
|
+
OldSpecialty: "Coeficiente Clase G",
|
|
5881
|
+
NewSpecialty: "COEFICIENTE CLASE G",
|
|
5882
|
+
Estado: "ACTIVO"
|
|
5883
|
+
},
|
|
5884
|
+
{
|
|
5885
|
+
OldSpecialty: "Coeficiente Clase L Fibra Optica",
|
|
5886
|
+
NewSpecialty: "COEFICIENTE CLASE L FIBRA OPTICA",
|
|
5887
|
+
Estado: "ACTIVO"
|
|
5888
|
+
},
|
|
5889
|
+
{
|
|
5890
|
+
OldSpecialty: "Coeficiente RTNFO",
|
|
5891
|
+
NewSpecialty: "COEFICIENTE CLASE C FIBRA OPTICA",
|
|
5892
|
+
Estado: "ACTIVO"
|
|
5893
|
+
},
|
|
5894
|
+
{
|
|
5895
|
+
OldSpecialty: "Clase D FTTH",
|
|
5896
|
+
NewSpecialty: "CLASE D FTTH",
|
|
5897
|
+
Estado: "ACTIVO"
|
|
5898
|
+
},
|
|
5899
|
+
{
|
|
5900
|
+
OldSpecialty: "Utilidad 2021",
|
|
5901
|
+
NewSpecialty: "Utilidad_2025",
|
|
5902
|
+
Estado: "ACTIVO"
|
|
5903
|
+
}
|
|
5904
|
+
];
|
|
5905
|
+
|
|
5820
5906
|
// src/Programados/BuscarZonaContratista.ts
|
|
5821
5907
|
function BuscarZonaContratista(EmpresaContratistaEnPrecioEspecialidad, Obra, ZonaAsignada) {
|
|
5822
5908
|
const zonaSearchMapping = {
|
|
@@ -6385,6 +6471,7 @@ export {
|
|
|
6385
6471
|
MOCantidadNVT01,
|
|
6386
6472
|
MOHijasAL04,
|
|
6387
6473
|
MOHijasDEPTH,
|
|
6474
|
+
MapeoEspecialidades9612,
|
|
6388
6475
|
MapeoMOBOMAL04,
|
|
6389
6476
|
MapeoMatBOMAL04,
|
|
6390
6477
|
ModelDataFlujosDocumentacionReplanteo,
|
|
@@ -6394,7 +6481,7 @@ export {
|
|
|
6394
6481
|
SEGMENT_TY,
|
|
6395
6482
|
UpdateNodosDocDP,
|
|
6396
6483
|
buildDataMaterialsRule,
|
|
6397
|
-
|
|
6484
|
+
checkAndBuildMaterialsFromPersonalStock,
|
|
6398
6485
|
codBalizaAL04,
|
|
6399
6486
|
codClientes,
|
|
6400
6487
|
codMOClientesAL02,
|