@vita-mojo/print 0.0.21 → 0.0.22
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/package.json
CHANGED
|
@@ -12,6 +12,7 @@ export declare class OrderPrintContext extends PrintContextBase {
|
|
|
12
12
|
totalBasePrice: number;
|
|
13
13
|
regular: {
|
|
14
14
|
totalPrice: number;
|
|
15
|
+
quantity: number;
|
|
15
16
|
name: string;
|
|
16
17
|
uuid: string;
|
|
17
18
|
kitchenTicketName?: string | null | undefined;
|
|
@@ -69,30 +70,68 @@ export declare class OrderPrintContext extends PrintContextBase {
|
|
|
69
70
|
bundles: {
|
|
70
71
|
unitPrice: number;
|
|
71
72
|
price: number;
|
|
73
|
+
quantity: number;
|
|
74
|
+
units: number;
|
|
75
|
+
totalBasePrice: number;
|
|
76
|
+
regular: {
|
|
77
|
+
totalPrice: number;
|
|
78
|
+
quantity: number;
|
|
79
|
+
name: string;
|
|
80
|
+
uuid: string;
|
|
81
|
+
kitchenTicketName?: string | null | undefined;
|
|
82
|
+
kitchenZone?: import("../../../../../dist/packages/types/src/order/item").KitchenZone | null | undefined;
|
|
83
|
+
itemUUID: string;
|
|
84
|
+
straightToPickup: boolean;
|
|
85
|
+
price: number;
|
|
86
|
+
priceEatIn: number;
|
|
87
|
+
hasEatInPrice: boolean;
|
|
88
|
+
appStraightToPickup: import("../../../../../dist/packages/types/src/order/item").AppStraightToPickup;
|
|
89
|
+
refund?: number | undefined;
|
|
90
|
+
totalAmountBeforeRefund?: number | undefined;
|
|
91
|
+
refundIncludingTax?: number | undefined;
|
|
92
|
+
bundleVATOverwriteTakeaway?: number | undefined;
|
|
93
|
+
bundleVATOverwriteEatin?: number | undefined;
|
|
94
|
+
refundTaxAmount?: number | undefined;
|
|
95
|
+
refundUUID?: string | undefined;
|
|
96
|
+
salesTax?: number | undefined;
|
|
97
|
+
finalPrice: number;
|
|
98
|
+
totalAmount: number;
|
|
99
|
+
subtotalAmount: number;
|
|
100
|
+
customizations: import("../../../../../dist/packages/types/src/order/item").Customization[];
|
|
101
|
+
vatAmount: number;
|
|
102
|
+
discount: number;
|
|
103
|
+
taxExempt: number;
|
|
104
|
+
vatRateEatIn: number;
|
|
105
|
+
vatRateTakeaway: number;
|
|
106
|
+
promotion?: import("../../../../../dist/packages/types/src/order").Promotion | undefined;
|
|
107
|
+
type: string;
|
|
108
|
+
dealPriceOverrideDiff?: {
|
|
109
|
+
priceEatIn?: number | undefined;
|
|
110
|
+
price?: number | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
itemRaw: import("../../../../../dist/packages/types/src/order/item").Item;
|
|
113
|
+
itemNameWithUnits: string;
|
|
114
|
+
itemName: any;
|
|
115
|
+
kitchenName: any;
|
|
116
|
+
units: number | null;
|
|
117
|
+
unitsName: string;
|
|
118
|
+
}[];
|
|
72
119
|
bundle: Omit<import("../../../../../dist/packages/types/src/order/bundle").Bundle, "itemTypes"> & {
|
|
73
120
|
itemTypes: string[];
|
|
74
121
|
};
|
|
75
122
|
bundleName: string;
|
|
76
123
|
bundleNameWithSize: string;
|
|
77
124
|
singleBasePrice: number;
|
|
78
|
-
quantity: number;
|
|
79
125
|
isLast: boolean;
|
|
80
126
|
base: import("../../../../../dist/packages/types/src/order/item").Item;
|
|
81
|
-
regular: (import("../../../../../dist/packages/types/src/order/item").Item & {
|
|
82
|
-
itemRaw: import("../../../../../dist/packages/types/src/order/item").Item;
|
|
83
|
-
itemNameWithUnits: string;
|
|
84
|
-
itemName: any;
|
|
85
|
-
kitchenName: any;
|
|
86
|
-
units: number | null;
|
|
87
|
-
unitsName: string;
|
|
88
|
-
totalPrice: number;
|
|
89
|
-
})[];
|
|
90
127
|
bundleSize: string;
|
|
91
128
|
bundleBasketUUIDs: string[];
|
|
92
129
|
VATRate: number;
|
|
93
130
|
}[];
|
|
94
131
|
price: number;
|
|
95
132
|
totalPrice: number;
|
|
133
|
+
singleBasePrice: number;
|
|
134
|
+
totalBasePrice: number;
|
|
96
135
|
basketDealUUIDs?: string[] | undefined;
|
|
97
136
|
groupHash?: string | undefined;
|
|
98
137
|
name: string;
|
|
@@ -106,6 +145,7 @@ export declare class OrderPrintContext extends PrintContextBase {
|
|
|
106
145
|
totalBasePrice: number;
|
|
107
146
|
regular: {
|
|
108
147
|
totalPrice: number;
|
|
148
|
+
quantity: number;
|
|
109
149
|
name: string;
|
|
110
150
|
uuid: string;
|
|
111
151
|
kitchenTicketName?: string | null | undefined;
|
|
@@ -163,30 +203,68 @@ export declare class OrderPrintContext extends PrintContextBase {
|
|
|
163
203
|
bundles: {
|
|
164
204
|
unitPrice: number;
|
|
165
205
|
price: number;
|
|
206
|
+
quantity: number;
|
|
207
|
+
units: number;
|
|
208
|
+
totalBasePrice: number;
|
|
209
|
+
regular: {
|
|
210
|
+
totalPrice: number;
|
|
211
|
+
quantity: number;
|
|
212
|
+
name: string;
|
|
213
|
+
uuid: string;
|
|
214
|
+
kitchenTicketName?: string | null | undefined;
|
|
215
|
+
kitchenZone?: import("../../../../../dist/packages/types/src/order/item").KitchenZone | null | undefined;
|
|
216
|
+
itemUUID: string;
|
|
217
|
+
straightToPickup: boolean;
|
|
218
|
+
price: number;
|
|
219
|
+
priceEatIn: number;
|
|
220
|
+
hasEatInPrice: boolean;
|
|
221
|
+
appStraightToPickup: import("../../../../../dist/packages/types/src/order/item").AppStraightToPickup;
|
|
222
|
+
refund?: number | undefined;
|
|
223
|
+
totalAmountBeforeRefund?: number | undefined;
|
|
224
|
+
refundIncludingTax?: number | undefined;
|
|
225
|
+
bundleVATOverwriteTakeaway?: number | undefined;
|
|
226
|
+
bundleVATOverwriteEatin?: number | undefined;
|
|
227
|
+
refundTaxAmount?: number | undefined;
|
|
228
|
+
refundUUID?: string | undefined;
|
|
229
|
+
salesTax?: number | undefined;
|
|
230
|
+
finalPrice: number;
|
|
231
|
+
totalAmount: number;
|
|
232
|
+
subtotalAmount: number;
|
|
233
|
+
customizations: import("../../../../../dist/packages/types/src/order/item").Customization[];
|
|
234
|
+
vatAmount: number;
|
|
235
|
+
discount: number;
|
|
236
|
+
taxExempt: number;
|
|
237
|
+
vatRateEatIn: number;
|
|
238
|
+
vatRateTakeaway: number;
|
|
239
|
+
promotion?: import("../../../../../dist/packages/types/src/order").Promotion | undefined;
|
|
240
|
+
type: string;
|
|
241
|
+
dealPriceOverrideDiff?: {
|
|
242
|
+
priceEatIn?: number | undefined;
|
|
243
|
+
price?: number | undefined;
|
|
244
|
+
} | undefined;
|
|
245
|
+
itemRaw: import("../../../../../dist/packages/types/src/order/item").Item;
|
|
246
|
+
itemNameWithUnits: string;
|
|
247
|
+
itemName: any;
|
|
248
|
+
kitchenName: any;
|
|
249
|
+
units: number | null;
|
|
250
|
+
unitsName: string;
|
|
251
|
+
}[];
|
|
166
252
|
bundle: Omit<import("../../../../../dist/packages/types/src/order/bundle").Bundle, "itemTypes"> & {
|
|
167
253
|
itemTypes: string[];
|
|
168
254
|
};
|
|
169
255
|
bundleName: string;
|
|
170
256
|
bundleNameWithSize: string;
|
|
171
257
|
singleBasePrice: number;
|
|
172
|
-
quantity: number;
|
|
173
258
|
isLast: boolean;
|
|
174
259
|
base: import("../../../../../dist/packages/types/src/order/item").Item;
|
|
175
|
-
regular: (import("../../../../../dist/packages/types/src/order/item").Item & {
|
|
176
|
-
itemRaw: import("../../../../../dist/packages/types/src/order/item").Item;
|
|
177
|
-
itemNameWithUnits: string;
|
|
178
|
-
itemName: any;
|
|
179
|
-
kitchenName: any;
|
|
180
|
-
units: number | null;
|
|
181
|
-
unitsName: string;
|
|
182
|
-
totalPrice: number;
|
|
183
|
-
})[];
|
|
184
260
|
bundleSize: string;
|
|
185
261
|
bundleBasketUUIDs: string[];
|
|
186
262
|
VATRate: number;
|
|
187
263
|
}[];
|
|
188
264
|
price: number;
|
|
189
265
|
totalPrice: number;
|
|
266
|
+
singleBasePrice: number;
|
|
267
|
+
totalBasePrice: number;
|
|
190
268
|
basketDealUUIDs?: string[] | undefined;
|
|
191
269
|
groupHash?: string | undefined;
|
|
192
270
|
name: string;
|
|
@@ -223,6 +301,7 @@ export declare class OrderPrintContext extends PrintContextBase {
|
|
|
223
301
|
unitsName: string;
|
|
224
302
|
totalPrice: number;
|
|
225
303
|
item: import("../../../../../dist/packages/types/src/order/item").Item;
|
|
304
|
+
quantity: number;
|
|
226
305
|
}[];
|
|
227
306
|
}[];
|
|
228
307
|
groupedDeals: {
|
|
@@ -247,10 +326,13 @@ export declare class OrderPrintContext extends PrintContextBase {
|
|
|
247
326
|
unitsName: string;
|
|
248
327
|
totalPrice: number;
|
|
249
328
|
item: import("../../../../../dist/packages/types/src/order/item").Item;
|
|
329
|
+
quantity: number;
|
|
250
330
|
}[];
|
|
251
331
|
}[] | undefined;
|
|
252
332
|
price?: number | undefined;
|
|
253
333
|
totalPrice?: number | undefined;
|
|
334
|
+
singleBasePrice?: number | undefined;
|
|
335
|
+
totalBasePrice?: number | undefined;
|
|
254
336
|
basketDealUUIDs?: string[] | undefined;
|
|
255
337
|
groupHash?: string | undefined;
|
|
256
338
|
name?: string | undefined;
|
|
@@ -276,6 +358,7 @@ export declare class OrderPrintContext extends PrintContextBase {
|
|
|
276
358
|
unitsName: string;
|
|
277
359
|
totalPrice: number;
|
|
278
360
|
item: import("../../../../../dist/packages/types/src/order/item").Item;
|
|
361
|
+
quantity: number;
|
|
279
362
|
}[];
|
|
280
363
|
}[];
|
|
281
364
|
}[];
|
|
@@ -38,25 +38,28 @@ class OrderPrintContext extends base_1.PrintContextBase {
|
|
|
38
38
|
var _a;
|
|
39
39
|
return ((_a = this.sortedGroupedBundles) !== null && _a !== void 0 ? _a : []).map((bundleForKds) => {
|
|
40
40
|
var _a, _b, _c, _d;
|
|
41
|
-
const unitPrice = (_b = (_a = bundleForKds.bundle) === null || _a === void 0 ? void 0 : _a.
|
|
41
|
+
const unitPrice = (_b = (_a = bundleForKds.bundle) === null || _a === void 0 ? void 0 : _a.finalPrice) !== null && _b !== void 0 ? _b : 0;
|
|
42
42
|
const quantity = (_c = bundleForKds.quantity) !== null && _c !== void 0 ? _c : 1;
|
|
43
43
|
const price = unitPrice * quantity;
|
|
44
44
|
const totalBasePrice = bundleForKds.singleBasePrice * quantity;
|
|
45
45
|
return Object.assign(Object.assign({}, bundleForKds), { price,
|
|
46
46
|
unitPrice,
|
|
47
|
-
totalBasePrice, regular: ((_d = bundleForKds.regular) !== null && _d !== void 0 ? _d : []).map((item) => (Object.assign(Object.assign({}, item), { totalPrice: item.finalPrice * quantity }))) });
|
|
47
|
+
totalBasePrice, regular: ((_d = bundleForKds.regular) !== null && _d !== void 0 ? _d : []).map((item) => (Object.assign(Object.assign({}, item), { totalPrice: item.finalPrice * quantity, quantity: (item.units || 1) * quantity }))) });
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
get groupedDeals() {
|
|
51
51
|
var _a;
|
|
52
52
|
return ((_a = this.sortedGroupedDeals) !== null && _a !== void 0 ? _a : []).map((deal) => {
|
|
53
|
-
var _a, _b;
|
|
54
|
-
const
|
|
53
|
+
var _a, _b, _c;
|
|
54
|
+
const bundleQuantity = (_a = deal.quantity) !== null && _a !== void 0 ? _a : 1;
|
|
55
|
+
const bundles = (_b = deal.bundles) === null || _b === void 0 ? void 0 : _b.map((dealBundle) => {
|
|
55
56
|
var _a, _b, _c, _d;
|
|
56
|
-
return (Object.assign(Object.assign({}, dealBundle), { unitPrice: (_b = (_a = dealBundle.bundle) === null || _a === void 0 ? void 0 : _a.
|
|
57
|
+
return (Object.assign(Object.assign({}, dealBundle), { unitPrice: (_b = (_a = dealBundle.bundle) === null || _a === void 0 ? void 0 : _a.finalPrice) !== null && _b !== void 0 ? _b : 0, price: ((_c = dealBundle.bundle) === null || _c === void 0 ? void 0 : _c.finalPrice) * (bundleQuantity !== null && bundleQuantity !== void 0 ? bundleQuantity : 1), quantity: bundleQuantity, units: 1, totalBasePrice: dealBundle.singleBasePrice * bundleQuantity, regular: ((_d = dealBundle.regular) !== null && _d !== void 0 ? _d : []).map((item) => (Object.assign(Object.assign({}, item), { totalPrice: item.finalPrice * bundleQuantity, quantity: (item.units || 1) * bundleQuantity }))) }));
|
|
57
58
|
});
|
|
58
|
-
const dealPrice = bundles.reduce((price, bundle) => price + bundle.
|
|
59
|
-
|
|
59
|
+
const dealPrice = bundles.reduce((price, bundle) => price + bundle.unitPrice, 0);
|
|
60
|
+
const dealSingleBasePrice = bundles.reduce((price, bundle) => price + bundle.singleBasePrice, 0);
|
|
61
|
+
const dealTotalBasePrice = bundles.reduce((price, bundle) => price + bundle.totalBasePrice, 0);
|
|
62
|
+
return Object.assign(Object.assign({}, deal), { bundles, price: dealPrice, totalPrice: ((_c = deal.quantity) !== null && _c !== void 0 ? _c : 1) * (dealPrice !== null && dealPrice !== void 0 ? dealPrice : 0), singleBasePrice: dealSingleBasePrice, totalBasePrice: dealTotalBasePrice });
|
|
60
63
|
});
|
|
61
64
|
}
|
|
62
65
|
get groupedByKitchenStationName() {
|
|
@@ -137,6 +140,7 @@ class OrderPrintContext extends base_1.PrintContextBase {
|
|
|
137
140
|
unitsName: item.unitsName,
|
|
138
141
|
totalPrice: item.totalPrice,
|
|
139
142
|
item: item.itemRaw,
|
|
143
|
+
quantity: (item.units || 1) * bundle.quantity,
|
|
140
144
|
};
|
|
141
145
|
});
|
|
142
146
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"order.js","sourceRoot":"","sources":["../../../../../../packages/print/src/lib/contexts/order.ts"],"names":[],"mappings":";;;AACA,oCAA6C;AAC7C,iCAA0C;AAE1C;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,uBAAgB;IACrD,IAAI,eAAe;;QACjB,MAAM,eAAe,GAAG,MAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,IAAI,0CAAE,OAAO,CAAC;QAElD,IAAI,CAAC,eAAe,EAAE;YACpB,OAAO,EAAE,CAAC;SACX;QAED,MAAM,WAAW,GAAkC;YACjD,UAAU;YACV,UAAU;YACV,MAAM;YACN,UAAU;SACX,CAAC;QACF,MAAM,OAAO,GAAG,WAAW;aACxB,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;aAClC,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,IAAI,CAAC,CAAC;QAEd,OAAO,IAAA,gBAAQ,EAAC,OAAO,CAAC,CAAC;IAC3B,CAAC;IAED,IAAI,oBAAoB;;QACtB,MAAM,eAAe,GAAG,MAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,IAAI,0CAAE,OAAO,CAAC;QAElD,IAAI,CAAC,eAAe,EAAE;YACpB,OAAO,EAAE,CAAC;SACX;QAED,OAAO,IAAA,gBAAQ,EAAC,CAAA,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAE,YAAY,KAAI,EAAE,CAAC,CAAC;IACvD,CAAC;IAED,IAAI,cAAc;;QAChB,OAAO,CAAC,MAAA,IAAI,CAAC,oBAAoB,mCAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE;;YAC5D,MAAM,SAAS,GAAG,MAAA,MAAA,YAAY,CAAC,MAAM,0CAAE,
|
|
1
|
+
{"version":3,"file":"order.js","sourceRoot":"","sources":["../../../../../../packages/print/src/lib/contexts/order.ts"],"names":[],"mappings":";;;AACA,oCAA6C;AAC7C,iCAA0C;AAE1C;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,uBAAgB;IACrD,IAAI,eAAe;;QACjB,MAAM,eAAe,GAAG,MAAA,MAAA,IAAI,CAAC,KAAK,0CAAE,IAAI,0CAAE,OAAO,CAAC;QAElD,IAAI,CAAC,eAAe,EAAE;YACpB,OAAO,EAAE,CAAC;SACX;QAED,MAAM,WAAW,GAAkC;YACjD,UAAU;YACV,UAAU;YACV,MAAM;YACN,UAAU;SACX,CAAC;QACF,MAAM,OAAO,GAAG,WAAW;aACxB,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC;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