sigo-package 1.2.39 → 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 +22 -1
- package/dist/index.mjs +21 -1
- 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,7 @@ 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 = ![
|
|
4398
4399
|
"073006000"
|
|
4399
4400
|
].includes(el) ? {
|
|
4400
4401
|
Codigo: el,
|
|
@@ -6052,6 +6053,25 @@ function checkMaterialAvailability(materials, dataMaterialesUtilizados, dataStoc
|
|
|
6052
6053
|
}
|
|
6053
6054
|
__name(checkMaterialAvailability, "checkMaterialAvailability");
|
|
6054
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
|
+
|
|
6055
6075
|
// src/Programados/Colombia/9612/MapaEspecialidadesColombia.ts
|
|
6056
6076
|
var EstadoEspecialidad9612 = /* @__PURE__ */ function(EstadoEspecialidad96122) {
|
|
6057
6077
|
EstadoEspecialidad96122["ACTIVO"] = "ACTIVO";
|
|
@@ -6737,6 +6757,7 @@ var getNextID_Valorizacion = /* @__PURE__ */ __name((valorizaciones) => {
|
|
|
6737
6757
|
ObtenerZonaAsignada,
|
|
6738
6758
|
SEGMENT_TY,
|
|
6739
6759
|
UpdateNodosDocDP,
|
|
6760
|
+
buildDataMOFromMaterialRules,
|
|
6740
6761
|
buildDataMaterialsRule,
|
|
6741
6762
|
buildTenantCollectionName,
|
|
6742
6763
|
checkAndBuildMaterialsFromStock,
|
package/dist/index.mjs
CHANGED
|
@@ -4264,7 +4264,7 @@ 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
4268
|
"073006000"
|
|
4269
4269
|
].includes(el) ? {
|
|
4270
4270
|
Codigo: el,
|
|
@@ -5922,6 +5922,25 @@ 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
|
+
});
|
|
5939
|
+
});
|
|
5940
|
+
return dataMORule;
|
|
5941
|
+
}
|
|
5942
|
+
__name(buildDataMOFromMaterialRules, "buildDataMOFromMaterialRules");
|
|
5943
|
+
|
|
5925
5944
|
// src/Programados/Colombia/9612/MapaEspecialidadesColombia.ts
|
|
5926
5945
|
var EstadoEspecialidad9612 = /* @__PURE__ */ function(EstadoEspecialidad96122) {
|
|
5927
5946
|
EstadoEspecialidad96122["ACTIVO"] = "ACTIVO";
|
|
@@ -6606,6 +6625,7 @@ export {
|
|
|
6606
6625
|
ObtenerZonaAsignada,
|
|
6607
6626
|
SEGMENT_TY,
|
|
6608
6627
|
UpdateNodosDocDP,
|
|
6628
|
+
buildDataMOFromMaterialRules,
|
|
6609
6629
|
buildDataMaterialsRule,
|
|
6610
6630
|
buildTenantCollectionName,
|
|
6611
6631
|
checkAndBuildMaterialsFromStock,
|