diff --git a/src/controllers/tanksController.js b/src/controllers/tanksController.js index 83d4ce20..42dff0dc 100644 --- a/src/controllers/tanksController.js +++ b/src/controllers/tanksController.js @@ -7497,6 +7497,12 @@ exports.adjustMeasurement = async (req, reply) => { // Calculate percentage difference const percentageDifference = Math.abs(originalPercentage - calculatedPercentage); + let message; + if (percentageDifference > 0) { + message = "Tank details and measurement details match."; + } else { + message = "Please check the tank measurement."; + } reply.send({ status_code: 200, @@ -7511,7 +7517,7 @@ exports.adjustMeasurement = async (req, reply) => { originalPercentage: originalPercentage.toFixed(2) + "%", calculatedPercentage: calculatedPercentage.toFixed(2) + "%", percentageDifference: percentageDifference.toFixed(2) + "%", - message: "Calculation completed. No updates were made." + message } });