@open-tender/utils 0.1.70 → 0.1.71

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.
@@ -208,7 +208,8 @@ const makeOrderItemGroups = (optionGroups, isEdit, soldOut = []) => {
208
208
  max: g.max_options,
209
209
  min: g.min_options,
210
210
  name: g.name,
211
- options: options
211
+ options: options,
212
+ quantity: options.reduce((t, o) => t + o.quantity, 0)
212
213
  };
213
214
  return group;
214
215
  });
@@ -196,7 +196,8 @@ const makeOrderItemGroups = (optionGroups, isEdit, soldOut = []) => {
196
196
  max: g.max_options,
197
197
  min: g.min_options,
198
198
  name: g.name,
199
- options: options
199
+ options: options,
200
+ quantity: options.reduce((t, o) => t + o.quantity, 0)
200
201
  };
201
202
  return group;
202
203
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-tender/utils",
3
- "version": "0.1.70",
3
+ "version": "0.1.71",
4
4
  "description": "A library of utils for use with Open Tender applications that utilize our cloud-based Order API.",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",