meemup-library 1.4.59 → 1.4.61
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.
- package/dist/controllers/PreviewContentController.js +4 -2
- package/dist/controllers/ProductModalController.js +2 -1
- package/dist/controllers/SimplePreviewController.js +6 -1
- package/dist/interfaces/pos/IPointOfSaleOrderItem.d.ts +1 -0
- package/dist/interfaces/pos/IPointOfSaleSaveOrderProduct.d.ts +1 -0
- package/package.json +2 -2
|
@@ -731,9 +731,11 @@ export default new class PreviewContentController {
|
|
|
731
731
|
records.map(record => {
|
|
732
732
|
//moment(record.dateTime).format(Formats.printedAt)
|
|
733
733
|
content += SimplePreviewController.createTextValueSpaceBetween(formatDate(record.dateTime), MoneyController.format(record.amount, currency));
|
|
734
|
-
content += SimplePreviewController.createText(record.reason);
|
|
735
|
-
content += SimplePreviewController.printSpace(
|
|
734
|
+
content += SimplePreviewController.createText(record.reason, 'left', false);
|
|
735
|
+
content += SimplePreviewController.printSpace(16);
|
|
736
736
|
});
|
|
737
|
+
content += SimplePreviewController.printSolidLine();
|
|
738
|
+
content += SimplePreviewController.printSpace(4);
|
|
737
739
|
content += SimplePreviewController.createTextValueSpaceBetween('Total:', MoneyController.format(sum, currency), 18);
|
|
738
740
|
content += SimplePreviewController.printSpace(20);
|
|
739
741
|
content += SimplePreviewController.footer();
|
|
@@ -152,7 +152,8 @@ export default new class ProductModalController {
|
|
|
152
152
|
additionalText: "",
|
|
153
153
|
stampCardBonusItem: false,
|
|
154
154
|
taxable: product.taxable,
|
|
155
|
-
productName: product.name
|
|
155
|
+
productName: product.name,
|
|
156
|
+
tags: product.tags,
|
|
156
157
|
};
|
|
157
158
|
}
|
|
158
159
|
productName(product) {
|
|
@@ -214,7 +214,12 @@ class SimplePreviewController {
|
|
|
214
214
|
<tbody>
|
|
215
215
|
`;
|
|
216
216
|
detail.products.forEach((row) => {
|
|
217
|
-
let
|
|
217
|
+
let cat = "";
|
|
218
|
+
if (!template.showCategoryTitle || !row.categoryTitle || row.categoryTitle.trim().length === 0)
|
|
219
|
+
cat = "";
|
|
220
|
+
else
|
|
221
|
+
cat = `[${row.categoryTitle.trim()}] `;
|
|
222
|
+
let productName = cat + ((template.showProductKitchenName && row.kitchenReceiptName.trim().length > 0) ? row.kitchenReceiptName : row.productName);
|
|
218
223
|
let amount = template.showPrices ? MoneyController.format(row.totalAmount, detail.company.currencySymbol) : "";
|
|
219
224
|
content += `<tr style="height: 28px;">
|
|
220
225
|
<td style="font-size:${template.fontSize}px; min-width:40px; width: 40px; text-align: left;">${row.quantity}X</td>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.61",
|
|
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.4.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.4.61\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|