sigo-package 1.2.39 → 1.2.41
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 +13 -2
- package/dist/index.d.ts +13 -2
- package/dist/index.js +27 -3
- package/dist/index.mjs +25 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as sigo_entities from 'sigo-entities';
|
|
2
|
-
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, ValorizacionManoObraDTO, ValorizacionDTO, PrecioContratistaMOAL02ENTITY, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
2
|
+
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, ValorizacionManoObraDTO, ValorizacionDTO, PrecioContratistaMOAL02ENTITY, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
3
3
|
|
|
4
4
|
interface IenvSIGO$1 {
|
|
5
5
|
SISTEMAS_VALORIZACION_MANO_OBRA: string[];
|
|
@@ -95,6 +95,13 @@ interface IMOAndMaterialsRules {
|
|
|
95
95
|
ManoObra: Map<string, IMOAndMaterialsRules> | IMOAndMaterialsRules[];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
interface IMORules {
|
|
99
|
+
key: string;
|
|
100
|
+
cantidad: number;
|
|
101
|
+
mo: IMOAndMaterialsRules;
|
|
102
|
+
materiales: string[];
|
|
103
|
+
}
|
|
104
|
+
|
|
98
105
|
interface IMateriales {
|
|
99
106
|
keyFila: string;
|
|
100
107
|
key: string;
|
|
@@ -138,6 +145,8 @@ declare const mapaEstadoObraFaseAL02: Map<string, string>;
|
|
|
138
145
|
|
|
139
146
|
declare const mapaMOMaterialAL02: Map<string, IMOAndMaterialsRules>;
|
|
140
147
|
|
|
148
|
+
declare const newCodMOTroncalReglaLiquidacion1: string[];
|
|
149
|
+
|
|
141
150
|
interface typeHPMOUtilizado {
|
|
142
151
|
ID_HPListMO: number;
|
|
143
152
|
CantidadUtilizado: number;
|
|
@@ -337,6 +346,8 @@ declare function consumirStockPersonal(codDelegacion: string, codigoMaterial: st
|
|
|
337
346
|
|
|
338
347
|
declare function checkMaterialAvailability(materials: IMateriales[], dataMaterialesUtilizados: IMateriales[], dataStockPersonal: StockPersonalENTITY[], dataStockAlmacen: StockAlmacenENTITY[], dataConsumoMaterial: ConsumoMaterialAlemaniaENTITY[], Controller: any): void;
|
|
339
348
|
|
|
349
|
+
declare function buildDataMOFromMaterialRules(key: string, ManoObra: IMOAndMaterialsRules[], Asignacion: ValorizacionesDTO[], Controller: any, CantidadPadre?: number): IMORules[];
|
|
350
|
+
|
|
340
351
|
declare const CalcularResumenLiquidaciones: Funcion$1;
|
|
341
352
|
interface Funcion$1 {
|
|
342
353
|
(trabajo: TrabajoType, trabajos: any[]): ResumenLiquidacionesTypeChile;
|
|
@@ -529,4 +540,4 @@ declare function getContainerName(dirname: string): string;
|
|
|
529
540
|
|
|
530
541
|
declare function buildTenantCollectionName(countryName: string, delegation: string, collection: string): string;
|
|
531
542
|
|
|
532
|
-
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 IDocumentacion, type IMOAndMaterialsRules, 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, 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, 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, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
|
543
|
+
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 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, 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, 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as sigo_entities from 'sigo-entities';
|
|
2
|
-
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, ValorizacionManoObraDTO, ValorizacionDTO, PrecioContratistaMOAL02ENTITY, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
2
|
+
import { ManoObraENTITY, ReservaENTITY, ItemDetalleLogisticaDTO, HomePassDTO, FlujoDocDTO, NodoDocDTO, DocumentacionPEXENTITY, ManoObraGlobalENTITY, PrecioEspecialidadENTITY, ObraChile9512ENTITY, ValorizacionManoObraDTO, ValorizacionDTO, PrecioContratistaMOAL02ENTITY, StockPersonalENTITY, StockAlmacenENTITY, ConsumoMaterialAlemaniaENTITY, ValorizacionesDTO, TrabajoENTITY, ActividadesDTO, PreciosVigentesDTO, ContratoOTENTITY } from 'sigo-entities';
|
|
3
3
|
|
|
4
4
|
interface IenvSIGO$1 {
|
|
5
5
|
SISTEMAS_VALORIZACION_MANO_OBRA: string[];
|
|
@@ -95,6 +95,13 @@ interface IMOAndMaterialsRules {
|
|
|
95
95
|
ManoObra: Map<string, IMOAndMaterialsRules> | IMOAndMaterialsRules[];
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
+
interface IMORules {
|
|
99
|
+
key: string;
|
|
100
|
+
cantidad: number;
|
|
101
|
+
mo: IMOAndMaterialsRules;
|
|
102
|
+
materiales: string[];
|
|
103
|
+
}
|
|
104
|
+
|
|
98
105
|
interface IMateriales {
|
|
99
106
|
keyFila: string;
|
|
100
107
|
key: string;
|
|
@@ -138,6 +145,8 @@ declare const mapaEstadoObraFaseAL02: Map<string, string>;
|
|
|
138
145
|
|
|
139
146
|
declare const mapaMOMaterialAL02: Map<string, IMOAndMaterialsRules>;
|
|
140
147
|
|
|
148
|
+
declare const newCodMOTroncalReglaLiquidacion1: string[];
|
|
149
|
+
|
|
141
150
|
interface typeHPMOUtilizado {
|
|
142
151
|
ID_HPListMO: number;
|
|
143
152
|
CantidadUtilizado: number;
|
|
@@ -337,6 +346,8 @@ declare function consumirStockPersonal(codDelegacion: string, codigoMaterial: st
|
|
|
337
346
|
|
|
338
347
|
declare function checkMaterialAvailability(materials: IMateriales[], dataMaterialesUtilizados: IMateriales[], dataStockPersonal: StockPersonalENTITY[], dataStockAlmacen: StockAlmacenENTITY[], dataConsumoMaterial: ConsumoMaterialAlemaniaENTITY[], Controller: any): void;
|
|
339
348
|
|
|
349
|
+
declare function buildDataMOFromMaterialRules(key: string, ManoObra: IMOAndMaterialsRules[], Asignacion: ValorizacionesDTO[], Controller: any, CantidadPadre?: number): IMORules[];
|
|
350
|
+
|
|
340
351
|
declare const CalcularResumenLiquidaciones: Funcion$1;
|
|
341
352
|
interface Funcion$1 {
|
|
342
353
|
(trabajo: TrabajoType, trabajos: any[]): ResumenLiquidacionesTypeChile;
|
|
@@ -529,4 +540,4 @@ declare function getContainerName(dirname: string): string;
|
|
|
529
540
|
|
|
530
541
|
declare function buildTenantCollectionName(countryName: string, delegation: string, collection: string): string;
|
|
531
542
|
|
|
532
|
-
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 IDocumentacion, type IMOAndMaterialsRules, 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, 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, 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, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
|
543
|
+
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 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, 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, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.js
CHANGED
|
@@ -58,6 +58,7 @@ __export(index_exports, {
|
|
|
58
58
|
ObtenerZonaAsignada: () => ObtenerZonaAsignada,
|
|
59
59
|
SEGMENT_TY: () => SEGMENT_TY,
|
|
60
60
|
UpdateNodosDocDP: () => UpdateNodosDocDP,
|
|
61
|
+
buildDataMOFromMaterialRules: () => buildDataMOFromMaterialRules,
|
|
61
62
|
buildDataMaterialsRule: () => buildDataMaterialsRule,
|
|
62
63
|
buildTenantCollectionName: () => buildTenantCollectionName,
|
|
63
64
|
checkAndBuildMaterialsFromStock: () => checkAndBuildMaterialsFromStock,
|
|
@@ -117,6 +118,7 @@ __export(index_exports, {
|
|
|
117
118
|
mapaMOMaterialAL04: () => mapaMOMaterialAL04,
|
|
118
119
|
mapaReglaSopladoClientes: () => mapaReglaSopladoClientes,
|
|
119
120
|
mapaReglaSopladoTroncal: () => mapaReglaSopladoTroncal,
|
|
121
|
+
newCodMOTroncalReglaLiquidacion1: () => newCodMOTroncalReglaLiquidacion1,
|
|
120
122
|
obtenerDocumentacionClientes: () => obtenerDocumentacionClientes,
|
|
121
123
|
obtenerDocumentacionNoClientes: () => obtenerDocumentacionNoClientes,
|
|
122
124
|
obtenerPrecioManoObraAL02: () => obtenerPrecioManoObraAL02,
|
|
@@ -4284,7 +4286,7 @@ var mapaEstadoObraFaseAL02 = /* @__PURE__ */ new Map([
|
|
|
4284
4286
|
]);
|
|
4285
4287
|
|
|
4286
4288
|
// src/Programados/Alemania/AL02/buildPreliquidacionRules1.ts
|
|
4287
|
-
var
|
|
4289
|
+
var newCodMOTroncalReglaLiquidacion1 = [
|
|
4288
4290
|
"011304100",
|
|
4289
4291
|
"062605201",
|
|
4290
4292
|
"010600300",
|
|
@@ -4392,9 +4394,9 @@ function buildRulesMaterial() {
|
|
|
4392
4394
|
__name(buildRulesMaterial, "buildRulesMaterial");
|
|
4393
4395
|
function buildPreliquidacionRules1() {
|
|
4394
4396
|
const map = /* @__PURE__ */ new Map();
|
|
4395
|
-
|
|
4397
|
+
newCodMOTroncalReglaLiquidacion1.forEach((el) => {
|
|
4396
4398
|
const key = el;
|
|
4397
|
-
const value = [
|
|
4399
|
+
const value = ![
|
|
4398
4400
|
"073006000"
|
|
4399
4401
|
].includes(el) ? {
|
|
4400
4402
|
Codigo: el,
|
|
@@ -6052,6 +6054,26 @@ function checkMaterialAvailability(materials, dataMaterialesUtilizados, dataStoc
|
|
|
6052
6054
|
}
|
|
6053
6055
|
__name(checkMaterialAvailability, "checkMaterialAvailability");
|
|
6054
6056
|
|
|
6057
|
+
// src/Programados/Alemania/buildDataMOFromMaterialRules.ts
|
|
6058
|
+
function buildDataMOFromMaterialRules(key, ManoObra, Asignacion, Controller, CantidadPadre = 0) {
|
|
6059
|
+
const dataMORule = [];
|
|
6060
|
+
ManoObra.forEach((el) => {
|
|
6061
|
+
const asignacion = Asignacion.filter((e) => e.ManoObra.Codigo === el.Codigo);
|
|
6062
|
+
if (asignacion.length !== 1) {
|
|
6063
|
+
throw new Controller.SigoError(`Tiene asignado ${asignacion.length} mano(s) de obra (c\xF3digo ${el.Codigo}) en este trabajo.`);
|
|
6064
|
+
}
|
|
6065
|
+
const cantidad = el.CantidadPadre ? CantidadPadre : el.CantidadFija ? el.Cantidad : 0;
|
|
6066
|
+
dataMORule.push({
|
|
6067
|
+
cantidad,
|
|
6068
|
+
key,
|
|
6069
|
+
mo: el,
|
|
6070
|
+
materiales: []
|
|
6071
|
+
});
|
|
6072
|
+
});
|
|
6073
|
+
return dataMORule;
|
|
6074
|
+
}
|
|
6075
|
+
__name(buildDataMOFromMaterialRules, "buildDataMOFromMaterialRules");
|
|
6076
|
+
|
|
6055
6077
|
// src/Programados/Colombia/9612/MapaEspecialidadesColombia.ts
|
|
6056
6078
|
var EstadoEspecialidad9612 = /* @__PURE__ */ function(EstadoEspecialidad96122) {
|
|
6057
6079
|
EstadoEspecialidad96122["ACTIVO"] = "ACTIVO";
|
|
@@ -6737,6 +6759,7 @@ var getNextID_Valorizacion = /* @__PURE__ */ __name((valorizaciones) => {
|
|
|
6737
6759
|
ObtenerZonaAsignada,
|
|
6738
6760
|
SEGMENT_TY,
|
|
6739
6761
|
UpdateNodosDocDP,
|
|
6762
|
+
buildDataMOFromMaterialRules,
|
|
6740
6763
|
buildDataMaterialsRule,
|
|
6741
6764
|
buildTenantCollectionName,
|
|
6742
6765
|
checkAndBuildMaterialsFromStock,
|
|
@@ -6796,6 +6819,7 @@ var getNextID_Valorizacion = /* @__PURE__ */ __name((valorizaciones) => {
|
|
|
6796
6819
|
mapaMOMaterialAL04,
|
|
6797
6820
|
mapaReglaSopladoClientes,
|
|
6798
6821
|
mapaReglaSopladoTroncal,
|
|
6822
|
+
newCodMOTroncalReglaLiquidacion1,
|
|
6799
6823
|
obtenerDocumentacionClientes,
|
|
6800
6824
|
obtenerDocumentacionNoClientes,
|
|
6801
6825
|
obtenerPrecioManoObraAL02,
|
package/dist/index.mjs
CHANGED
|
@@ -4154,7 +4154,7 @@ var mapaEstadoObraFaseAL02 = /* @__PURE__ */ new Map([
|
|
|
4154
4154
|
]);
|
|
4155
4155
|
|
|
4156
4156
|
// src/Programados/Alemania/AL02/buildPreliquidacionRules1.ts
|
|
4157
|
-
var
|
|
4157
|
+
var newCodMOTroncalReglaLiquidacion1 = [
|
|
4158
4158
|
"011304100",
|
|
4159
4159
|
"062605201",
|
|
4160
4160
|
"010600300",
|
|
@@ -4262,9 +4262,9 @@ function buildRulesMaterial() {
|
|
|
4262
4262
|
__name(buildRulesMaterial, "buildRulesMaterial");
|
|
4263
4263
|
function buildPreliquidacionRules1() {
|
|
4264
4264
|
const map = /* @__PURE__ */ new Map();
|
|
4265
|
-
|
|
4265
|
+
newCodMOTroncalReglaLiquidacion1.forEach((el) => {
|
|
4266
4266
|
const key = el;
|
|
4267
|
-
const value = [
|
|
4267
|
+
const value = ![
|
|
4268
4268
|
"073006000"
|
|
4269
4269
|
].includes(el) ? {
|
|
4270
4270
|
Codigo: el,
|
|
@@ -5922,6 +5922,26 @@ function checkMaterialAvailability(materials, dataMaterialesUtilizados, dataStoc
|
|
|
5922
5922
|
}
|
|
5923
5923
|
__name(checkMaterialAvailability, "checkMaterialAvailability");
|
|
5924
5924
|
|
|
5925
|
+
// src/Programados/Alemania/buildDataMOFromMaterialRules.ts
|
|
5926
|
+
function buildDataMOFromMaterialRules(key, ManoObra, Asignacion, Controller, CantidadPadre = 0) {
|
|
5927
|
+
const dataMORule = [];
|
|
5928
|
+
ManoObra.forEach((el) => {
|
|
5929
|
+
const asignacion = Asignacion.filter((e) => e.ManoObra.Codigo === el.Codigo);
|
|
5930
|
+
if (asignacion.length !== 1) {
|
|
5931
|
+
throw new Controller.SigoError(`Tiene asignado ${asignacion.length} mano(s) de obra (c\xF3digo ${el.Codigo}) en este trabajo.`);
|
|
5932
|
+
}
|
|
5933
|
+
const cantidad = el.CantidadPadre ? CantidadPadre : el.CantidadFija ? el.Cantidad : 0;
|
|
5934
|
+
dataMORule.push({
|
|
5935
|
+
cantidad,
|
|
5936
|
+
key,
|
|
5937
|
+
mo: el,
|
|
5938
|
+
materiales: []
|
|
5939
|
+
});
|
|
5940
|
+
});
|
|
5941
|
+
return dataMORule;
|
|
5942
|
+
}
|
|
5943
|
+
__name(buildDataMOFromMaterialRules, "buildDataMOFromMaterialRules");
|
|
5944
|
+
|
|
5925
5945
|
// src/Programados/Colombia/9612/MapaEspecialidadesColombia.ts
|
|
5926
5946
|
var EstadoEspecialidad9612 = /* @__PURE__ */ function(EstadoEspecialidad96122) {
|
|
5927
5947
|
EstadoEspecialidad96122["ACTIVO"] = "ACTIVO";
|
|
@@ -6606,6 +6626,7 @@ export {
|
|
|
6606
6626
|
ObtenerZonaAsignada,
|
|
6607
6627
|
SEGMENT_TY,
|
|
6608
6628
|
UpdateNodosDocDP,
|
|
6629
|
+
buildDataMOFromMaterialRules,
|
|
6609
6630
|
buildDataMaterialsRule,
|
|
6610
6631
|
buildTenantCollectionName,
|
|
6611
6632
|
checkAndBuildMaterialsFromStock,
|
|
@@ -6665,6 +6686,7 @@ export {
|
|
|
6665
6686
|
mapaMOMaterialAL04,
|
|
6666
6687
|
mapaReglaSopladoClientes,
|
|
6667
6688
|
mapaReglaSopladoTroncal,
|
|
6689
|
+
newCodMOTroncalReglaLiquidacion1,
|
|
6668
6690
|
obtenerDocumentacionClientes,
|
|
6669
6691
|
obtenerDocumentacionNoClientes,
|
|
6670
6692
|
obtenerPrecioManoObraAL02,
|