sigo-package 1.2.38 → 1.2.40
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 +10 -2
- package/dist/index.d.ts +10 -2
- package/dist/index.js +33 -14
- package/dist/index.mjs +32 -14
- 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,12 @@ 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
|
+
}
|
|
103
|
+
|
|
98
104
|
interface IMateriales {
|
|
99
105
|
keyFila: string;
|
|
100
106
|
key: string;
|
|
@@ -337,6 +343,8 @@ declare function consumirStockPersonal(codDelegacion: string, codigoMaterial: st
|
|
|
337
343
|
|
|
338
344
|
declare function checkMaterialAvailability(materials: IMateriales[], dataMaterialesUtilizados: IMateriales[], dataStockPersonal: StockPersonalENTITY[], dataStockAlmacen: StockAlmacenENTITY[], dataConsumoMaterial: ConsumoMaterialAlemaniaENTITY[], Controller: any): void;
|
|
339
345
|
|
|
346
|
+
declare function buildDataMOFromMaterialRules(key: string, ManoObra: IMOAndMaterialsRules[], Asignacion: ValorizacionesDTO[], Controller: any, CantidadPadre?: number): IMORules[];
|
|
347
|
+
|
|
340
348
|
declare const CalcularResumenLiquidaciones: Funcion$1;
|
|
341
349
|
interface Funcion$1 {
|
|
342
350
|
(trabajo: TrabajoType, trabajos: any[]): ResumenLiquidacionesTypeChile;
|
|
@@ -529,4 +537,4 @@ declare function getContainerName(dirname: string): string;
|
|
|
529
537
|
|
|
530
538
|
declare function buildTenantCollectionName(countryName: string, delegation: string, collection: string): string;
|
|
531
539
|
|
|
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 };
|
|
540
|
+
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, 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,12 @@ 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
|
+
}
|
|
103
|
+
|
|
98
104
|
interface IMateriales {
|
|
99
105
|
keyFila: string;
|
|
100
106
|
key: string;
|
|
@@ -337,6 +343,8 @@ declare function consumirStockPersonal(codDelegacion: string, codigoMaterial: st
|
|
|
337
343
|
|
|
338
344
|
declare function checkMaterialAvailability(materials: IMateriales[], dataMaterialesUtilizados: IMateriales[], dataStockPersonal: StockPersonalENTITY[], dataStockAlmacen: StockAlmacenENTITY[], dataConsumoMaterial: ConsumoMaterialAlemaniaENTITY[], Controller: any): void;
|
|
339
345
|
|
|
346
|
+
declare function buildDataMOFromMaterialRules(key: string, ManoObra: IMOAndMaterialsRules[], Asignacion: ValorizacionesDTO[], Controller: any, CantidadPadre?: number): IMORules[];
|
|
347
|
+
|
|
340
348
|
declare const CalcularResumenLiquidaciones: Funcion$1;
|
|
341
349
|
interface Funcion$1 {
|
|
342
350
|
(trabajo: TrabajoType, trabajos: any[]): ResumenLiquidacionesTypeChile;
|
|
@@ -529,4 +537,4 @@ declare function getContainerName(dirname: string): string;
|
|
|
529
537
|
|
|
530
538
|
declare function buildTenantCollectionName(countryName: string, delegation: string, collection: string): string;
|
|
531
539
|
|
|
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 };
|
|
540
|
+
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, 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,
|
|
@@ -4394,7 +4395,9 @@ function buildPreliquidacionRules1() {
|
|
|
4394
4395
|
const map = /* @__PURE__ */ new Map();
|
|
4395
4396
|
codMOTroncalReglaLiquidacion1.forEach((el) => {
|
|
4396
4397
|
const key = el;
|
|
4397
|
-
const value =
|
|
4398
|
+
const value = ![
|
|
4399
|
+
"073006000"
|
|
4400
|
+
].includes(el) ? {
|
|
4398
4401
|
Codigo: el,
|
|
4399
4402
|
ManoObra: [],
|
|
4400
4403
|
Materiales: buildRulesMaterial(),
|
|
@@ -4402,6 +4405,14 @@ function buildPreliquidacionRules1() {
|
|
|
4402
4405
|
CantidadPadre: false,
|
|
4403
4406
|
Cantidad: 0,
|
|
4404
4407
|
Factor: 1
|
|
4408
|
+
} : {
|
|
4409
|
+
Codigo: el,
|
|
4410
|
+
ManoObra: [],
|
|
4411
|
+
Materiales: buildRulesMaterial(),
|
|
4412
|
+
CantidadFija: true,
|
|
4413
|
+
CantidadPadre: false,
|
|
4414
|
+
Cantidad: 1,
|
|
4415
|
+
Factor: 1
|
|
4405
4416
|
};
|
|
4406
4417
|
map.set(key, value);
|
|
4407
4418
|
});
|
|
@@ -4411,19 +4422,7 @@ __name(buildPreliquidacionRules1, "buildPreliquidacionRules1");
|
|
|
4411
4422
|
|
|
4412
4423
|
// src/Programados/Alemania/AL02/mapaMOMaterialAL02.ts
|
|
4413
4424
|
var mapaMOMaterialAL02 = new Map([
|
|
4414
|
-
...buildPreliquidacionRules1()
|
|
4415
|
-
[
|
|
4416
|
-
"073006000",
|
|
4417
|
-
{
|
|
4418
|
-
Codigo: "073006000",
|
|
4419
|
-
ManoObra: [],
|
|
4420
|
-
Materiales: [],
|
|
4421
|
-
CantidadFija: true,
|
|
4422
|
-
CantidadPadre: false,
|
|
4423
|
-
Cantidad: 1,
|
|
4424
|
-
Factor: 1
|
|
4425
|
-
}
|
|
4426
|
-
]
|
|
4425
|
+
...buildPreliquidacionRules1()
|
|
4427
4426
|
]);
|
|
4428
4427
|
|
|
4429
4428
|
// src/Programados/Alemania/CalcularResumenHPMOLiquidado/index.ts
|
|
@@ -6054,6 +6053,25 @@ function checkMaterialAvailability(materials, dataMaterialesUtilizados, dataStoc
|
|
|
6054
6053
|
}
|
|
6055
6054
|
__name(checkMaterialAvailability, "checkMaterialAvailability");
|
|
6056
6055
|
|
|
6056
|
+
// src/Programados/Alemania/buildDataMOFromMaterialRules.ts
|
|
6057
|
+
function buildDataMOFromMaterialRules(key, ManoObra, Asignacion, Controller, CantidadPadre = 0) {
|
|
6058
|
+
const dataMORule = [];
|
|
6059
|
+
ManoObra.forEach((el) => {
|
|
6060
|
+
const asignacion = Asignacion.filter((e) => e.ManoObra.Codigo === el.Codigo);
|
|
6061
|
+
if (asignacion.length !== 1) {
|
|
6062
|
+
throw new Controller.SigoError(`Tiene asignado ${asignacion.length} mano(s) de obra (c\xF3digo ${el.Codigo}) en este trabajo.`);
|
|
6063
|
+
}
|
|
6064
|
+
const cantidad = el.CantidadPadre ? CantidadPadre : el.CantidadFija ? el.Cantidad : 0;
|
|
6065
|
+
dataMORule.push({
|
|
6066
|
+
cantidad,
|
|
6067
|
+
key,
|
|
6068
|
+
mo: el
|
|
6069
|
+
});
|
|
6070
|
+
});
|
|
6071
|
+
return dataMORule;
|
|
6072
|
+
}
|
|
6073
|
+
__name(buildDataMOFromMaterialRules, "buildDataMOFromMaterialRules");
|
|
6074
|
+
|
|
6057
6075
|
// src/Programados/Colombia/9612/MapaEspecialidadesColombia.ts
|
|
6058
6076
|
var EstadoEspecialidad9612 = /* @__PURE__ */ function(EstadoEspecialidad96122) {
|
|
6059
6077
|
EstadoEspecialidad96122["ACTIVO"] = "ACTIVO";
|
|
@@ -6739,6 +6757,7 @@ var getNextID_Valorizacion = /* @__PURE__ */ __name((valorizaciones) => {
|
|
|
6739
6757
|
ObtenerZonaAsignada,
|
|
6740
6758
|
SEGMENT_TY,
|
|
6741
6759
|
UpdateNodosDocDP,
|
|
6760
|
+
buildDataMOFromMaterialRules,
|
|
6742
6761
|
buildDataMaterialsRule,
|
|
6743
6762
|
buildTenantCollectionName,
|
|
6744
6763
|
checkAndBuildMaterialsFromStock,
|
package/dist/index.mjs
CHANGED
|
@@ -4264,7 +4264,9 @@ function buildPreliquidacionRules1() {
|
|
|
4264
4264
|
const map = /* @__PURE__ */ new Map();
|
|
4265
4265
|
codMOTroncalReglaLiquidacion1.forEach((el) => {
|
|
4266
4266
|
const key = el;
|
|
4267
|
-
const value =
|
|
4267
|
+
const value = ![
|
|
4268
|
+
"073006000"
|
|
4269
|
+
].includes(el) ? {
|
|
4268
4270
|
Codigo: el,
|
|
4269
4271
|
ManoObra: [],
|
|
4270
4272
|
Materiales: buildRulesMaterial(),
|
|
@@ -4272,6 +4274,14 @@ function buildPreliquidacionRules1() {
|
|
|
4272
4274
|
CantidadPadre: false,
|
|
4273
4275
|
Cantidad: 0,
|
|
4274
4276
|
Factor: 1
|
|
4277
|
+
} : {
|
|
4278
|
+
Codigo: el,
|
|
4279
|
+
ManoObra: [],
|
|
4280
|
+
Materiales: buildRulesMaterial(),
|
|
4281
|
+
CantidadFija: true,
|
|
4282
|
+
CantidadPadre: false,
|
|
4283
|
+
Cantidad: 1,
|
|
4284
|
+
Factor: 1
|
|
4275
4285
|
};
|
|
4276
4286
|
map.set(key, value);
|
|
4277
4287
|
});
|
|
@@ -4281,19 +4291,7 @@ __name(buildPreliquidacionRules1, "buildPreliquidacionRules1");
|
|
|
4281
4291
|
|
|
4282
4292
|
// src/Programados/Alemania/AL02/mapaMOMaterialAL02.ts
|
|
4283
4293
|
var mapaMOMaterialAL02 = new Map([
|
|
4284
|
-
...buildPreliquidacionRules1()
|
|
4285
|
-
[
|
|
4286
|
-
"073006000",
|
|
4287
|
-
{
|
|
4288
|
-
Codigo: "073006000",
|
|
4289
|
-
ManoObra: [],
|
|
4290
|
-
Materiales: [],
|
|
4291
|
-
CantidadFija: true,
|
|
4292
|
-
CantidadPadre: false,
|
|
4293
|
-
Cantidad: 1,
|
|
4294
|
-
Factor: 1
|
|
4295
|
-
}
|
|
4296
|
-
]
|
|
4294
|
+
...buildPreliquidacionRules1()
|
|
4297
4295
|
]);
|
|
4298
4296
|
|
|
4299
4297
|
// src/Programados/Alemania/CalcularResumenHPMOLiquidado/index.ts
|
|
@@ -5924,6 +5922,25 @@ function checkMaterialAvailability(materials, dataMaterialesUtilizados, dataStoc
|
|
|
5924
5922
|
}
|
|
5925
5923
|
__name(checkMaterialAvailability, "checkMaterialAvailability");
|
|
5926
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
|
+
});
|
|
5939
|
+
});
|
|
5940
|
+
return dataMORule;
|
|
5941
|
+
}
|
|
5942
|
+
__name(buildDataMOFromMaterialRules, "buildDataMOFromMaterialRules");
|
|
5943
|
+
|
|
5927
5944
|
// src/Programados/Colombia/9612/MapaEspecialidadesColombia.ts
|
|
5928
5945
|
var EstadoEspecialidad9612 = /* @__PURE__ */ function(EstadoEspecialidad96122) {
|
|
5929
5946
|
EstadoEspecialidad96122["ACTIVO"] = "ACTIVO";
|
|
@@ -6608,6 +6625,7 @@ export {
|
|
|
6608
6625
|
ObtenerZonaAsignada,
|
|
6609
6626
|
SEGMENT_TY,
|
|
6610
6627
|
UpdateNodosDocDP,
|
|
6628
|
+
buildDataMOFromMaterialRules,
|
|
6611
6629
|
buildDataMaterialsRule,
|
|
6612
6630
|
buildTenantCollectionName,
|
|
6613
6631
|
checkAndBuildMaterialsFromStock,
|