@react-pakistan/util-functions 1.22.59 → 1.22.60
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.
|
@@ -97,19 +97,6 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
|
|
|
97
97
|
products: true,
|
|
98
98
|
},
|
|
99
99
|
});
|
|
100
|
-
products.map((product) => __awaiter(void 0, void 0, void 0, function* () {
|
|
101
|
-
yield prisma.quotesInvoicesOnStellarProducts.create({
|
|
102
|
-
data: {
|
|
103
|
-
quoteInvoiceId: quoteInvoice === null || quoteInvoice === void 0 ? void 0 : quoteInvoice.id,
|
|
104
|
-
productId: product.id,
|
|
105
|
-
productQuantity: product.productQuantity,
|
|
106
|
-
},
|
|
107
|
-
include: {
|
|
108
|
-
product: true,
|
|
109
|
-
quoteInvoice: true,
|
|
110
|
-
},
|
|
111
|
-
});
|
|
112
|
-
}));
|
|
113
100
|
// await prisma.quotesInvoicesOnStellarProducts.create({
|
|
114
101
|
// data: {
|
|
115
102
|
// quoteInvoiceId: quoteInvoice.id,
|
|
@@ -158,6 +145,19 @@ products, phone, lastName, firstName, email, country, city, address, prisma, })
|
|
|
158
145
|
});
|
|
159
146
|
}
|
|
160
147
|
}
|
|
148
|
+
products.map((product) => __awaiter(void 0, void 0, void 0, function* () {
|
|
149
|
+
yield prisma.quotesInvoicesOnStellarProducts.create({
|
|
150
|
+
data: {
|
|
151
|
+
quoteInvoiceId: quoteInvoice === null || quoteInvoice === void 0 ? void 0 : quoteInvoice.id,
|
|
152
|
+
productId: product.id,
|
|
153
|
+
productQuantity: product.productQuantity,
|
|
154
|
+
},
|
|
155
|
+
include: {
|
|
156
|
+
product: true,
|
|
157
|
+
quoteInvoice: true,
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
}));
|
|
161
161
|
if (mode === 'Edit') {
|
|
162
162
|
try {
|
|
163
163
|
const foundQuoteInvoice = yield prisma.quoteInvoice.findUnique({
|