meemup-library 2.0.1 → 2.0.2
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.
|
@@ -745,7 +745,7 @@ class _PreviewContentController {
|
|
|
745
745
|
content += `<p style="display:block; font-size: ${template.fontSize}px; text-align: left;">Reg. date ${dayjs(detail.order.registrationDate).format(Formats.displayDateTime)}</p>`;
|
|
746
746
|
content += `<p style="display:block; font-size: ${template.fontSize}px; text-align: left;">Order REF:${detail.order.id} , #${detail.order.orderNumber}</p>`;
|
|
747
747
|
content += `<div style="display:flex; flex-direction : row; justify-content: space-between; align-items :center; ">
|
|
748
|
-
<p style="font-size: ${template.fontSize * 2}px; text-align: left;">Total
|
|
748
|
+
<p style="font-size: ${template.fontSize * 2}px; text-align: left;">Total:${afterTotal}</p>
|
|
749
749
|
<p style="font-size: ${template.fontSize * 2}px; text-align: right;">${total}</p>
|
|
750
750
|
</div>`;
|
|
751
751
|
content += `<div style="display:flex; flex-direction : row; justify-content:center; align-items:center; gap : 8px; margin-top:16px; margin-bottom: 16px;">
|
|
@@ -163,7 +163,7 @@ class SimplePreviewController {
|
|
|
163
163
|
const list = this.filterByCategoryList(this.sortProduct(detail.products, template.sortProducts), template.printOnlyCertainCategoriesList, template.printOnlyCertainCategories, template.printOnlyCertainProductsList, template.printOnlyCertainProducts);
|
|
164
164
|
const count = MoneyController.sum(list.map(i => i.quantity));
|
|
165
165
|
return `${this.createDivContainer(template)}
|
|
166
|
-
<p style="display: block; font-size: ${template.fontSize + 10}px; text-align: left; margin-top : 8px;">${count} ITEM</p>
|
|
166
|
+
<p style="display: block; font-size: ${template.fontSize + 10}px; text-align: left; margin-top : 8px;">${count <= 1 ? `${count} ITEM` : `${count} ITEMS`}</p>
|
|
167
167
|
</div>`;
|
|
168
168
|
}
|
|
169
169
|
printTextBeforeProducts(template) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
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.2.0.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.2.0.2\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|