@react-pakistan/util-functions 1.22.61 → 1.22.63
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,6 +92,11 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
|
|
|
92
92
|
data: mappedServices,
|
|
93
93
|
},
|
|
94
94
|
},
|
|
95
|
+
products: {
|
|
96
|
+
create: {
|
|
97
|
+
data: products,
|
|
98
|
+
},
|
|
99
|
+
},
|
|
95
100
|
},
|
|
96
101
|
include: {
|
|
97
102
|
products: true,
|
|
@@ -200,22 +205,22 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
|
|
|
200
205
|
// console.log('err', err);
|
|
201
206
|
}
|
|
202
207
|
}
|
|
203
|
-
if (quoteInvoice) {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
}
|
|
208
|
+
// if (quoteInvoice) {
|
|
209
|
+
// console.log('=>>>>>', quoteInvoice);
|
|
210
|
+
// products.map(async (product) => {
|
|
211
|
+
// await prisma.quotesInvoicesOnStellarProducts.create({
|
|
212
|
+
// data: {
|
|
213
|
+
// quoteInvoiceId: quoteInvoice?.id,
|
|
214
|
+
// productId: product.id,
|
|
215
|
+
// productQuantity: product.productQuantity,
|
|
216
|
+
// },
|
|
217
|
+
// include: {
|
|
218
|
+
// product: true,
|
|
219
|
+
// quoteInvoice: true,
|
|
220
|
+
// },
|
|
221
|
+
// });
|
|
222
|
+
// });
|
|
223
|
+
// }
|
|
219
224
|
return quoteInvoice;
|
|
220
225
|
});
|
|
221
226
|
exports.postQuoteInvoice = postQuoteInvoice;
|