|
|
@ -942,8 +942,8 @@ let supplier_tanks = [];
|
|
|
|
exports.consumption = async (request, reply) => {
|
|
|
|
exports.consumption = async (request, reply) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const { customerId } = request.params;
|
|
|
|
const { customerId } = request.params;
|
|
|
|
const { startDate, stopDate, block } = req.body;
|
|
|
|
const { startDate, stopDate, block } = request.body;
|
|
|
|
let { typeofwater } = req.body;
|
|
|
|
let { typeofwater } = request.body;
|
|
|
|
// Convert typeofwater to lowercase
|
|
|
|
// Convert typeofwater to lowercase
|
|
|
|
typeofwater = typeofwater.toLowerCase();
|
|
|
|
typeofwater = typeofwater.toLowerCase();
|
|
|
|
const start = startDate;
|
|
|
|
const start = startDate;
|
|
|
|