|
|
|
@ -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,
|
|
|
|
|