meemup-library 1.6.9 → 1.7.1

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.
@@ -315,7 +315,7 @@ class SimplePreviewController {
315
315
  const TagController = TagToolController.getInstance();
316
316
  let flag = true;
317
317
  const seats = TagController.allSeatInOrderDetail(detail.products);
318
- if (detail.order.orderType === EnumOrderType.dining && detail.order.tableId !== null && seats.length > 0) {
318
+ if (template.printProductsBySeat && detail.order.orderType === EnumOrderType.dining && detail.order.tableId !== null && seats.length > 0) {
319
319
  return this.printProductInDineIn(template, detail);
320
320
  }
321
321
  else {
@@ -553,7 +553,7 @@ class SimplePreviewController {
553
553
  const TagController = TagToolController.getInstance();
554
554
  let flag = true;
555
555
  const seats = TagController.allSeatInOrderDetail(detail.products);
556
- if (detail.order.orderType === EnumOrderType.dining && detail.order.tableId !== null && seats.length > 0) {
556
+ if (template.printProductsBySeat && detail.order.orderType === EnumOrderType.dining && detail.order.tableId !== null && seats.length > 0) {
557
557
  return this.printProductInDineIn(template, detail);
558
558
  }
559
559
  else {
@@ -158,7 +158,9 @@ class TagToolController {
158
158
  return this.allTagsWithoutSeats(tags).filter(i => !i.startsWith(TagToolController.SharingTypeTagPreName));
159
159
  }
160
160
  allTagsWithoutBundles(tags) {
161
- return this.allTagsWithoutSeats(tags).filter(i => !i.startsWith(TagToolController.SharingTypeTagPreName));
161
+ if (!Array.isArray(tags))
162
+ return [];
163
+ return tags.filter(i => !i.startsWith(TagToolController.BundleGroupPreName) && !i.startsWith(TagToolController.BundleIdPreName) && !i.startsWith(TagToolController.BundleProductQuantityPreName) && !i.startsWith(TagToolController.BundleFeeKey));
162
164
  }
163
165
  createSeatLabel(num) {
164
166
  return `${TagToolController.SeatTagPreName}${num}`;
@@ -10,6 +10,7 @@ declare enum EnumPaymentType {
10
10
  StripeTerminal = 8,
11
11
  TapToPay = 9,
12
12
  DebitMachine = 10,
13
- MultipleMethods = 11
13
+ MultipleMethods = 11,
14
+ PoyntTerminal = 12
14
15
  }
15
16
  export default EnumPaymentType;
@@ -12,6 +12,7 @@ var EnumPaymentType;
12
12
  EnumPaymentType[EnumPaymentType["TapToPay"] = 9] = "TapToPay";
13
13
  EnumPaymentType[EnumPaymentType["DebitMachine"] = 10] = "DebitMachine";
14
14
  EnumPaymentType[EnumPaymentType["MultipleMethods"] = 11] = "MultipleMethods";
15
+ EnumPaymentType[EnumPaymentType["PoyntTerminal"] = 12] = "PoyntTerminal";
15
16
  })(EnumPaymentType || (EnumPaymentType = {}));
16
17
  export default EnumPaymentType;
17
18
  /*
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.6.9",
3
+ "version": "1.7.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -11,7 +11,7 @@
11
11
  "remove:one": "rimraf dist",
12
12
  "remove:two": "rimraf ./src/dist",
13
13
  "test": "echo \"Error: no test specified\" && exit 1",
14
- "commit": "git add . && git commit -m \"version.1.6.9\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.7.1\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"