@react-pakistan/util-functions 1.22.84 → 1.22.85

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.
@@ -107,12 +107,12 @@ const postQuoteInvoice = (_d) => __awaiter(void 0, [_d], void 0, function* ({ ca
107
107
  services: true,
108
108
  },
109
109
  });
110
- yield (products === null || products === void 0 ? void 0 : products.forEach((_f) => __awaiter(void 0, [_f], void 0, function* ({ id: _id }) {
110
+ yield (products === null || products === void 0 ? void 0 : products.forEach((_f) => __awaiter(void 0, [_f], void 0, function* ({ id: _id, productQuantity }) {
111
111
  yield prisma.quotesInvoicesOnStellarProducts.create({
112
112
  data: {
113
113
  quoteInvoiceId: quoteInvoice === null || quoteInvoice === void 0 ? void 0 : quoteInvoice.id,
114
114
  productId: _id,
115
- // productQuantity,
115
+ productQuantity,
116
116
  },
117
117
  include: {
118
118
  quoteInvoice: true,
@@ -120,16 +120,6 @@ const postQuoteInvoice = (_d) => __awaiter(void 0, [_d], void 0, function* ({ ca
120
120
  },
121
121
  });
122
122
  })));
123
- // await prisma.quotesInvoicesOnStellarProducts.create({
124
- // data: {
125
- // quoteInvoiceId: quoteInvoice.id,
126
- // productId: productIds[0].id,
127
- // },
128
- // include: {
129
- // product: true,
130
- // quoteInvoice: true,
131
- // },
132
- // });
133
123
  }
134
124
  else {
135
125
  quoteInvoice = yield prisma.quoteInvoice.create({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-pakistan/util-functions",
3
- "version": "1.22.84",
3
+ "version": "1.22.85",
4
4
  "description": "A library of all util functions",
5
5
  "main": "index.js",
6
6
  "scripts": {