sigo-package 1.2.95 → 1.2.97
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 +4 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +17 -3
- package/dist/index.mjs +16 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -620,9 +620,11 @@ declare class ValorizacionHelper {
|
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
declare function getPriceMaterial(CodigoItem: string, dataPriceMaterial: Pick<PrecioMaterialENTITY, 'Item' | 'Precio'>[]): {
|
|
623
|
-
Valor: number
|
|
623
|
+
Valor: number;
|
|
624
624
|
};
|
|
625
625
|
|
|
626
|
+
declare function calcularTotalMaterialValorizacionPeru9112(valorizaciones: Pick<ValorizacionDTO, 'MaterialesUtilizados'>[], dataPriceMaterial: Pick<PrecioMaterialENTITY, "Item" | "Precio">[]): number;
|
|
627
|
+
|
|
626
628
|
declare enum Position {
|
|
627
629
|
left = "left",
|
|
628
630
|
right = "right"
|
|
@@ -732,4 +734,4 @@ declare function getDBName({ pais, delegacion }: {
|
|
|
732
734
|
delegacion: CodigoNombreDTO;
|
|
733
735
|
}): string;
|
|
734
736
|
|
|
735
|
-
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, 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, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, colecciones, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
|
737
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, 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, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, colecciones, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.d.ts
CHANGED
|
@@ -620,9 +620,11 @@ declare class ValorizacionHelper {
|
|
|
620
620
|
}
|
|
621
621
|
|
|
622
622
|
declare function getPriceMaterial(CodigoItem: string, dataPriceMaterial: Pick<PrecioMaterialENTITY, 'Item' | 'Precio'>[]): {
|
|
623
|
-
Valor: number
|
|
623
|
+
Valor: number;
|
|
624
624
|
};
|
|
625
625
|
|
|
626
|
+
declare function calcularTotalMaterialValorizacionPeru9112(valorizaciones: Pick<ValorizacionDTO, 'MaterialesUtilizados'>[], dataPriceMaterial: Pick<PrecioMaterialENTITY, "Item" | "Precio">[]): number;
|
|
627
|
+
|
|
626
628
|
declare enum Position {
|
|
627
629
|
left = "left",
|
|
628
630
|
right = "right"
|
|
@@ -732,4 +734,4 @@ declare function getDBName({ pais, delegacion }: {
|
|
|
732
734
|
delegacion: CodigoNombreDTO;
|
|
733
735
|
}): string;
|
|
734
736
|
|
|
735
|
-
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, 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, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, colecciones, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
|
737
|
+
export { ActualizarDataManoObra, ActualizarDataReserva, ActualizarDataResumenLiquidaciones, ActualizarDataResumenLiquidacionesColombia, ActualizarDataResumenValorizacionesAlemania, ActualizarDataTrabajos, AsignacionHelper, BuscarZonaContratista, CalcularResumenHPMOLiquidado, CalcularResumenLiquidaciones, CalcularResumenLiquidacionesColombia, CalcularResumenValorizacionesAlemania, CodigosMaterialDuctosAL02, CodigosMaterialDuctosAL04, CodigosMaterialSoplado, CodsMapeoMOMaterial, CodsMapeoMOMaterialNVT01, CodsMapeoMOMaterialSopladoClientes, CodsMapeoMOMaterialSopladoTroncal, CodsMapeoMO_Material_Arquertas, CompararFechas, CurrencyFormat, DocumentacionReplanteo, EstadoEspecialidad9612, GemeindeChangeNomenclatura, GetCodigoFechaActual, type IDPContrato, type IDocumentacion, type IMOAndMaterialsRules, type IMORules, type IMateriales, MOCantidadNVT01, MOHijasAL04, MOHijasDEPTH, MapeoEspecialidades9612, MapeoMOBOMAL04, MapeoMatBOMAL04, type MatRetiradosType, type MatStockAlmacenType, type MatStockPersonalType$2 as MatStockPersonalType, type MatUtilizadosType$2 as MatUtilizadosType, type MoUoType$2 as MoUoType, ModelDataFlujosDocumentacionReplanteo, ObtenerMONoReservada, ObtenerPrecioContratistaVigente, ObtenerZonaAsignada, type ResumenLiquidacionesType, type ResumenLiquidacionesTypeChile, type ResumenLiquidacionesTypeColombia, SEGMENT_TY, type TARGET, UpdateNodosDocDP, ValorizacionHelper, buildDataMOFromMaterialRules, buildDataMaterialsRule, buildKeyMO, buildTenantCollectionName, calcularTotalMaterialValorizacionPeru9112, 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, codMOTroncalAL04Issue, codMOTroncalAL04OC, codMOTroncalAL04Soplado, codMOTroncal_ReglaLiquidacion1, codNoCliente, codSopladoRD, codigosMOT1_F2, codigosMaterialDuctos, codigosMaterialUGG, colecciones, collections, consumirStockPersonal, convertDates, dataFlujosHomePass, db_default, db_root, empresas, esCadenaFechaISOValida, esObjetoFecha, formatCurrencyV1, formatNumberSmart, formatNumberV1, formatPercentageV1, generateUniqueNumber, generateUniqueNumberArray, getChannelName, getContainerName, getDBName, getDateInTimeZone, getKeyRedisSortedSet, getModelDataAdicional, getNextID_Amap, getNextID_AsignacionValorizacion, getNextID_Valorizacion, getPrecioContratista, getPriceMaterial, getQueueName, getQueueNameSaveOneNotification, isValidDate, isValidPartialEntity, logTiempoProceso, mapaDPContratoPrecioFullAL02, mapaEstadoObraFaseAL02, mapaMOMaterialAL02, mapaMOMaterialAL04, mapaReglaSopladoClientes, mapaReglaSopladoTroncal, newCodMOTroncalReglaLiquidacion1, obtenerDocumentacionClientes, obtenerDocumentacionNoClientes, obtenerPrecioContratistaMaterial, obtenerPrecioManoObraAL02, obtenerPrecioManoObraAL04, obtenerTipoYCodigoMO, paisMap, searchCurrentContractorSpecialtyPrice, setContext, updatePriceContractorMOAL02, updatePriceContractorMOAL04, updatePriceMOAL02, updatePriceMOAL04, validateNoLookup };
|
package/dist/index.js
CHANGED
|
@@ -66,6 +66,7 @@ __export(index_exports, {
|
|
|
66
66
|
buildDataMaterialsRule: () => buildDataMaterialsRule,
|
|
67
67
|
buildKeyMO: () => buildKeyMO,
|
|
68
68
|
buildTenantCollectionName: () => buildTenantCollectionName,
|
|
69
|
+
calcularTotalMaterialValorizacionPeru9112: () => calcularTotalMaterialValorizacionPeru9112,
|
|
69
70
|
checkAndBuildMaterialsFromStock: () => checkAndBuildMaterialsFromStock,
|
|
70
71
|
checkMaterialAvailability: () => checkMaterialAvailability,
|
|
71
72
|
codBalizaAL04: () => codBalizaAL04,
|
|
@@ -15664,16 +15665,28 @@ function getPriceMaterial(CodigoItem, dataPriceMaterial) {
|
|
|
15664
15665
|
priceMaterial[0].Precio
|
|
15665
15666
|
]
|
|
15666
15667
|
]);
|
|
15667
|
-
|
|
15668
|
-
|
|
15668
|
+
const tipo = priceMaterial[0].Item.Tipo;
|
|
15669
|
+
const Valor = mapa.get(tipo);
|
|
15670
|
+
if (!Valor) {
|
|
15671
|
+
throw new Error(`Tipo de precio material no reconocido ${tipo}`);
|
|
15669
15672
|
}
|
|
15670
|
-
const Valor = mapa.get(priceMaterial[0].Item.Tipo);
|
|
15671
15673
|
return {
|
|
15672
15674
|
Valor
|
|
15673
15675
|
};
|
|
15674
15676
|
}
|
|
15675
15677
|
__name(getPriceMaterial, "getPriceMaterial");
|
|
15676
15678
|
|
|
15679
|
+
// src/Programados/calcularTotalMaterialValorizacionPeru9112.ts
|
|
15680
|
+
function calcularTotalMaterialValorizacionPeru9112(valorizaciones, dataPriceMaterial) {
|
|
15681
|
+
return valorizaciones.reduce((ac, val) => {
|
|
15682
|
+
return ac += val.MaterialesUtilizados.reduce((acc, mu) => {
|
|
15683
|
+
const { Valor } = getPriceMaterial(mu.Codigo, dataPriceMaterial);
|
|
15684
|
+
return acc += mu.Cantidad * Valor;
|
|
15685
|
+
}, 0);
|
|
15686
|
+
}, 0);
|
|
15687
|
+
}
|
|
15688
|
+
__name(calcularTotalMaterialValorizacionPeru9112, "calcularTotalMaterialValorizacionPeru9112");
|
|
15689
|
+
|
|
15677
15690
|
// src/constants/collections.ts
|
|
15678
15691
|
var collections = {
|
|
15679
15692
|
PERU_9112_ToaOrder: "PERU_9112_ToaOrder",
|
|
@@ -15749,6 +15762,7 @@ __name(getDBName, "getDBName");
|
|
|
15749
15762
|
buildDataMaterialsRule,
|
|
15750
15763
|
buildKeyMO,
|
|
15751
15764
|
buildTenantCollectionName,
|
|
15765
|
+
calcularTotalMaterialValorizacionPeru9112,
|
|
15752
15766
|
checkAndBuildMaterialsFromStock,
|
|
15753
15767
|
checkMaterialAvailability,
|
|
15754
15768
|
codBalizaAL04,
|
package/dist/index.mjs
CHANGED
|
@@ -15510,16 +15510,28 @@ function getPriceMaterial(CodigoItem, dataPriceMaterial) {
|
|
|
15510
15510
|
priceMaterial[0].Precio
|
|
15511
15511
|
]
|
|
15512
15512
|
]);
|
|
15513
|
-
|
|
15514
|
-
|
|
15513
|
+
const tipo = priceMaterial[0].Item.Tipo;
|
|
15514
|
+
const Valor = mapa.get(tipo);
|
|
15515
|
+
if (!Valor) {
|
|
15516
|
+
throw new Error(`Tipo de precio material no reconocido ${tipo}`);
|
|
15515
15517
|
}
|
|
15516
|
-
const Valor = mapa.get(priceMaterial[0].Item.Tipo);
|
|
15517
15518
|
return {
|
|
15518
15519
|
Valor
|
|
15519
15520
|
};
|
|
15520
15521
|
}
|
|
15521
15522
|
__name(getPriceMaterial, "getPriceMaterial");
|
|
15522
15523
|
|
|
15524
|
+
// src/Programados/calcularTotalMaterialValorizacionPeru9112.ts
|
|
15525
|
+
function calcularTotalMaterialValorizacionPeru9112(valorizaciones, dataPriceMaterial) {
|
|
15526
|
+
return valorizaciones.reduce((ac, val) => {
|
|
15527
|
+
return ac += val.MaterialesUtilizados.reduce((acc, mu) => {
|
|
15528
|
+
const { Valor } = getPriceMaterial(mu.Codigo, dataPriceMaterial);
|
|
15529
|
+
return acc += mu.Cantidad * Valor;
|
|
15530
|
+
}, 0);
|
|
15531
|
+
}, 0);
|
|
15532
|
+
}
|
|
15533
|
+
__name(calcularTotalMaterialValorizacionPeru9112, "calcularTotalMaterialValorizacionPeru9112");
|
|
15534
|
+
|
|
15523
15535
|
// src/constants/collections.ts
|
|
15524
15536
|
var collections = {
|
|
15525
15537
|
PERU_9112_ToaOrder: "PERU_9112_ToaOrder",
|
|
@@ -15594,6 +15606,7 @@ export {
|
|
|
15594
15606
|
buildDataMaterialsRule,
|
|
15595
15607
|
buildKeyMO,
|
|
15596
15608
|
buildTenantCollectionName,
|
|
15609
|
+
calcularTotalMaterialValorizacionPeru9112,
|
|
15597
15610
|
checkAndBuildMaterialsFromStock,
|
|
15598
15611
|
checkMaterialAvailability,
|
|
15599
15612
|
codBalizaAL04,
|