meemup-library 1.9.7 → 1.9.9
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.
|
@@ -416,7 +416,7 @@ class SimplePreviewController {
|
|
|
416
416
|
<thead style="border-bottom: 1px solid #000000;">
|
|
417
417
|
<tr style="${isLarge ? '' : 'height: 28px;'}">
|
|
418
418
|
<th style="font-size:${template.fontSize}px;min-width:40px; width: 40px; text-align: left; font-weight: bold;">#</th>
|
|
419
|
-
<th style="font-size:${template.fontSize}px;flex: 1; width: 100%; text-align: left; font-weight: bold; ">
|
|
419
|
+
<th style="font-size:${template.fontSize}px;flex: 1; width: 100%; text-align: left; font-weight: bold; ">Items</th>
|
|
420
420
|
<th style="font-size:${template.fontSize}px;max-width: 90px; text-align: right; font-weight: bold;">Price</th>
|
|
421
421
|
</tr>
|
|
422
422
|
</thead>
|
|
@@ -556,6 +556,22 @@ class SimplePreviewController {
|
|
|
556
556
|
show: detail.order.thirdPartyDriverTipAmount > 0
|
|
557
557
|
}
|
|
558
558
|
];
|
|
559
|
+
(detail.order.items || [])
|
|
560
|
+
.filter(i => i.amount > 0 && i.type !== EnumFeeType.BundleProduct)
|
|
561
|
+
.forEach(item => {
|
|
562
|
+
rowsConfig.push({
|
|
563
|
+
label: item.text,
|
|
564
|
+
val: item.amount,
|
|
565
|
+
show: item.amount > 0
|
|
566
|
+
});
|
|
567
|
+
});
|
|
568
|
+
if (detail.order.roundedAmount > 0) {
|
|
569
|
+
rowsConfig.push({
|
|
570
|
+
label: "Round cash amount",
|
|
571
|
+
val: detail.order.roundedAmount,
|
|
572
|
+
show: true
|
|
573
|
+
});
|
|
574
|
+
}
|
|
559
575
|
rowsConfig.forEach(row => {
|
|
560
576
|
if (row.show) {
|
|
561
577
|
content += `<tr style="border-top: 1px dashed #000000; ${isLarge ? 'margin: 4px 0;' : 'padding: 4px 0;'}">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.9",
|
|
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.9\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|