Skip to content

Commit

Permalink
Merge pull request #278 from odisha-muktasoft/PFM-5803-FIX
Browse files Browse the repository at this point in the history
PFM-5803 : updating the roundoff code for no of unit in rows
  • Loading branch information
Tulika-eGov authored Mar 7, 2024
2 parents 9566572 + 78e19e7 commit 33b5319
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ const MeasureCard = React.memo(({ columns, fields = [], register, setValue, tabl
if (initialValue(element)) {
calculatedValue = 0;
}
state[findIndex].noOfunit = calculatedValue ? calculatedValue?.toFixed(4) : 0;
state[findIndex].noOfunit = calculatedValue ? (Math.round(calculatedValue * 10000) / 10000).toFixed(4) : 0;
if(mode === "CREATE") state[findIndex]["numItems"] = calculatedValue;
state[findIndex].rowAmount = unitRate * calculatedValue || 0;

Expand Down

0 comments on commit 33b5319

Please sign in to comment.