meemup-library 1.5.94 → 1.5.96
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.
|
@@ -196,9 +196,6 @@ export default new class DateTimeController {
|
|
|
196
196
|
return "00:00";
|
|
197
197
|
return result.value;
|
|
198
198
|
}
|
|
199
|
-
// isBetweenTowDate(start: Date, end: Date, date: Date) {
|
|
200
|
-
// return date.getTime() >= start.getTime() && date.getTime() <= end.getTime();
|
|
201
|
-
// }
|
|
202
199
|
firstBiggerThanSecond(first, second) {
|
|
203
200
|
return first.getTime() >= second.getTime();
|
|
204
201
|
}
|
|
@@ -285,7 +285,7 @@ class SimplePreviewController {
|
|
|
285
285
|
for (let index = 0; index < list.length; index++) {
|
|
286
286
|
const row = list[index];
|
|
287
287
|
const sharp = `${row.quantity}× `;
|
|
288
|
-
let product = (template.showProductKitchenName && row.kitchenReceiptName
|
|
288
|
+
let product = (template.showProductKitchenName && typeof row.kitchenReceiptName === "string" && row.kitchenReceiptName.trim().length > 0) ? row.kitchenReceiptName : row.title;
|
|
289
289
|
product = sharp + ((_c = product === null || product === void 0 ? void 0 : product.replace(sharp, '')) === null || _c === void 0 ? void 0 : _c.trim()) + "";
|
|
290
290
|
content += `<tr>
|
|
291
291
|
<td style="font-size:${template.fontSize}px; min-width:40px; width: 40px; text-align: left;"></td>
|
|
@@ -323,7 +323,7 @@ class SimplePreviewController {
|
|
|
323
323
|
cat = "";
|
|
324
324
|
else
|
|
325
325
|
cat = `[${row.categoryTitle.trim()}] `;
|
|
326
|
-
const productName = cat + ((template.showProductKitchenName && row.kitchenReceiptName
|
|
326
|
+
const productName = cat + ((template.showProductKitchenName && typeof row.kitchenReceiptName === "string" && row.kitchenReceiptName.trim().length > 0) ? row.kitchenReceiptName : row.productName).trim();
|
|
327
327
|
const amount = template.showPrices ? MoneyController.format(row.totalAmount, detail.company.currencySymbol) : "";
|
|
328
328
|
content += `<tr style="height: 28px;">
|
|
329
329
|
<td style="font-size:${template.fontSize}px; min-width:40px; width: 40px; text-align: left;">${row.quantity}X</td>
|
|
@@ -541,7 +541,7 @@ class SimplePreviewController {
|
|
|
541
541
|
const unBundledProducts = detail.products.filter(i => !(Array.isArray(i.tags) && i.tags.findIndex(tag => tag.startsWith(BundleIdPreName)) !== -1));
|
|
542
542
|
const list = this.filterByCategoryList(this.sortProduct(unBundledProducts, template.sortProducts), template.printOnlyCertainCategoriesList, template.printOnlyCertainCategories, template.printOnlyCertainProductsList, template.printOnlyCertainProducts);
|
|
543
543
|
list.forEach((row) => {
|
|
544
|
-
const productName = (template.showCategoryTitle ? `[${row.categoryTitle}] ` : "") + ((template.showProductKitchenName && row.kitchenReceiptName
|
|
544
|
+
const productName = (template.showCategoryTitle ? `[${row.categoryTitle}] ` : "") + ((template.showProductKitchenName && typeof row.kitchenReceiptName === "string" && row.kitchenReceiptName.trim().length > 0) ? row.kitchenReceiptName : row.title).trim();
|
|
545
545
|
const amount = template.showPrices ? MoneyController.format(row.totalAmount, detail.company.currencySymbol) : "";
|
|
546
546
|
content += `<tr>
|
|
547
547
|
<td style="font-size:${largeFontSize}px; min-width:40px; width: 40px; text-align: left;">${row.quantity}×</td>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import EnumOrderType from "../../enums/EnumOrderType";
|
|
1
2
|
import IGeneralInformation from "../IGeneralInformation";
|
|
2
3
|
import ITextValue from "../ITextValue";
|
|
3
4
|
import IPointOfSaleOrderTransaction from "../pos/IPointOfSaleOrderTransaction";
|
|
@@ -33,6 +34,11 @@ interface IOrderDetails {
|
|
|
33
34
|
estimatedNetPayout: number;
|
|
34
35
|
deductionDetails: null | ITextValue[];
|
|
35
36
|
printTasks?: IPointOfSalePrintAction[];
|
|
37
|
+
signalParameters?: {
|
|
38
|
+
orderId: number;
|
|
39
|
+
isPreOrder: false;
|
|
40
|
+
orderType: EnumOrderType;
|
|
41
|
+
};
|
|
36
42
|
}
|
|
37
43
|
export default IOrderDetails;
|
|
38
44
|
export declare const initOrderDetails: IOrderDetails;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.96",
|
|
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.5.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.5.96\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|