sigo-package 1.2.58 → 1.2.59
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 +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +79 -0
- package/dist/index.mjs +76 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -160,6 +160,12 @@ declare const mapaDPContratoPrecioFullAL02: {
|
|
|
160
160
|
ContratoCod: string;
|
|
161
161
|
DP: string;
|
|
162
162
|
}[];
|
|
163
|
+
declare const empresas: {
|
|
164
|
+
Codigo: string;
|
|
165
|
+
ContratoCod: string;
|
|
166
|
+
ID_PrecioContratistaMO: number;
|
|
167
|
+
}[];
|
|
168
|
+
declare function getPrecioContratista(codigoEmpresa: string, dp: string, PreciosMO: any[]): any;
|
|
163
169
|
|
|
164
170
|
interface typeHPMOUtilizado {
|
|
165
171
|
ID_HPListMO: number;
|
|
@@ -481,6 +487,8 @@ declare function searchCurrentContractorSpecialtyPrice(OTContract: ContratoOTENT
|
|
|
481
487
|
|
|
482
488
|
declare const getNextID_Valorizacion: (valorizaciones: Pick<ValorizacionDTO, "ID_Valorizacion">[]) => number;
|
|
483
489
|
|
|
490
|
+
declare const getNextID_Amap: (Valorizacion: Pick<ValorizacionManoObraDTO, "ID_Amap">[]) => number;
|
|
491
|
+
|
|
484
492
|
declare enum Position {
|
|
485
493
|
left = "left",
|
|
486
494
|
right = "right"
|
|
@@ -555,4 +563,4 @@ declare function getContainerName(dirname: string): string;
|
|
|
555
563
|
|
|
556
564
|
declare function buildTenantCollectionName(countryName: string, delegation: string, collection: string): string;
|
|
557
565
|
|
|
558
|
-
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, 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, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildTenantCollectionName, checkAndBuildMaterialsFromStock, checkMaterialAvailability, 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, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, consumirStockPersonal, convertDates, dataFlujosHomePass, esCadenaFechaISOValida, esObjetoFecha, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Valorizacion, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
|
566
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, 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, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildTenantCollectionName, checkAndBuildMaterialsFromStock, checkMaterialAvailability, 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, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, consumirStockPersonal, convertDates, dataFlujosHomePass, empresas, esCadenaFechaISOValida, esObjetoFecha, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_Valorizacion, getPrecioContratista, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.d.ts
CHANGED
|
@@ -160,6 +160,12 @@ declare const mapaDPContratoPrecioFullAL02: {
|
|
|
160
160
|
ContratoCod: string;
|
|
161
161
|
DP: string;
|
|
162
162
|
}[];
|
|
163
|
+
declare const empresas: {
|
|
164
|
+
Codigo: string;
|
|
165
|
+
ContratoCod: string;
|
|
166
|
+
ID_PrecioContratistaMO: number;
|
|
167
|
+
}[];
|
|
168
|
+
declare function getPrecioContratista(codigoEmpresa: string, dp: string, PreciosMO: any[]): any;
|
|
163
169
|
|
|
164
170
|
interface typeHPMOUtilizado {
|
|
165
171
|
ID_HPListMO: number;
|
|
@@ -481,6 +487,8 @@ declare function searchCurrentContractorSpecialtyPrice(OTContract: ContratoOTENT
|
|
|
481
487
|
|
|
482
488
|
declare const getNextID_Valorizacion: (valorizaciones: Pick<ValorizacionDTO, "ID_Valorizacion">[]) => number;
|
|
483
489
|
|
|
490
|
+
declare const getNextID_Amap: (Valorizacion: Pick<ValorizacionManoObraDTO, "ID_Amap">[]) => number;
|
|
491
|
+
|
|
484
492
|
declare enum Position {
|
|
485
493
|
left = "left",
|
|
486
494
|
right = "right"
|
|
@@ -555,4 +563,4 @@ declare function getContainerName(dirname: string): string;
|
|
|
555
563
|
|
|
556
564
|
declare function buildTenantCollectionName(countryName: string, delegation: string, collection: string): string;
|
|
557
565
|
|
|
558
|
-
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, 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, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildTenantCollectionName, checkAndBuildMaterialsFromStock, checkMaterialAvailability, 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, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, consumirStockPersonal, convertDates, dataFlujosHomePass, esCadenaFechaISOValida, esObjetoFecha, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Valorizacion, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
|
566
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, 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, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildTenantCollectionName, checkAndBuildMaterialsFromStock, checkMaterialAvailability, 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, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, consumirStockPersonal, convertDates, dataFlujosHomePass, empresas, esCadenaFechaISOValida, esObjetoFecha, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_Valorizacion, getPrecioContratista, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.js
CHANGED
|
@@ -99,6 +99,7 @@ __export(index_exports, {
|
|
|
99
99
|
consumirStockPersonal: () => consumirStockPersonal,
|
|
100
100
|
convertDates: () => convertDates,
|
|
101
101
|
dataFlujosHomePass: () => dataFlujosHomePass,
|
|
102
|
+
empresas: () => empresas,
|
|
102
103
|
esCadenaFechaISOValida: () => esCadenaFechaISOValida,
|
|
103
104
|
esObjetoFecha: () => esObjetoFecha,
|
|
104
105
|
generateUniqueNumber: () => generateUniqueNumber,
|
|
@@ -108,7 +109,9 @@ __export(index_exports, {
|
|
|
108
109
|
getDateInTimeZone: () => getDateInTimeZone,
|
|
109
110
|
getKeyRedisSortedSet: () => getKeyRedisSortedSet,
|
|
110
111
|
getModelDataAdicional: () => getModelDataAdicional,
|
|
112
|
+
getNextID_Amap: () => getNextID_Amap,
|
|
111
113
|
getNextID_Valorizacion: () => getNextID_Valorizacion,
|
|
114
|
+
getPrecioContratista: () => getPrecioContratista,
|
|
112
115
|
getQueueName: () => getQueueName,
|
|
113
116
|
getQueueNameSaveOneNotification: () => getQueueNameSaveOneNotification,
|
|
114
117
|
isValidDate: () => isValidDate,
|
|
@@ -12948,6 +12951,74 @@ var mapaDPContratoPrecioFullAL02 = [
|
|
|
12948
12951
|
...array2024,
|
|
12949
12952
|
...array2025
|
|
12950
12953
|
];
|
|
12954
|
+
var empresas = [
|
|
12955
|
+
{
|
|
12956
|
+
Codigo: "B56696172",
|
|
12957
|
+
ContratoCod: "CONTRATO_2024",
|
|
12958
|
+
ID_PrecioContratistaMO: 893
|
|
12959
|
+
},
|
|
12960
|
+
{
|
|
12961
|
+
Codigo: "B56696172",
|
|
12962
|
+
ContratoCod: "LLAVE_EN_MANO_2025",
|
|
12963
|
+
ID_PrecioContratistaMO: 967
|
|
12964
|
+
},
|
|
12965
|
+
// 'B10506269',
|
|
12966
|
+
{
|
|
12967
|
+
Codigo: "B10506269",
|
|
12968
|
+
ContratoCod: "CONTRATO_2024",
|
|
12969
|
+
ID_PrecioContratistaMO: 961
|
|
12970
|
+
},
|
|
12971
|
+
{
|
|
12972
|
+
Codigo: "B10506269",
|
|
12973
|
+
ContratoCod: "LLAVE_EN_MANO_2025",
|
|
12974
|
+
ID_PrecioContratistaMO: 964
|
|
12975
|
+
},
|
|
12976
|
+
// 'DE364769658',
|
|
12977
|
+
{
|
|
12978
|
+
Codigo: "DE364769658",
|
|
12979
|
+
ContratoCod: "CONTRATO_2024",
|
|
12980
|
+
ID_PrecioContratistaMO: 881
|
|
12981
|
+
},
|
|
12982
|
+
{
|
|
12983
|
+
Codigo: "DE364769658",
|
|
12984
|
+
ContratoCod: "LLAVE_EN_MANO_2025",
|
|
12985
|
+
ID_PrecioContratistaMO: 966
|
|
12986
|
+
},
|
|
12987
|
+
// '363313840',
|
|
12988
|
+
{
|
|
12989
|
+
Codigo: "363313840",
|
|
12990
|
+
ContratoCod: "CONTRATO_2024",
|
|
12991
|
+
ID_PrecioContratistaMO: 890
|
|
12992
|
+
},
|
|
12993
|
+
{
|
|
12994
|
+
Codigo: "363313840",
|
|
12995
|
+
ContratoCod: "LLAVE_EN_MANO_2025",
|
|
12996
|
+
ID_PrecioContratistaMO: 968
|
|
12997
|
+
},
|
|
12998
|
+
// 'B87937520'
|
|
12999
|
+
{
|
|
13000
|
+
Codigo: "B87937520",
|
|
13001
|
+
ContratoCod: "CONTRATO_2024",
|
|
13002
|
+
ID_PrecioContratistaMO: 928
|
|
13003
|
+
},
|
|
13004
|
+
{
|
|
13005
|
+
Codigo: "B87937520",
|
|
13006
|
+
ContratoCod: "LLAVE_EN_MANO_2025",
|
|
13007
|
+
ID_PrecioContratistaMO: 965
|
|
13008
|
+
}
|
|
13009
|
+
];
|
|
13010
|
+
function getPrecioContratista(codigoEmpresa, dp, PreciosMO) {
|
|
13011
|
+
try {
|
|
13012
|
+
const contrato = mapaDPContratoPrecioFullAL02.find((i) => i.DP === dp)?.ContratoCod || "";
|
|
13013
|
+
if (!contrato) return PreciosMO.find((i) => i.Estado.ID_Estado === 1);
|
|
13014
|
+
const empresa = empresas.find((i) => i.Codigo === codigoEmpresa);
|
|
13015
|
+
if (!empresa) return PreciosMO.find((i) => i.Estado.ID_Estado === 1);
|
|
13016
|
+
return PreciosMO.find((i) => i.Empresa.Codigo === codigoEmpresa && i.ContratoOT.Codigo === contrato);
|
|
13017
|
+
} catch (error) {
|
|
13018
|
+
throw error;
|
|
13019
|
+
}
|
|
13020
|
+
}
|
|
13021
|
+
__name(getPrecioContratista, "getPrecioContratista");
|
|
12951
13022
|
|
|
12952
13023
|
// src/Programados/Alemania/CalcularResumenHPMOLiquidado/index.ts
|
|
12953
13024
|
var CalcularResumenHPMOLiquidado = /* @__PURE__ */ __name((trabajo) => {
|
|
@@ -15247,6 +15318,11 @@ __name(searchCurrentContractorSpecialtyPrice, "searchCurrentContractorSpecialtyP
|
|
|
15247
15318
|
var getNextID_Valorizacion = /* @__PURE__ */ __name((valorizaciones) => {
|
|
15248
15319
|
return Math.max(0, ...valorizaciones.map((v) => v.ID_Valorizacion)) + 1;
|
|
15249
15320
|
}, "getNextID_Valorizacion");
|
|
15321
|
+
|
|
15322
|
+
// src/Programados/getNextID_Amap.ts
|
|
15323
|
+
var getNextID_Amap = /* @__PURE__ */ __name((Valorizacion) => {
|
|
15324
|
+
return Math.max(0, ...Valorizacion.map((v) => v.ID_Amap)) + 1;
|
|
15325
|
+
}, "getNextID_Amap");
|
|
15250
15326
|
// Annotate the CommonJS export names for ESM import in node:
|
|
15251
15327
|
0 && (module.exports = {
|
|
15252
15328
|
ActualizarDataManoObra,
|
|
@@ -15325,6 +15401,7 @@ var getNextID_Valorizacion = /* @__PURE__ */ __name((valorizaciones) => {
|
|
|
15325
15401
|
consumirStockPersonal,
|
|
15326
15402
|
convertDates,
|
|
15327
15403
|
dataFlujosHomePass,
|
|
15404
|
+
empresas,
|
|
15328
15405
|
esCadenaFechaISOValida,
|
|
15329
15406
|
esObjetoFecha,
|
|
15330
15407
|
generateUniqueNumber,
|
|
@@ -15334,7 +15411,9 @@ var getNextID_Valorizacion = /* @__PURE__ */ __name((valorizaciones) => {
|
|
|
15334
15411
|
getDateInTimeZone,
|
|
15335
15412
|
getKeyRedisSortedSet,
|
|
15336
15413
|
getModelDataAdicional,
|
|
15414
|
+
getNextID_Amap,
|
|
15337
15415
|
getNextID_Valorizacion,
|
|
15416
|
+
getPrecioContratista,
|
|
15338
15417
|
getQueueName,
|
|
15339
15418
|
getQueueNameSaveOneNotification,
|
|
15340
15419
|
isValidDate,
|
package/dist/index.mjs
CHANGED
|
@@ -12814,6 +12814,74 @@ var mapaDPContratoPrecioFullAL02 = [
|
|
|
12814
12814
|
...array2024,
|
|
12815
12815
|
...array2025
|
|
12816
12816
|
];
|
|
12817
|
+
var empresas = [
|
|
12818
|
+
{
|
|
12819
|
+
Codigo: "B56696172",
|
|
12820
|
+
ContratoCod: "CONTRATO_2024",
|
|
12821
|
+
ID_PrecioContratistaMO: 893
|
|
12822
|
+
},
|
|
12823
|
+
{
|
|
12824
|
+
Codigo: "B56696172",
|
|
12825
|
+
ContratoCod: "LLAVE_EN_MANO_2025",
|
|
12826
|
+
ID_PrecioContratistaMO: 967
|
|
12827
|
+
},
|
|
12828
|
+
// 'B10506269',
|
|
12829
|
+
{
|
|
12830
|
+
Codigo: "B10506269",
|
|
12831
|
+
ContratoCod: "CONTRATO_2024",
|
|
12832
|
+
ID_PrecioContratistaMO: 961
|
|
12833
|
+
},
|
|
12834
|
+
{
|
|
12835
|
+
Codigo: "B10506269",
|
|
12836
|
+
ContratoCod: "LLAVE_EN_MANO_2025",
|
|
12837
|
+
ID_PrecioContratistaMO: 964
|
|
12838
|
+
},
|
|
12839
|
+
// 'DE364769658',
|
|
12840
|
+
{
|
|
12841
|
+
Codigo: "DE364769658",
|
|
12842
|
+
ContratoCod: "CONTRATO_2024",
|
|
12843
|
+
ID_PrecioContratistaMO: 881
|
|
12844
|
+
},
|
|
12845
|
+
{
|
|
12846
|
+
Codigo: "DE364769658",
|
|
12847
|
+
ContratoCod: "LLAVE_EN_MANO_2025",
|
|
12848
|
+
ID_PrecioContratistaMO: 966
|
|
12849
|
+
},
|
|
12850
|
+
// '363313840',
|
|
12851
|
+
{
|
|
12852
|
+
Codigo: "363313840",
|
|
12853
|
+
ContratoCod: "CONTRATO_2024",
|
|
12854
|
+
ID_PrecioContratistaMO: 890
|
|
12855
|
+
},
|
|
12856
|
+
{
|
|
12857
|
+
Codigo: "363313840",
|
|
12858
|
+
ContratoCod: "LLAVE_EN_MANO_2025",
|
|
12859
|
+
ID_PrecioContratistaMO: 968
|
|
12860
|
+
},
|
|
12861
|
+
// 'B87937520'
|
|
12862
|
+
{
|
|
12863
|
+
Codigo: "B87937520",
|
|
12864
|
+
ContratoCod: "CONTRATO_2024",
|
|
12865
|
+
ID_PrecioContratistaMO: 928
|
|
12866
|
+
},
|
|
12867
|
+
{
|
|
12868
|
+
Codigo: "B87937520",
|
|
12869
|
+
ContratoCod: "LLAVE_EN_MANO_2025",
|
|
12870
|
+
ID_PrecioContratistaMO: 965
|
|
12871
|
+
}
|
|
12872
|
+
];
|
|
12873
|
+
function getPrecioContratista(codigoEmpresa, dp, PreciosMO) {
|
|
12874
|
+
try {
|
|
12875
|
+
const contrato = mapaDPContratoPrecioFullAL02.find((i) => i.DP === dp)?.ContratoCod || "";
|
|
12876
|
+
if (!contrato) return PreciosMO.find((i) => i.Estado.ID_Estado === 1);
|
|
12877
|
+
const empresa = empresas.find((i) => i.Codigo === codigoEmpresa);
|
|
12878
|
+
if (!empresa) return PreciosMO.find((i) => i.Estado.ID_Estado === 1);
|
|
12879
|
+
return PreciosMO.find((i) => i.Empresa.Codigo === codigoEmpresa && i.ContratoOT.Codigo === contrato);
|
|
12880
|
+
} catch (error) {
|
|
12881
|
+
throw error;
|
|
12882
|
+
}
|
|
12883
|
+
}
|
|
12884
|
+
__name(getPrecioContratista, "getPrecioContratista");
|
|
12817
12885
|
|
|
12818
12886
|
// src/Programados/Alemania/CalcularResumenHPMOLiquidado/index.ts
|
|
12819
12887
|
var CalcularResumenHPMOLiquidado = /* @__PURE__ */ __name((trabajo) => {
|
|
@@ -15113,6 +15181,11 @@ __name(searchCurrentContractorSpecialtyPrice, "searchCurrentContractorSpecialtyP
|
|
|
15113
15181
|
var getNextID_Valorizacion = /* @__PURE__ */ __name((valorizaciones) => {
|
|
15114
15182
|
return Math.max(0, ...valorizaciones.map((v) => v.ID_Valorizacion)) + 1;
|
|
15115
15183
|
}, "getNextID_Valorizacion");
|
|
15184
|
+
|
|
15185
|
+
// src/Programados/getNextID_Amap.ts
|
|
15186
|
+
var getNextID_Amap = /* @__PURE__ */ __name((Valorizacion) => {
|
|
15187
|
+
return Math.max(0, ...Valorizacion.map((v) => v.ID_Amap)) + 1;
|
|
15188
|
+
}, "getNextID_Amap");
|
|
15116
15189
|
export {
|
|
15117
15190
|
ActualizarDataManoObra,
|
|
15118
15191
|
ActualizarDataReserva,
|
|
@@ -15190,6 +15263,7 @@ export {
|
|
|
15190
15263
|
consumirStockPersonal,
|
|
15191
15264
|
convertDates,
|
|
15192
15265
|
dataFlujosHomePass,
|
|
15266
|
+
empresas,
|
|
15193
15267
|
esCadenaFechaISOValida,
|
|
15194
15268
|
esObjetoFecha,
|
|
15195
15269
|
generateUniqueNumber,
|
|
@@ -15199,7 +15273,9 @@ export {
|
|
|
15199
15273
|
getDateInTimeZone,
|
|
15200
15274
|
getKeyRedisSortedSet,
|
|
15201
15275
|
getModelDataAdicional,
|
|
15276
|
+
getNextID_Amap,
|
|
15202
15277
|
getNextID_Valorizacion,
|
|
15278
|
+
getPrecioContratista,
|
|
15203
15279
|
getQueueName,
|
|
15204
15280
|
getQueueNameSaveOneNotification,
|
|
15205
15281
|
isValidDate,
|