diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/Measurement/src/components/MeasureCard.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/Measurement/src/components/MeasureCard.js index 54ca68c227..7342521705 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/Measurement/src/components/MeasureCard.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/Measurement/src/components/MeasureCard.js @@ -101,7 +101,7 @@ const MeasureCard = React.memo(({ columns, fields = [], register, setValue, tabl if (initialValue(element)) { calculatedValue = 0; } - state[findIndex].noOfunit = calculatedValue ? (Math.ceil(calculatedValue * 10000) / 10000).toFixed(4) : 0; + state[findIndex].noOfunit = calculatedValue ? ((calculatedValue.toFixed(5).slice(-1) === '5') ? (Math.ceil(calculatedValue * 10000) / 10000).toFixed(4) : calculatedValue.toFixed(4)) : 0; if(mode === "CREATE") state[findIndex]["numItems"] = calculatedValue; state[findIndex].rowAmount = unitRate * calculatedValue || 0;