meemup-library 1.3.89 → 1.3.91
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;">
|
|
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} ${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 = "
|
|
63
|
+
formated = "REG. " + moment(order.registrationDate).format(dateFormat); // order.registrationDate;
|
|
61
64
|
break;
|
|
62
65
|
case EnumOrderDateTimePrintModeType.ReadyTime:
|
|
63
|
-
formated = "
|
|
66
|
+
formated = "RDY. " + moment(order.orderReadyTime).format(dateFormat);
|
|
64
67
|
break;
|
|
65
68
|
case EnumOrderDateTimePrintModeType.WishTime:
|
|
66
|
-
formated = "
|
|
69
|
+
formated = "DUE. " + moment(order.desiredDate).format(dateFormat); // order.desiredDate;
|
|
67
70
|
break;
|
|
68
71
|
case EnumOrderDateTimePrintModeType.PreparationStartTime:
|
|
69
|
-
formated = "
|
|
72
|
+
formated = "PRE. " + moment(order.orderPreparationStartTime).format(dateFormat);
|
|
70
73
|
break;
|
|
71
74
|
default:
|
|
72
|
-
formated = "
|
|
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>`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.91",
|
|
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.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.3.91 \" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|