meemup-library 1.9.1 → 1.9.3
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.
|
@@ -221,6 +221,13 @@ class SimplePreviewController {
|
|
|
221
221
|
<span style="font-size:${fontSize}px; flex: 1; width: 100%; text-align: left; font-weight: bold;">${productName}</span>
|
|
222
222
|
<span style="font-size:${fontSize}px; max-width: 90px; text-align: right;">${price}</span>
|
|
223
223
|
</div>`;
|
|
224
|
+
if (row.discount !== 0) {
|
|
225
|
+
let discountText = `${MoneyController.format(row.discount, detail.company.currencySymbol)} discount`;
|
|
226
|
+
content += `<div style="display:flex; flex-direction:row; align-items:center; justify-content: flex-start; gap: 8px;">
|
|
227
|
+
<span style="font-size:${fontSize}px; min-width:40px; width: 40px; text-align: left;"></span>
|
|
228
|
+
<span style="font-size:${fontSize}px; flex: 1; width: 100%; text-align: left; column-span: 2; padding-left: 24px;">${discountText}</span>
|
|
229
|
+
</div>`;
|
|
230
|
+
}
|
|
224
231
|
if (row.extrasNames) {
|
|
225
232
|
row.extras
|
|
226
233
|
.filter(item => !item.doNotPrintOnReceipt)
|
|
@@ -452,6 +459,13 @@ class SimplePreviewController {
|
|
|
452
459
|
<td style="font-size:${activeFontSize}px; min-width:40px; width: 40px; text-align: left;">${isLarge ? ' ' : ''}</td>
|
|
453
460
|
<td style="font-size:${activeFontSize}px; flex: 1; width: 100%; text-align: left; column-span: 2;">${product}</td>
|
|
454
461
|
</tr>`;
|
|
462
|
+
if (row.discount !== 0) {
|
|
463
|
+
let discountText = `${MoneyController.format(row.discount, detail.company.currencySymbol)} discount`;
|
|
464
|
+
content += `<tr>
|
|
465
|
+
<td style="${isLarge ? 'min-width:40px; width: 40px;' : `font-size:${activeFontSize}px; min-width:40px; width: 40px; text-align: left;`}">${isLarge ? ' ' : ''}</td>
|
|
466
|
+
<td style="font-size:${activeFontSize}px; flex: 1; width: 100%; text-align: left; column-span: 2; padding-left: 24px;">${discountText}</td>
|
|
467
|
+
</tr>`;
|
|
468
|
+
}
|
|
455
469
|
if (row.extrasNames) {
|
|
456
470
|
row.extras
|
|
457
471
|
.filter(item => !item.doNotPrintOnReceipt)
|
|
@@ -492,6 +506,14 @@ class SimplePreviewController {
|
|
|
492
506
|
<td style="font-size:${activeFontSize}px; flex: 1; width: 100%; text-align: left; font-weight: bold;">${productName}</td>
|
|
493
507
|
<td style="font-size:${activeFontSize}px; max-width: 90px; text-align: right;">${amount}</td>
|
|
494
508
|
</tr>`;
|
|
509
|
+
if (row.discount !== 0) {
|
|
510
|
+
let discountText = `${MoneyController.format(row.discount, detail.company.currencySymbol)} discount`;
|
|
511
|
+
content += `<tr>
|
|
512
|
+
<td style="font-size:${activeFontSize}px; min-width:40px; width: 40px; text-align: left;">${isLarge ? ' ' : ''}</td>
|
|
513
|
+
<td style="font-size:${activeFontSize}px; flex: 1; width: 100%; text-align: left;">${discountText}</td>
|
|
514
|
+
<td style="font-size:${activeFontSize}px; max-width: 90px; text-align: right;"></td>
|
|
515
|
+
</tr>`;
|
|
516
|
+
}
|
|
495
517
|
row.extras.filter(i => !i.doNotPrintOnReceipt).forEach(element => {
|
|
496
518
|
const side = this.pizzaSideText(element.pizzaSide, template.skipWholePizzaToppingText);
|
|
497
519
|
const extraText = `${side}${element.quantity}${isLarge ? '× ' : 'x '}${element.extraItemTitle}`.trim();
|
|
@@ -14,7 +14,7 @@ export const initPointOfSaleSetting = {
|
|
|
14
14
|
autoPrintOnNewOrder: false,
|
|
15
15
|
autoPrintOnNewOrderWhen: 1,
|
|
16
16
|
defaultPaymentMethod: EnumPaymentType.Cash,
|
|
17
|
-
defaultOrderType: EnumOrderType.
|
|
17
|
+
defaultOrderType: EnumOrderType.pickup,
|
|
18
18
|
customerMandatory: false,
|
|
19
19
|
checkDeliveryCoverageArea: false,
|
|
20
20
|
mergeProducts: false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
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.9.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.9.3\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|