meemup-library 1.3.89 → 1.3.90

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.
@@ -251,7 +251,7 @@ export default new class {
251
251
 
252
252
  ${order.estimatedTime ? `<p style="display: block; margin: 5px 0; line-height: 1;">Estimated Time : <strong>${(_a = order.estimatedTime) === null || _a === void 0 ? void 0 : _a.substring(0, order.estimatedTime.length - 3)}</strong></p>` : ""}
253
253
 
254
- <p style="display:block; margin: 5px 0; line-height: 1;">Reg. Date:<strong>${this.formatDateTime(order.registrationDate)}</strong> </p>
254
+ <p style="display:block; margin: 5px 0; line-height: 1;">REG. Date:<strong>${this.formatDateTime(order.registrationDate)}</strong> </p>
255
255
 
256
256
  <div style="border-top: 1px solid black;">
257
257
 
@@ -52,24 +52,27 @@ class SimplePreviewController {
52
52
  content += `<div style="display:grid; grid-template-columns: repeat(1 , 1fr);">`;
53
53
  let summary = `<strong style="font-size: ${largeFontSize}; text-align: center;">#${order.orderNumber}&emsp;${order.orderTypeString}</strong>`;
54
54
  content += summary;
55
+ if (order.orderType === EnumOrderType.dining && order.tableId !== null) {
56
+ content += `<strong style="font-size: ${largeFontSize}; text-align: center;">Table #${order.tableNo}</strong>`;
57
+ }
55
58
  if (template.orderDesiredDateTimeVisibility) {
56
59
  let formated = "";
57
60
  let dateFormat = template.orderDateTimeFormat.replace("tt", "A");
58
61
  switch (template.orderDateTimeMode) {
59
62
  case EnumOrderDateTimePrintModeType.RegistrationDate:
60
- formated = "Reg. " + moment(order.registrationDate).format(dateFormat); // order.registrationDate;
63
+ formated = "REG. " + moment(order.registrationDate).format(dateFormat); // order.registrationDate;
61
64
  break;
62
65
  case EnumOrderDateTimePrintModeType.ReadyTime:
63
- formated = "Rdy. " + moment(order.orderReadyTime).format(dateFormat);
66
+ formated = "RDY. " + moment(order.orderReadyTime).format(dateFormat);
64
67
  break;
65
68
  case EnumOrderDateTimePrintModeType.WishTime:
66
- formated = "Eat. " + moment(order.desiredDate).format(dateFormat); // order.desiredDate;
69
+ formated = "DUE. " + moment(order.desiredDate).format(dateFormat); // order.desiredDate;
67
70
  break;
68
71
  case EnumOrderDateTimePrintModeType.PreparationStartTime:
69
- formated = "Pre. " + moment(order.orderPreparationStartTime).format(dateFormat);
72
+ formated = "PRE. " + moment(order.orderPreparationStartTime).format(dateFormat);
70
73
  break;
71
74
  default:
72
- formated = "Eat. " + moment(order.desiredDate).format(dateFormat); // order.desiredDate;
75
+ formated = "DUE. " + moment(order.desiredDate).format(dateFormat); // order.desiredDate;
73
76
  break;
74
77
  }
75
78
  content += `<strong style="display:block; font-size: ${largeFontSize}; text-align: center;">${formated}</strong>`;
@@ -138,7 +141,7 @@ class SimplePreviewController {
138
141
  content += `<p style="display:block; font-size: ${template.fontSize}px; text-align: left;">${detail.order.orderTypeString}:&emsp;on ${moment(detail.order.desiredDate).format("hh:mm A")}</p>`;
139
142
  if (typeof detail.order.estimatedTime === "string" && detail.order.estimatedTime.length > 0)
140
143
  content += `<p style="display: block; font-size: ${template.fontSize}px; text-align:left;">Est. Time:&nbsp;&ensp;&emsp;${(_a = detail.order.estimatedTime) === null || _a === void 0 ? void 0 : _a.substring(0, 5)}</p>`;
141
- content += `<p style="display: block; font-size: ${template.fontSize}px; text-align:left;">Reg. Time:&nbsp;&ensp;&emsp;${moment(detail.order.registrationDate).format("YYYY-MM-DD hh:mm A")}</p>`;
144
+ content += `<p style="display: block; font-size: ${template.fontSize}px; text-align:left;">REG. Time:&nbsp;&ensp;&emsp;${moment(detail.order.registrationDate).format("YYYY-MM-DD hh:mm A")}</p>`;
142
145
  content += `</div>`;
143
146
  return content;
144
147
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.3.89",
3
+ "version": "1.3.90",
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.3.89 \" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.3.90 \" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"