ashok 1 year ago
commit 4a2065df9d

@ -384,16 +384,16 @@ exports.getTanklevels = async (req, reply) => {
}
// Summing up the total water levels and capacities
if (tank.tankLocation === 'sump' && tank.typeOfWater === 'Drinking Water') {
if (tank.tankLocation === 'sump' && tank.typeOfWater === 'drinking') {
sumSumpDrinkingWater += waterlevel;
sumSumpDrinkingWaterCapacity += capacity;
} else if (tank.tankLocation === 'overhead' && tank.typeOfWater === 'Drinking Water') {
} else if (tank.tankLocation === 'overhead' && tank.typeOfWater === 'drinking') {
sumOverheadDrinkingWater += waterlevel;
sumOverheadDrinkingWaterCapacity += capacity;
} else if (tank.tankLocation === 'sump' && tank.typeOfWater === 'Bore Water') {
} else if (tank.tankLocation === 'sump' && tank.typeOfWater === 'bore') {
sumSumpBoreWater += waterlevel;
sumSumpBoreWaterCapacity += capacity;
} else if (tank.tankLocation === 'overhead' && tank.typeOfWater === 'Bore Water') {
} else if (tank.tankLocation === 'overhead' && tank.typeOfWater === 'bore') {
sumOverheadBoreWater += waterlevel;
sumOverheadBoreWaterCapacity += capacity;
}

Loading…
Cancel
Save