meemup-library 2.1.3 → 2.1.5
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.
|
@@ -74,7 +74,8 @@ class _PrintToolController {
|
|
|
74
74
|
parts.push(`[${item.extraItemOptionTitle.trim()}] `);
|
|
75
75
|
}
|
|
76
76
|
if (showPrice && item.totalAmount !== 0) {
|
|
77
|
-
parts.push(`(${MoneyController.format(item.
|
|
77
|
+
parts.push(`(${MoneyController.format((+(item.price + "")) * item.quantity * (item.pizzaSide === EnumPizzaSide.left || item.pizzaSide === EnumPizzaSide.right ? 0.5 : 1), '')})`);
|
|
78
|
+
// parts.push(`(${MoneyController.format(item.totalAmount, '')})`);
|
|
78
79
|
}
|
|
79
80
|
return parts.join(' ').trim();
|
|
80
81
|
}
|
|
@@ -11,6 +11,7 @@ import EnumPointOfSaleDefaultSaveState from "../../enums/EnumPointOfSaleDefaultS
|
|
|
11
11
|
import EnumPrintCommand from "../../enums/EnumPrintCommand";
|
|
12
12
|
import EnumProductLongPress from "../../enums/EnumProductLongPress";
|
|
13
13
|
import ITextValue from "../ITextValue";
|
|
14
|
+
import Position from "../position";
|
|
14
15
|
import IPointOfSaleElavonTerminalDevice from "./IPointOfSaleElavonTerminalDevice";
|
|
15
16
|
import IPointOfSaleLocalSettingCashDrawer from "./IPointOfSaleLocalSettingCashDrawer";
|
|
16
17
|
import IPointOfSalePrinterConnections from "./IPointOfSalePrinterConnections";
|
|
@@ -103,6 +104,7 @@ interface IPointOfSaleLocalSetting {
|
|
|
103
104
|
categoryId: number;
|
|
104
105
|
groupTitle: string;
|
|
105
106
|
}[];
|
|
107
|
+
customPositions: Record<string, Position>;
|
|
106
108
|
};
|
|
107
109
|
}
|
|
108
110
|
export default IPointOfSaleLocalSetting;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
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.1.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.2.1.5\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|