sigo-package 1.2.3 → 1.2.4

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
@@ -265,6 +265,8 @@ declare const mapaReglaSopladoClientes: Map<string, ReglaSoplado[]>;
265
265
 
266
266
  declare function updatePriceContractorMO(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'PrecioContrata' | 'TotalContrata' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
267
267
 
268
+ declare function updatePriceMO(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'Precio' | 'Total' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
269
+
268
270
  declare function obtenerPrecioManoObra(CodigoMO: string, TipoMO: string | null, priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): number;
269
271
 
270
272
  declare function obtenerTipoYCodigoMO(codigoOriginal: string): {
@@ -444,4 +446,4 @@ declare function getDateInTimeZone(timeZone: TimeZone): Date;
444
446
 
445
447
  declare function generateUniqueNumber(): number;
446
448
 
447
- export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, GetCodigoFechaActual, type IDocumentacion, type IMO, type IMaterial, 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, codBalizaAL04, codClientes, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, convertDates, dataFlujosHomePass, esCadenaFechaISOValida, esObjetoFecha, generateUniqueNumber, getChannelName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObra, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, updatePriceContractorMO, validateNoLookup };
449
+ export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, GetCodigoFechaActual, type IDocumentacion, type IMO, type IMaterial, 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, codBalizaAL04, codClientes, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, convertDates, dataFlujosHomePass, esCadenaFechaISOValida, esObjetoFecha, generateUniqueNumber, getChannelName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObra, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, updatePriceContractorMO, updatePriceMO, validateNoLookup };
package/dist/index.d.ts CHANGED
@@ -265,6 +265,8 @@ declare const mapaReglaSopladoClientes: Map<string, ReglaSoplado[]>;
265
265
 
266
266
  declare function updatePriceContractorMO(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'PrecioContrata' | 'TotalContrata' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
267
267
 
268
+ declare function updatePriceMO(valorizaciones: Pick<ValorizacionDTO, 'Ultimo_Estado_Interno' | 'DetalleChile' | 'Precio' | 'Total' | 'Cantidad'>[], priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): void;
269
+
268
270
  declare function obtenerPrecioManoObra(CodigoMO: string, TipoMO: string | null, priceContractorMO: Pick<PrecioContratistaMOAL02ENTITY, 'ManoObraGlobal' | 'Empresa'>): number;
269
271
 
270
272
  declare function obtenerTipoYCodigoMO(codigoOriginal: string): {
@@ -444,4 +446,4 @@ declare function getDateInTimeZone(timeZone: TimeZone): Date;
444
446
 
445
447
  declare function generateUniqueNumber(): number;
446
448
 
447
- export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, GetCodigoFechaActual, type IDocumentacion, type IMO, type IMaterial, 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, codBalizaAL04, codClientes, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, convertDates, dataFlujosHomePass, esCadenaFechaISOValida, esObjetoFecha, generateUniqueNumber, getChannelName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObra, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, updatePriceContractorMO, validateNoLookup };
449
+ export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, GetCodigoFechaActual, type IDocumentacion, type IMO, type IMaterial, 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, codBalizaAL04, codClientes, codMOClientes_ReglaLiquidacion1, codMODROPAL04, codMODROPAL04OC, codMODROPAL04Soplado, codMOFTTFAL04, codMONoClientes_ReglaLiquidacion1, codMOOcultosAL04, codMOPublico, codMOTroncalAL04, codMOTroncalAL04Asfaltado, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, convertDates, dataFlujosHomePass, esCadenaFechaISOValida, esObjetoFecha, generateUniqueNumber, getChannelName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObra, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, updatePriceContractorMO, updatePriceMO, validateNoLookup };
package/dist/index.js CHANGED
@@ -98,6 +98,7 @@ __export(index_exports, {
98
98
  paisMap: () => paisMap,
99
99
  searchCurrentContractorSpecialtyPrice: () => searchCurrentContractorSpecialtyPrice,
100
100
  updatePriceContractorMO: () => updatePriceContractorMO,
101
+ updatePriceMO: () => updatePriceMO,
101
102
  validateNoLookup: () => validateNoLookup
102
103
  });
103
104
  module.exports = __toCommonJS(index_exports);
@@ -5336,6 +5337,18 @@ function updatePriceContractorMO(valorizaciones, priceContractorMO) {
5336
5337
  }
5337
5338
  __name(updatePriceContractorMO, "updatePriceContractorMO");
5338
5339
 
5340
+ // src/Programados/Alemania/updatePriceMO.ts
5341
+ function updatePriceMO(valorizaciones, priceContractorMO) {
5342
+ for (const valorizacion of valorizaciones) {
5343
+ if (valorizacion.Ultimo_Estado_Interno.Descripcion === "PRODUCCION") continue;
5344
+ const { TipoMO, CodigoMO } = obtenerTipoYCodigoMO(valorizacion.DetalleChile.ManoObra.Codigo);
5345
+ const precio = obtenerPrecioManoObra(CodigoMO, TipoMO, priceContractorMO);
5346
+ valorizacion.Precio = precio;
5347
+ valorizacion.Total = valorizacion.Precio * valorizacion.Cantidad;
5348
+ }
5349
+ }
5350
+ __name(updatePriceMO, "updatePriceMO");
5351
+
5339
5352
  // src/Programados/BuscarZonaContratista.ts
5340
5353
  function BuscarZonaContratista(EmpresaContratistaEnPrecioEspecialidad, Obra, ZonaAsignada) {
5341
5354
  const zonaSearchMapping = {
@@ -5916,5 +5929,6 @@ __name(searchCurrentContractorSpecialtyPrice, "searchCurrentContractorSpecialtyP
5916
5929
  paisMap,
5917
5930
  searchCurrentContractorSpecialtyPrice,
5918
5931
  updatePriceContractorMO,
5932
+ updatePriceMO,
5919
5933
  validateNoLookup
5920
5934
  });
package/dist/index.mjs CHANGED
@@ -5237,6 +5237,18 @@ function updatePriceContractorMO(valorizaciones, priceContractorMO) {
5237
5237
  }
5238
5238
  __name(updatePriceContractorMO, "updatePriceContractorMO");
5239
5239
 
5240
+ // src/Programados/Alemania/updatePriceMO.ts
5241
+ function updatePriceMO(valorizaciones, priceContractorMO) {
5242
+ for (const valorizacion of valorizaciones) {
5243
+ if (valorizacion.Ultimo_Estado_Interno.Descripcion === "PRODUCCION") continue;
5244
+ const { TipoMO, CodigoMO } = obtenerTipoYCodigoMO(valorizacion.DetalleChile.ManoObra.Codigo);
5245
+ const precio = obtenerPrecioManoObra(CodigoMO, TipoMO, priceContractorMO);
5246
+ valorizacion.Precio = precio;
5247
+ valorizacion.Total = valorizacion.Precio * valorizacion.Cantidad;
5248
+ }
5249
+ }
5250
+ __name(updatePriceMO, "updatePriceMO");
5251
+
5240
5252
  // src/Programados/BuscarZonaContratista.ts
5241
5253
  function BuscarZonaContratista(EmpresaContratistaEnPrecioEspecialidad, Obra, ZonaAsignada) {
5242
5254
  const zonaSearchMapping = {
@@ -5816,5 +5828,6 @@ export {
5816
5828
  paisMap,
5817
5829
  searchCurrentContractorSpecialtyPrice,
5818
5830
  updatePriceContractorMO,
5831
+ updatePriceMO,
5819
5832
  validateNoLookup
5820
5833
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sigo-package",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Funciones compartidas sigo",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",