|
|
@ -207,6 +207,7 @@ exports.tankerBooking = async (req, reply) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bookingsData = {
|
|
|
|
bookingsData = {
|
|
|
|
tankerName:tankerName,
|
|
|
|
tankerName:tankerName,
|
|
|
|
customerId:customerId,
|
|
|
|
customerId:customerId,
|
|
|
@ -219,8 +220,8 @@ exports.tankerBooking = async (req, reply) => {
|
|
|
|
supplierId:req.body.supplierId,
|
|
|
|
supplierId:req.body.supplierId,
|
|
|
|
tankName:req.body.tankName,
|
|
|
|
tankName:req.body.tankName,
|
|
|
|
tankLocation:req.body.tankLocation,
|
|
|
|
tankLocation:req.body.tankLocation,
|
|
|
|
latitude: req.body.latitude,
|
|
|
|
// latitude: req.body.latitude,
|
|
|
|
longitude: req.body.longitude,
|
|
|
|
// longitude: req.body.longitude,
|
|
|
|
//date: req.body.date,
|
|
|
|
//date: req.body.date,
|
|
|
|
// time: req.body.time,
|
|
|
|
// time: req.body.time,
|
|
|
|
customerPhone : customerPhone,
|
|
|
|
customerPhone : customerPhone,
|
|
|
@ -253,8 +254,8 @@ exports.tankerBooking = async (req, reply) => {
|
|
|
|
tankersBookingData.supplierPhone = supplierPhone;
|
|
|
|
tankersBookingData.supplierPhone = supplierPhone;
|
|
|
|
tankersBookingData.customerName = customerName;
|
|
|
|
tankersBookingData.customerName = customerName;
|
|
|
|
tankersBookingData.supplierName = supplierName;
|
|
|
|
tankersBookingData.supplierName = supplierName;
|
|
|
|
tankersBookingData.latitude =usertobeInserted.latitude
|
|
|
|
// tankersBookingData.latitude =usertobeInserted.latitude
|
|
|
|
tankersBookingData.longitude=usertobeInserted.longitude
|
|
|
|
// tankersBookingData.longitude=usertobeInserted.longitude
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|