sigo-package 1.2.20 → 1.2.22

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 CHANGED
@@ -306,7 +306,17 @@ declare function obtenerTipoYCodigoMO(codigoOriginal: string): {
306
306
  CodigoMO: string;
307
307
  };
308
308
 
309
- declare function buildMaterialsFromPersonalStock(Materiales: IMOAndMaterialsRules[], dataStockPersonal: Pick<StockPersonalENTITY, 'Despacho' | 'Item' | 'Devolucion' | 'Liquidacion' | 'DespachoTR' | 'DevolucionTR'>[]): Pick<StockPersonalENTITY, "Despacho" | "Item" | "Devolucion" | "Liquidacion" | "DespachoTR" | "DevolucionTR">[];
309
+ interface IMateriales {
310
+ id: string;
311
+ cantidad: number;
312
+ stockPersonal: StockPersonalENTITY;
313
+ }
314
+ declare function buildMaterialsFromPersonalStock(Materiales: IMOAndMaterialsRules[], dataStockPersonal: StockPersonalENTITY[], id: string, CantidadPadre?: number): IMateriales[];
315
+
316
+ declare function buildDataMaterialsRule(Materiales: Map<string, IMOAndMaterialsRules>, dataStockPersonal: Pick<StockPersonalENTITY, 'ID_StockPersonal' | 'Item' | 'Lote'>[]): {
317
+ id: number;
318
+ text: string;
319
+ }[];
310
320
 
311
321
  declare const CalcularResumenLiquidaciones: Funcion$1;
312
322
  interface Funcion$1 {
@@ -484,4 +494,4 @@ declare function generateUniqueNumber(): number;
484
494
 
485
495
  declare function setContext(this: any, modules: __WebpackModuleApi.RequireContext): void;
486
496
 
487
- 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, buildMaterialsFromPersonalStock, 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 };
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, buildMaterialsFromPersonalStock, 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
@@ -306,7 +306,17 @@ declare function obtenerTipoYCodigoMO(codigoOriginal: string): {
306
306
  CodigoMO: string;
307
307
  };
308
308
 
309
- declare function buildMaterialsFromPersonalStock(Materiales: IMOAndMaterialsRules[], dataStockPersonal: Pick<StockPersonalENTITY, 'Despacho' | 'Item' | 'Devolucion' | 'Liquidacion' | 'DespachoTR' | 'DevolucionTR'>[]): Pick<StockPersonalENTITY, "Despacho" | "Item" | "Devolucion" | "Liquidacion" | "DespachoTR" | "DevolucionTR">[];
309
+ interface IMateriales {
310
+ id: string;
311
+ cantidad: number;
312
+ stockPersonal: StockPersonalENTITY;
313
+ }
314
+ declare function buildMaterialsFromPersonalStock(Materiales: IMOAndMaterialsRules[], dataStockPersonal: StockPersonalENTITY[], id: string, CantidadPadre?: number): IMateriales[];
315
+
316
+ declare function buildDataMaterialsRule(Materiales: Map<string, IMOAndMaterialsRules>, dataStockPersonal: Pick<StockPersonalENTITY, 'ID_StockPersonal' | 'Item' | 'Lote'>[]): {
317
+ id: number;
318
+ text: string;
319
+ }[];
310
320
 
311
321
  declare const CalcularResumenLiquidaciones: Funcion$1;
