|
|
|
@ -7547,7 +7547,7 @@ exports.adjustMeasurement = async (req, reply) => {
|
|
|
|
|
// Calculate percentage difference
|
|
|
|
|
const percentageDifference = Math.abs(originalPercentage - calculatedPercentage);
|
|
|
|
|
let message;
|
|
|
|
|
if (percentageDifference > 0) {
|
|
|
|
|
if (percentageDifference === originalPercentage) {
|
|
|
|
|
message = "Tank details and measurement details match.";
|
|
|
|
|
} else {
|
|
|
|
|
message = "Please check the tank measurement.";
|
|
|
|
|