meemup-library 1.5.7 → 1.5.9
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/LabelPreviewController.js +1 -1
- package/dist/controllers/PreviewContentController.d.ts +4 -18
- package/dist/controllers/PreviewContentController.js +609 -399
- package/dist/controllers/SimplePreviewController.d.ts +2 -9
- package/dist/controllers/SimplePreviewController.js +121 -110
- package/dist/interfaces/pos/IPointOfSaleSaveOrder.d.ts +2 -2
- package/dist/types/TPointOfSaleSaveOrderItem.d.ts +4 -0
- package/dist/types/TPointOfSaleSaveOrderItem.js +1 -0
- package/dist/utils/dayjs.d.ts +2 -0
- package/dist/utils/dayjs.js +6 -0
- package/package.json +3 -2
|
@@ -113,7 +113,7 @@ class LabelPreviewController {
|
|
|
113
113
|
if (row.extras.length === 0)
|
|
114
114
|
return "";
|
|
115
115
|
let content = this.createDivContainer(template);
|
|
116
|
-
row.extras.forEach(element => {
|
|
116
|
+
row.extras.filter(i => !i.doNotPrintOnReceipt).forEach(element => {
|
|
117
117
|
let extraText = this.pizzaSideText(element.pizzaSide) + element.quantity + "X " + element.extraItemTitle;
|
|
118
118
|
let extraAmount = template.showPrices ? MoneyController.format(element.totalAmount, currencySymbol) : "";
|
|
119
119
|
content += `<div style="display: flex; flex-direction: row; justify-content: flex-start; padding-left: 16px">
|
|
@@ -2,16 +2,7 @@ import IAccount from "../interfaces/IAccount";
|
|
|
2
2
|
import IPrintTemplate from "../interfaces/IPrintTemplate";
|
|
3
3
|
import IOrderDetails from "../interfaces/print/IOrderDetails";
|
|
4
4
|
import IOrderDetailProduct from "../interfaces/print/IOrderDetailProduct";
|
|
5
|
-
|
|
6
|
-
import IPointOfSaleSetting from "../interfaces/pos/IPointOfSaleSetting";
|
|
7
|
-
import IPointOfSalePrintParts from "../interfaces/pos/IPointOfSalePrintParts";
|
|
8
|
-
import IPointOfSaleActionFormCashDrawer from "../interfaces/pos/IPointOfSaleActionFormCashDrawer";
|
|
9
|
-
import IPointOfSaleTeamMember from "../interfaces/pos/IPointOfSaleTeamMember";
|
|
10
|
-
import IPointOfSaleApiClosingWorkDay from "../interfaces/pos/IPointOfSaleApiClosingWorkDay";
|
|
11
|
-
import IPointOfSaleCashDrawer from "../interfaces/pos/IPointOfSaleCashDrawer";
|
|
12
|
-
import IPointOfSaleCashDrawerReportForm from "../interfaces/pos/IPointOfSaleCashDrawerReportForm";
|
|
13
|
-
import IPointOfSaleCashDrawerReportRecord from "../interfaces/pos/IPointOfSaleCashDrawerReportRecord";
|
|
14
|
-
declare const _default: {
|
|
5
|
+
declare class _PreviewContentController {
|
|
15
6
|
calculatePaperSize: (paper: number, width: string | number) => string;
|
|
16
7
|
sortProduct: (products: IOrderDetailProduct[], sortType: number) => IOrderDetailProduct[];
|
|
17
8
|
filterByCategoryList: (products: IOrderDetailProduct[], catList: number[], onlyListCategory: boolean, productList: number[], onlyListProduct: boolean) => IOrderDetailProduct[];
|
|
@@ -23,13 +14,8 @@ declare const _default: {
|
|
|
23
14
|
labelLayout(detail: IOrderDetails, template: IPrintTemplate): string;
|
|
24
15
|
paymentFailed(detail: IOrderDetails, currency: string): string;
|
|
25
16
|
packageLabel(detail: IOrderDetails, template: IPrintTemplate): string;
|
|
26
|
-
preview(account: IAccount, detail: IOrderDetails, template: IPrintTemplate): string;
|
|
27
17
|
previewForPos(account: IAccount, detail: IOrderDetails, template: IPrintTemplate): string;
|
|
28
|
-
createPrintFromTurnoverDetail(data: ITurnover, currency: string, printParts: IPointOfSalePrintParts): Promise<string>;
|
|
29
|
-
createCashDrawerPaidInOutMarkup(device: IPointOfSaleActionFormCashDrawer, setting: IPointOfSaleSetting, member: IPointOfSaleTeamMember): Promise<string>;
|
|
30
|
-
openCashDrawerMarkup(label?: string): Promise<string>;
|
|
31
18
|
standardHtmlContainer(strHtml: string): string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
export default _default;
|
|
19
|
+
}
|
|
20
|
+
declare const PreviewContentController: _PreviewContentController;
|
|
21
|
+
export default PreviewContentController;
|