312
322
  interface Funcion$1 {
@@ -484,4 +494,4 @@ declare function generateUniqueNumber(): number;
484
494
 
485
495
  declare function setContext(this: any, modules: __WebpackModuleApi.RequireContext): void;
486
496
 
487
- 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, buildMaterialsFromPersonalStock, 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 };
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, buildMaterialsFromPersonalStock, 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
@@ -56,6 +56,7 @@ __export(index_exports, {
56
56
  ObtenerZonaAsignada: () => ObtenerZonaAsignada,
57
57
  SEGMENT_TY: () => SEGMENT_TY,
58
58
  UpdateNodosDocDP: () => UpdateNodosDocDP,
59
+ buildDataMaterialsRule: () => buildDataMaterialsRule,
59
60
  buildMaterialsFromPersonalStock: () => buildMaterialsFromPersonalStock,
60
61
  codBalizaAL04: () => codBalizaAL04,
61
62
  codClientes: () => codClientes,
@@ -5899,7 +5900,7 @@ function updatePriceMOAL04(valorizaciones, priceContractorMO) {
5899
5900
  __name(updatePriceMOAL04, "updatePriceMOAL04");
5900
5901
 
5901
5902
  // src/Programados/Alemania/buildMaterialsFromPersonalStock.ts
5902
- function buildMaterialsFromPersonalStock(Materiales, dataStockPersonal) {
5903
+ function buildMaterialsFromPersonalStock(Materiales, dataStockPersonal, id, CantidadPadre = 0) {
5903
5904
  const materiales = [];
5904
5905
  for (const material of Materiales) {
5905
5906
  const { Codigo: codMaterial } = material;
@@ -5907,14 +5908,19 @@ function buildMaterialsFromPersonalStock(Materiales, dataStockPersonal) {
5907
5908
  if (stocksPersonal.length === 0) {
5908
5909
  throw new Error(`No se encontr\xF3 el material ${codMaterial} en el stock personal para este trabajo.`);
5909
5910
  }
5910
- for (const [i, stock] of stocksPersonal.entries()) {
5911
- const disponible = stock.Despacho - stock.Devolucion - stock.Liquidacion + stock.DespachoTR - stock.DevolucionTR;
5911
+ for (const [i, stockPersonal] of stocksPersonal.entries()) {
5912
+ const disponible = stockPersonal.Despacho - stockPersonal.Devolucion - stockPersonal.Liquidacion + stockPersonal.DespachoTR - stockPersonal.DevolucionTR;
5912
5913
  if (disponible < material.Cantidad && i === stocksPersonal.length - 1) {
5913
- throw new Error(`No hay stock suficiente para el material ${codMaterial} en el stock personal para este trabajo.`);
5914
+ throw new Error(`No tiene stock personal suficiente para el material '${codMaterial}' para este trabajo.`);
5914
5915
  } else if (disponible < material.Cantidad) {
5915
5916
  continue;
5916
5917
  } else {
5917
- materiales.push(stock);
5918
+ const _cantidad = material.CantidadPadre ? CantidadPadre : material.CantidadFija ? material.Cantidad : 0;
5919
+ materiales.push({
5920
+ stockPersonal,
5921
+ id,
5922
+ cantidad: _cantidad * material.Factor
5923
+ });
5918
5924
  break;
5919
5925
  }
5920
5926
  }
@@ -5923,6 +5929,17 @@ function buildMaterialsFromPersonalStock(Materiales, dataStockPersonal) {
5923
5929
  }
5924
5930
  __name(buildMaterialsFromPersonalStock, "buildMaterialsFromPersonalStock");
5925
5931
 
5932
+ // src/Programados/Alemania/buildDataMaterialsRule.ts
5933
+ function buildDataMaterialsRule(Materiales, dataStockPersonal) {
5934
+ const codigosMaterial = Array.from(Materiales.keys());
5935
+ const dataMaterialsRule = dataStockPersonal.filter((e) => codigosMaterial.includes(e.Item.Codigo)).map((e) => ({
5936
+ id: e.ID_StockPersonal,
5937
+ text: `${e.Item.Codigo} - ${e.Item.Nombre} ${e.Lote ? `(Lote: ${e.Lote})` : ""}`.trim()
5938
+ }));
5939
+ return dataMaterialsRule;
5940
+ }
5941
+ __name(buildDataMaterialsRule, "buildDataMaterialsRule");
5942
+
5926
5943
  // src/Programados/BuscarZonaContratista.ts
5927
5944
  function BuscarZonaContratista(EmpresaContratistaEnPrecioEspecialidad, Obra, ZonaAsignada) {
5928
5945
  const zonaSearchMapping = {
@@ -6500,6 +6517,7 @@ var getNextID_Valorizacion = /* @__PURE__ */ __name((valorizaciones) => {
6500
6517
  ObtenerZonaAsignada,
6501
6518
  SEGMENT_TY,
6502
6519
  UpdateNodosDocDP,
6520
+ buildDataMaterialsRule,
6503
6521
  buildMaterialsFromPersonalStock,
6504
6522
  codBalizaAL04,
6505
6523
  codClientes,
package/dist/index.mjs CHANGED
@@ -5777,7 +5777,7 @@ function updatePriceMOAL04(valorizaciones, priceContractorMO) {
5777
5777
  __name(updatePriceMOAL04, "updatePriceMOAL04");
5778
5778
 
5779
5779
  // src/Programados/Alemania/buildMaterialsFromPersonalStock.ts
5780
- function buildMaterialsFromPersonalStock(Materiales, dataStockPersonal) {
5780
+ function buildMaterialsFromPersonalStock(Materiales, dataStockPersonal, id, CantidadPadre = 0) {
5781
5781
  const materiales = [];
5782
5782
  for (const material of Materiales) {
5783
5783
  const { Codigo: codMaterial } = material;
@@ -5785,14 +5785,19 @@ function buildMaterialsFromPersonalStock(Materiales, dataStockPersonal) {
5785
5785
  if (stocksPersonal.length === 0) {
5786
5786
  throw new Error(`No se encontr\xF3 el material ${codMaterial} en el stock personal para este trabajo.`);
5787
5787
  }
5788
- for (const [i, stock] of stocksPersonal.entries()) {
5789
- const disponible = stock.Despacho - stock.Devolucion - stock.Liquidacion + stock.DespachoTR - stock.DevolucionTR;
5788
+ for (const [i, stockPersonal] of stocksPersonal.entries()) {
5789
+ const disponible = stockPersonal.Despacho - stockPersonal.Devolucion - stockPersonal.Liquidacion + stockPersonal.DespachoTR - stockPersonal.DevolucionTR;
5790
5790
  if (disponible < material.Cantidad && i === stocksPersonal.length - 1) {
5791
- throw new Error(`No hay stock suficiente para el material ${codMaterial} en el stock personal para este trabajo.`);
5791
+ throw new Error(`No tiene stock personal suficiente para el material '${codMaterial}' para este trabajo.`);
5792
5792
  } else if (disponible < material.Cantidad) {
5793
5793
  continue;
5794
5794
  } else {
5795
- materiales.push(stock);
5795
+ const _cantidad = material.CantidadPadre ? CantidadPadre : material.CantidadFija ? material.Cantidad : 0;
5796
+ materiales.push({
5797
+ stockPersonal,
5798
+ id,
5799
+ cantidad: _cantidad * material.Factor
5800
+ });
5796
5801
  break;
5797
5802
  }
5798
5803
  }
@@ -5801,6 +5806,17 @@ function buildMaterialsFromPersonalStock(Materiales, dataStockPersonal) {
5801
5806
  }
5802
5807
  __name(buildMaterialsFromPersonalStock, "buildMaterialsFromPersonalStock");
5803
5808
 
5809
+ // src/Programados/Alemania/buildDataMaterialsRule.ts
5810
+ function buildDataMaterialsRule(Materiales, dataStockPersonal) {
5811
+ const codigosMaterial = Array.from(Materiales.keys());
5812
+ const dataMaterialsRule = dataStockPersonal.filter((e) => codigosMaterial.includes(e.Item.Codigo)).map((e) => ({
5813
+ id: e.ID_StockPersonal,
5814
+ text: `${e.Item.Codigo} - ${e.Item.Nombre} ${e.Lote ? `(Lote: ${e.Lote})` : ""}`.trim()
5815
+ }));
5816
+ return dataMaterialsRule;
5817
+ }
5818
+ __name(buildDataMaterialsRule, "buildDataMaterialsRule");
5819
+
5804
5820
  // src/Programados/BuscarZonaContratista.ts
5805
5821
  function BuscarZonaContratista(EmpresaContratistaEnPrecioEspecialidad, Obra, ZonaAsignada) {
5806
5822
  const zonaSearchMapping = {
@@ -6377,6 +6393,7 @@ export {
6377
6393
  ObtenerZonaAsignada,
6378
6394
  SEGMENT_TY,
6379
6395
  UpdateNodosDocDP,
6396
+ buildDataMaterialsRule,
6380
6397
  buildMaterialsFromPersonalStock,
6381
6398
  codBalizaAL04,
6382
6399
  codClientes,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-package",
3
- "version": "1.2.20",
3
+ "version": "1.2.22",
4
4
  "description": "Funciones compartidas sigo",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",