|
|
@ -4417,7 +4417,7 @@ exports.consumptionofparticulartank = async (request, reply) => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const { customerId } = request.params;
|
|
|
|
const { customerId } = request.params;
|
|
|
|
const { startDate, stopDate, tankName, tankLocation, block } = request.body;
|
|
|
|
const { startDate, stopDate, tankName, tankLocation, block } = request.body;
|
|
|
|
|
|
|
|
console.log("hii")
|
|
|
|
// Convert input dates into strings in the same format as stored in the database
|
|
|
|
// Convert input dates into strings in the same format as stored in the database
|
|
|
|
const start = moment(startDate, "DD-MMM-YYYY - HH:mm").format("DD-MMM-YYYY - HH:mm");
|
|
|
|
const start = moment(startDate, "DD-MMM-YYYY - HH:mm").format("DD-MMM-YYYY - HH:mm");
|
|
|
|
const end = moment(stopDate, "DD-MMM-YYYY - HH:mm").format("DD-MMM-YYYY - HH:mm");
|
|
|
|
const end = moment(stopDate, "DD-MMM-YYYY - HH:mm").format("DD-MMM-YYYY - HH:mm");
|
|
|
|