diff --git a/src/controllers/storeController.js b/src/controllers/storeController.js index 48a3068b..f7d5bd65 100644 --- a/src/controllers/storeController.js +++ b/src/controllers/storeController.js @@ -1560,7 +1560,7 @@ exports.createquotationforSensor = async (req, reply) => { message: 'Quotation for sensors created successfully.', data: savedQuotation, }); - + } catch (error) { console.error('Error creating quotation:', error); reply.code(500).send({ @@ -1695,6 +1695,7 @@ exports.getallquotationdata = async (req, reply) => { return acc; }, {}); + // Attach customer details to quotations const enrichedQuotations = quotations.map((quotation) => ({ ...quotation,