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.
@@ -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(8);
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 productName = (template.showCategoryTitle ? `[${row.categoryTitle}] ` : "") + ((template.showProductKitchenName && row.kitchenReceiptName.trim().length > 0) ? row.kitchenReceiptName : row.productName);
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>
@@ -21,5 +21,6 @@ interface IPointOfSaleOrderItem {
21
21
  stampCardBonusItem: boolean;
22
22
  taxable: boolean | null;
23
23
  productName: string;
24
+ tags: string[] | null;
24
25
  }
25
26
  export default IPointOfSaleOrderItem;
@@ -4,5 +4,6 @@ export default interface IPointOfSaleSaveOrderProduct {
4
4
  productId: number;
5
5
  quantity: number;
6
6
  note: string;
7
+ taqs: string[];
7
8
  extraItems: IPointOfSaleSaveOrderProductExtra[];
8
9
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meemup-library",
3
- "version": "1.4.59",
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.59\" && git push origin "
14
+ "commit": "git add . && git commit -m \"version.1.4.61\" && git push origin "
15
15
  },
16
16
  "files": [
17
17
  "/dist"