sigo-package 1.2.96 → 1.2.98
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 +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +16 -0
- package/dist/index.mjs +15 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -623,6 +623,8 @@ declare function getPriceMaterial(CodigoItem: string, dataPriceMaterial: Pick<Pr
|
|
|
623
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
|
@@ -623,6 +623,8 @@ declare function getPriceMaterial(CodigoItem: string, dataPriceMaterial: Pick<Pr
|
|
|
623
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,
|
|
@@ -15445,6 +15446,7 @@ __name(formatNumberSmart, "formatNumberSmart");
|
|
|
15445
15446
|
|
|
15446
15447
|
// src/shared/Utils/formatCurrencyV1.ts
|
|
15447
15448
|
function formatCurrencyV1(num, maximumFractionDigits = 2, symbol = "$") {
|
|
15449
|
+
if (Math.abs(num) < 1e-10) num = 0;
|
|
15448
15450
|
const options = {
|
|
15449
15451
|
minimumFractionDigits: 0,
|
|
15450
15452
|
maximumFractionDigits
|
|
@@ -15455,6 +15457,7 @@ __name(formatCurrencyV1, "formatCurrencyV1");
|
|
|
15455
15457
|
|
|
15456
15458
|
// src/shared/Utils/formatPercentageV1.ts
|
|
15457
15459
|
function formatPercentageV1(num, maximumFractionDigits = 2) {
|
|
15460
|
+
if (Math.abs(num) < 1e-10) num = 0;
|
|
15458
15461
|
const options = {
|
|
15459
15462
|
minimumFractionDigits: 0,
|
|
15460
15463
|
maximumFractionDigits
|
|
@@ -15465,6 +15468,7 @@ __name(formatPercentageV1, "formatPercentageV1");
|
|
|
15465
15468
|
|
|
15466
15469
|
// src/shared/Utils/formatNumberV1.ts
|
|
15467
15470
|
function formatNumberV1(num, maximumFractionDigits = 2) {
|
|
15471
|
+
if (Math.abs(num) < 1e-10) num = 0;
|
|
15468
15472
|
const options = {
|
|
15469
15473
|
minimumFractionDigits: 0,
|
|
15470
15474
|
maximumFractionDigits
|
|
@@ -15675,6 +15679,17 @@ function getPriceMaterial(CodigoItem, dataPriceMaterial) {
|
|
|
15675
15679
|
}
|
|
15676
15680
|
__name(getPriceMaterial, "getPriceMaterial");
|
|
15677
15681
|
|
|
15682
|
+
// src/Programados/calcularTotalMaterialValorizacionPeru9112.ts
|
|
15683
|
+
function calcularTotalMaterialValorizacionPeru9112(valorizaciones, dataPriceMaterial) {
|
|
15684
|
+
return valorizaciones.reduce((ac, val) => {
|
|
15685
|
+
return ac += val.MaterialesUtilizados.reduce((acc, mu) => {
|
|
15686
|
+
const { Valor } = getPriceMaterial(mu.Codigo, dataPriceMaterial);
|
|
15687
|
+
return acc += mu.Cantidad * Valor;
|
|
15688
|
+
}, 0);
|
|
15689
|
+
}, 0);
|
|
15690
|
+
}
|
|
15691
|
+
__name(calcularTotalMaterialValorizacionPeru9112, "calcularTotalMaterialValorizacionPeru9112");
|
|
15692
|
+
|
|
15678
15693
|
// src/constants/collections.ts
|
|
15679
15694
|
var collections = {
|
|
15680
15695
|
PERU_9112_ToaOrder: "PERU_9112_ToaOrder",
|
|
@@ -15750,6 +15765,7 @@ __name(getDBName, "getDBName");
|
|
|
15750
15765
|
buildDataMaterialsRule,
|
|
15751
15766
|
buildKeyMO,
|
|
15752
15767
|
buildTenantCollectionName,
|
|
15768
|
+
calcularTotalMaterialValorizacionPeru9112,
|
|
15753
15769
|
checkAndBuildMaterialsFromStock,
|
|
15754
15770
|
checkMaterialAvailability,
|
|
15755
15771
|
codBalizaAL04,
|
package/dist/index.mjs
CHANGED
|
@@ -15291,6 +15291,7 @@ __name(formatNumberSmart, "formatNumberSmart");
|
|
|
15291
15291
|
|
|
15292
15292
|
// src/shared/Utils/formatCurrencyV1.ts
|
|
15293
15293
|
function formatCurrencyV1(num, maximumFractionDigits = 2, symbol = "$") {
|
|
15294
|
+
if (Math.abs(num) < 1e-10) num = 0;
|
|
15294
15295
|
const options = {
|
|
15295
15296
|
minimumFractionDigits: 0,
|
|
15296
15297
|
maximumFractionDigits
|
|
@@ -15301,6 +15302,7 @@ __name(formatCurrencyV1, "formatCurrencyV1");
|
|
|
15301
15302
|
|
|
15302
15303
|
// src/shared/Utils/formatPercentageV1.ts
|
|
15303
15304
|
function formatPercentageV1(num, maximumFractionDigits = 2) {
|
|
15305
|
+
if (Math.abs(num) < 1e-10) num = 0;
|
|
15304
15306
|
const options = {
|
|
15305
15307
|
minimumFractionDigits: 0,
|
|
15306
15308
|
maximumFractionDigits
|
|
@@ -15311,6 +15313,7 @@ __name(formatPercentageV1, "formatPercentageV1");
|
|
|
15311
15313
|
|
|
15312
15314
|
// src/shared/Utils/formatNumberV1.ts
|
|
15313
15315
|
function formatNumberV1(num, maximumFractionDigits = 2) {
|
|
15316
|
+
if (Math.abs(num) < 1e-10) num = 0;
|
|
15314
15317
|
const options = {
|
|
15315
15318
|
minimumFractionDigits: 0,
|
|
15316
15319
|
maximumFractionDigits
|
|
@@ -15521,6 +15524,17 @@ function getPriceMaterial(CodigoItem, dataPriceMaterial) {
|
|
|
15521
15524
|
}
|
|
15522
15525
|
__name(getPriceMaterial, "getPriceMaterial");
|
|
15523
15526
|
|
|
15527
|
+
// src/Programados/calcularTotalMaterialValorizacionPeru9112.ts
|
|
15528
|
+
function calcularTotalMaterialValorizacionPeru9112(valorizaciones, dataPriceMaterial) {
|
|
15529
|
+
return valorizaciones.reduce((ac, val) => {
|
|
15530
|
+
return ac += val.MaterialesUtilizados.reduce((acc, mu) => {
|
|
15531
|
+
const { Valor } = getPriceMaterial(mu.Codigo, dataPriceMaterial);
|
|
15532
|
+
return acc += mu.Cantidad * Valor;
|
|
15533
|
+
}, 0);
|
|
15534
|
+
}, 0);
|
|
15535
|
+
}
|
|
15536
|
+
__name(calcularTotalMaterialValorizacionPeru9112, "calcularTotalMaterialValorizacionPeru9112");
|
|
15537
|
+
|
|
15524
15538
|
// src/constants/collections.ts
|
|
15525
15539
|
var collections = {
|
|
15526
15540
|
PERU_9112_ToaOrder: "PERU_9112_ToaOrder",
|
|
@@ -15595,6 +15609,7 @@ export {
|
|
|
15595
15609
|
buildDataMaterialsRule,
|
|
15596
15610
|
buildKeyMO,
|
|
15597
15611
|
buildTenantCollectionName,
|
|
15612
|
+
calcularTotalMaterialValorizacionPeru9112,
|
|
15598
15613
|
checkAndBuildMaterialsFromStock,
|
|
15599
15614
|
checkMaterialAvailability,
|
|
15600
15615
|
codBalizaAL04,
|