@react-pakistan/util-functions 1.22.64 → 1.22.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -92,11 +92,9 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
|
|
|
92
92
|
data: mappedServices,
|
|
93
93
|
},
|
|
94
94
|
},
|
|
95
|
-
products: {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
},
|
|
99
|
-
},
|
|
95
|
+
// products: {
|
|
96
|
+
// connect: products,
|
|
97
|
+
// },
|
|
100
98
|
},
|
|
101
99
|
include: {
|
|
102
100
|
products: true,
|
|
@@ -205,22 +203,28 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
|
|
|
205
203
|
// console.log('err', err);
|
|
206
204
|
}
|
|
207
205
|
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
206
|
+
if (quoteInvoice) {
|
|
207
|
+
console.log('=>>>>>', quoteInvoice);
|
|
208
|
+
// products.map(async (product) => {
|
|
209
|
+
yield prisma.quoteInvoice.update({
|
|
210
|
+
where: {
|
|
211
|
+
id: quoteInvoice.id,
|
|
212
|
+
},
|
|
213
|
+
data: {
|
|
214
|
+
products: {
|
|
215
|
+
connect: products,
|
|
216
|
+
},
|
|
217
|
+
// quoteInvoiceId: quoteInvoice?.id,
|
|
218
|
+
// productId: product.id,
|
|
219
|
+
// productQuantity: product.productQuantity,
|
|
220
|
+
},
|
|
221
|
+
include: {
|
|
222
|
+
product: true,
|
|
223
|
+
quoteInvoice: true,
|
|
224
|
+
},
|
|
225
|
+
// });
|
|
226
|
+
});
|
|
227
|
+
}
|
|
224
228
|
return quoteInvoice;
|
|
225
229
|
});
|
|
226
230
|
exports.postQuoteInvoice = postQuoteInvoice;
|