@harbortouch/skytab-analytics-report-utils 0.19.1 → 0.20.0

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/index.js CHANGED
@@ -1,1633 +1,44 @@
1
- // src/reports/salesByItemDetail.ts
2
- var FIELDS = {
3
- businessDate: { type: "date", columnKey: "date", filteringAvailable: false },
4
- ticketClosedAt: { type: "string", columnKey: "ticketClosed", filteringAvailable: false },
5
- hourId: { type: "number", columnKey: "hour", filteringAvailable: false },
6
- daypartName: { type: "string", columnKey: "daypart", filteringAvailable: false },
7
- locationId: { type: "number", columnKey: "locationId", filteringAvailable: false },
8
- locationName: { type: "string", columnKey: "locationName", filteringAvailable: false },
9
- departmentName: { type: "string", columnKey: "department", filteringAvailable: false },
10
- itemName: { type: "string", columnKey: "itemName", filteringAvailable: false },
11
- revenueCenterName: { type: "string", columnKey: "revenueCenter", filteringAvailable: false },
12
- revenueClassName: { type: "string", columnKey: "revenueClass", filteringAvailable: false },
13
- salesAmountGross: { type: "money", columnKey: "grossSales" },
14
- itemsQuantity: { type: "number", columnKey: "quantity" },
15
- transactionId: { type: "string", columnKey: "ticketNumber", filteringAvailable: false },
16
- guestsCount: { type: "number", columnKey: "guestCount" },
17
- employeeName: { type: "string", columnKey: "employeeName", filteringAvailable: false },
18
- orderTypeName: { type: "string", columnKey: "orderType", filteringAvailable: false },
19
- salesType: { type: "string", columnKey: "salePaymentType", filteringAvailable: false },
20
- itemPrice: { type: "money", columnKey: "itemPrice" }
21
- };
22
- var SALES_BY_ITEM_DETAIL_AVAILABLE_COLUMNS = [
23
- "businessDate",
24
- "ticketClosedAt",
25
- "hourId",
26
- "daypartName",
27
- "locationId",
28
- "locationName",
29
- "departmentName",
30
- "itemName",
31
- "revenueCenterName",
32
- "revenueClassName",
33
- "salesAmountGross",
34
- "itemsQuantity",
35
- "transactionId",
36
- "guestsCount",
37
- "employeeName",
38
- "orderTypeName",
39
- "salesType",
40
- "itemPrice"
41
- ];
42
- var salesByItemDetailConfig = {
43
- fields: FIELDS,
44
- availableColumns: SALES_BY_ITEM_DETAIL_AVAILABLE_COLUMNS,
45
- defaultVisibleColumns: SALES_BY_ITEM_DETAIL_AVAILABLE_COLUMNS,
46
- hasFooter: false
47
- };
48
-
49
- // src/reports/constants.ts
50
- var FIRST_COLUMN_WIDTH = 240;
51
-
52
- // src/reports/salesSummary.ts
53
- var FIELDS2 = {
54
- groupById: { type: "number" },
55
- groupByName: { type: "string", size: FIRST_COLUMN_WIDTH },
56
- salesAmountNet: { type: "money", columnKey: "netSales" },
57
- salesVarLW: { type: "money", columnKey: "salesVarLw" },
58
- salesVarLY: { type: "money", columnKey: "salesVarLy" },
59
- salesVarLWPct: {
60
- type: "percent",
61
- columnKey: "salesVarLwPct",
62
- footerCalculation: {
63
- type: "variancePercent",
64
- numeratorField: "salesVarLW",
65
- denominatorField: "salesAmountNet"
66
- }
67
- },
68
- salesVarLYPct: {
69
- type: "percent",
70
- columnKey: "salesVarLyPct",
71
- footerCalculation: {
72
- type: "variancePercent",
73
- numeratorField: "salesVarLY",
74
- denominatorField: "salesAmountNet"
75
- }
76
- },
77
- salesAmountNetLastWeek: { type: "money" },
78
- salesAmountNetLastYear: { type: "money" },
79
- salesAmountGross: { type: "money" },
80
- salesAmountGrossLastWeek: { type: "money" },
81
- salesAmountGrossLastYear: { type: "money" },
82
- ticketsCount: { type: "number" },
83
- ticketsCountLastWeek: { type: "number" },
84
- ticketsCountLastYear: { type: "number" },
85
- guestsCount: { type: "number", columnKey: "guestCount" },
86
- guestsVarLW: { type: "number", columnKey: "guestsVarLw" },
87
- guestsVarLY: { type: "number", columnKey: "guestsVarLy" },
88
- guestsVarLWPct: {
89
- type: "percent",
90
- columnKey: "guestsVarLwPct",
91
- footerCalculation: {
92
- type: "variancePercent",
93
- numeratorField: "guestsVarLW",
94
- denominatorField: "guestsCount"
95
- }
96
- },
97
- guestsVarLYPct: {
98
- type: "percent",
99
- columnKey: "guestsVarLyPct",
100
- footerCalculation: {
101
- type: "variancePercent",
102
- numeratorField: "guestsVarLY",
103
- denominatorField: "guestsCount"
104
- }
105
- },
106
- guestsCountLastWeek: { type: "number" },
107
- guestsCountLastYear: { type: "number" },
108
- salesPerGuestTY: {
109
- type: "money",
110
- columnKey: "salesPerGuest",
111
- footerCalculation: {
112
- type: "average",
113
- numeratorField: "salesAmountNet",
114
- denominatorField: "guestsCount"
115
- }
116
- },
117
- salesPerGuestLW: {
118
- type: "money",
119
- columnKey: "salesPerGuestLw",
120
- footerCalculation: {
121
- type: "quotientOfDifferences",
122
- numeratorField: "salesAmountNet",
123
- numeratorAdjustField: "salesVarLW",
124
- denominatorField: "guestsCount",
125
- denominatorAdjustField: "guestsVarLW"
126
- }
127
- },
128
- salesPerGuestLY: {
129
- type: "money",
130
- columnKey: "salesPerGuestLy",
131
- footerCalculation: {
132
- type: "quotientOfDifferences",
133
- numeratorField: "salesAmountNet",
134
- numeratorAdjustField: "salesVarLY",
135
- denominatorField: "guestsCount",
136
- denominatorAdjustField: "guestsVarLY"
137
- }
138
- }
139
- };
140
- var COLUMN_GROUPS = [
141
- {
142
- id: "sales",
143
- headerTranslationKey: "table.groups.sales",
144
- baseFields: ["salesAmountNet"],
145
- lastWeekFields: ["salesVarLW", "salesVarLWPct"],
146
- lastYearFields: ["salesVarLY", "salesVarLYPct"]
147
- },
148
- {
149
- id: "guests",
150
- headerTranslationKey: "table.groups.guests",
151
- baseFields: ["guestsCount"],
152
- lastWeekFields: ["guestsVarLW", "guestsVarLWPct"],
153
- lastYearFields: ["guestsVarLY", "guestsVarLYPct"]
154
- },
155
- {
156
- id: "salesPerGuest",
157
- headerTranslationKey: "table.groups.sales-per-guest",
158
- baseFields: ["salesPerGuestTY"],
159
- lastWeekFields: ["salesPerGuestLW"],
160
- lastYearFields: ["salesPerGuestLY"]
161
- }
162
- ];
163
- var SALES_SUMMARY_AVAILABLE_COLUMNS = [
164
- "salesAmountNet",
165
- "salesVarLW",
166
- "salesVarLWPct",
167
- "salesVarLY",
168
- "salesVarLYPct",
169
- "guestsCount",
170
- "guestsVarLW",
171
- "guestsVarLWPct",
172
- "guestsVarLY",
173
- "guestsVarLYPct",
174
- "salesPerGuestTY",
175
- "salesPerGuestLW",
176
- "salesPerGuestLY"
177
- ];
178
- var SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS = ["salesAmountNet", "guestsCount", "salesPerGuestTY"];
179
- var salesSummaryConfig = {
180
- fields: FIELDS2,
181
- availableColumns: SALES_SUMMARY_AVAILABLE_COLUMNS,
182
- defaultVisibleColumns: SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS,
183
- columnGroups: COLUMN_GROUPS,
184
- hasFooter: true
185
- };
186
-
187
- // src/reports/ticketSummary.ts
188
- var FIELDS3 = {
189
- ticketId: { type: "string" },
190
- locationId: { type: "number" },
191
- orderName: { type: "string" },
192
- revenueCenterName: { type: "string", columnKey: "revenueCenter" },
193
- daypartName: { type: "string", columnKey: "daypart" },
194
- inclusiveTaxesAmount: {
195
- type: "money",
196
- columnKey: "inclusiveTax",
197
- footerCalculation: { type: "sum" }
198
- },
199
- locationName: { type: "string", size: 240, columnKey: "locationName" },
200
- orderNumber: { type: "number", columnKey: "ticketNumber", footerCalculation: { type: "none" } },
201
- businessDate: { type: "date", columnKey: "date" },
202
- ticketOpenedAt: { type: "time", columnKey: "ticketOpen" },
203
- ticketClosedAt: { type: "time", columnKey: "ticketClosed" },
204
- ticketTime: { type: "number", columnKey: "timeOpenMins", enableSorting: false },
205
- ticketSubtotal: {
206
- type: "money",
207
- columnKey: "subtotal",
208
- footerCalculation: { type: "sum" }
209
- },
210
- discountsAmount: {
211
- type: "money",
212
- columnKey: "discountAmount",
213
- footerCalculation: { type: "sum" }
214
- },
215
- surchargesAmount: {
216
- type: "money",
217
- columnKey: "ticketFee",
218
- footerCalculation: { type: "sum" }
219
- },
220
- taxesAmount: {
221
- type: "money",
222
- columnKey: "taxCollected",
223
- footerCalculation: { type: "sum" }
224
- },
225
- ticketGrandTotal: {
226
- type: "money",
227
- columnKey: "grandTotal",
228
- footerCalculation: { type: "sum" }
229
- },
230
- gratuitiesAmount: {
231
- type: "money",
232
- columnKey: "autoGratuity",
233
- footerCalculation: { type: "sum" }
234
- },
235
- tipAmount: {
236
- type: "money",
237
- columnKey: "tips",
238
- footerCalculation: { type: "sum" }
239
- },
240
- paymentsAmount: {
241
- type: "money",
242
- columnKey: "totalCollected",
243
- footerCalculation: { type: "sum" }
244
- },
245
- paymentTypeName: { type: "string", columnKey: "paymentType" },
246
- guestsCount: {
247
- type: "number",
248
- columnKey: "guestCount",
249
- footerCalculation: { type: "sum" }
250
- },
251
- employeeName: { type: "string", columnKey: "employeeName" },
252
- orderTypeName: { type: "string", columnKey: "orderType" }
253
- };
254
- var TICKET_SUMMARY_AVAILABLE_COLUMNS = [
255
- "locationName",
256
- "businessDate",
257
- "ticketOpenedAt",
258
- "ticketClosedAt",
259
- "ticketTime",
260
- "ticketSubtotal",
261
- "discountsAmount",
262
- "surchargesAmount",
263
- "taxesAmount",
264
- "ticketGrandTotal",
265
- "gratuitiesAmount",
266
- "tipAmount",
267
- "paymentsAmount",
268
- "paymentTypeName",
269
- "guestsCount",
270
- "employeeName",
271
- "orderTypeName"
272
- ];
273
- var ticketSummaryConfig = {
274
- fields: FIELDS3,
275
- availableColumns: TICKET_SUMMARY_AVAILABLE_COLUMNS,
276
- defaultVisibleColumns: TICKET_SUMMARY_AVAILABLE_COLUMNS,
277
- hasFooter: true
278
- };
279
-
280
- // src/reports/ticketLive.ts
281
- var FIELDS4 = {
282
- locationName: { type: "string", columnKey: "locationName" },
283
- orderNumber: {
284
- type: "number",
285
- columnKey: "ticketNumber",
286
- footerCalculation: { type: "none" }
287
- },
288
- dateOpen: { type: "string", columnKey: "date" },
289
- timeOpen: { type: "string", columnKey: "ticketOpen" },
290
- dateClose: { type: "string", columnKey: "dateClose" },
291
- timeClose: { type: "string", columnKey: "ticketClosed" },
292
- durationMinutes: { type: "number", columnKey: "timeOpenMins" },
293
- subtotal: { type: "money", columnKey: "subtotal" },
294
- discountTotal: { type: "money", columnKey: "discountAmount" },
295
- surchargeTotal: { type: "money", columnKey: "ticketFee" },
296
- taxTotal: { type: "money", columnKey: "taxCollected" },
297
- grandTotal: { type: "money", columnKey: "grandTotal" },
298
- gratuityTotal: { type: "money", columnKey: "autoGratuity" },
299
- totalTips: { type: "money", columnKey: "totalTips" },
300
- paymentsReceived: { type: "money", columnKey: "totalCollected" },
301
- paymentTypeName: { type: "string", columnKey: "paymentType" },
302
- guestCount: {
303
- type: "number",
304
- columnKey: "guestCount",
305
- footerCalculation: { type: "sum" }
306
- },
307
- customerName: { type: "string", columnKey: "customerName" },
308
- employeeName: { type: "string", columnKey: "employeeName" },
309
- orderType: { type: "string", columnKey: "orderType" }
310
- };
311
- var TICKET_LIVE_AVAILABLE_COLUMNS = [
312
- "locationName",
313
- "orderNumber",
314
- "dateOpen",
315
- "timeOpen",
316
- "timeClose",
317
- "durationMinutes",
318
- "subtotal",
319
- "discountTotal",
320
- "surchargeTotal",
321
- "taxTotal",
322
- "grandTotal",
323
- "gratuityTotal",
324
- "totalTips",
325
- "paymentsReceived",
326
- "paymentTypeName",
327
- "guestCount",
328
- "employeeName",
329
- "orderType"
330
- ];
331
- var ticketLiveConfig = {
332
- fields: FIELDS4,
333
- availableColumns: TICKET_LIVE_AVAILABLE_COLUMNS,
334
- defaultVisibleColumns: TICKET_LIVE_AVAILABLE_COLUMNS,
335
- hasFooter: true
336
- };
337
-
338
- // src/reports/productMix.ts
339
- var FIELDS5 = {
340
- groupById: { type: "string" },
341
- groupByName: { type: "string", size: FIRST_COLUMN_WIDTH },
342
- salesAmountGross: { type: "money", columnKey: "grossSales" },
343
- discountsAmount: { type: "money", columnKey: "discountAmount" },
344
- inclusiveTaxesAmount: { type: "money", columnKey: "inclusiveTax" },
345
- salesAmountNet: { type: "money", columnKey: "netSales" },
346
- itemsQuantity: { type: "fixedNumber", columnKey: "quantity" },
347
- avgPrice: {
348
- type: "money",
349
- columnKey: "averageGrossPrice",
350
- footerCalculation: {
351
- type: "average",
352
- numeratorField: "salesAmountGross",
353
- denominatorField: "itemsQuantity"
354
- }
355
- },
356
- salesMixPct: { type: "percent", columnKey: "salesMixByPct" }
357
- };
358
- var PRODUCT_MIX_AVAILABLE_COLUMNS = [
359
- "salesAmountGross",
360
- "itemsQuantity",
361
- "avgPrice",
362
- "discountsAmount",
363
- "inclusiveTaxesAmount",
364
- "salesAmountNet",
365
- "salesMixPct"
366
- ];
367
- var productMixConfig = {
368
- fields: FIELDS5,
369
- availableColumns: PRODUCT_MIX_AVAILABLE_COLUMNS,
370
- defaultVisibleColumns: PRODUCT_MIX_AVAILABLE_COLUMNS,
371
- chartFields: PRODUCT_MIX_AVAILABLE_COLUMNS,
372
- hasFooter: true
373
- };
374
-
375
- // src/reports/modifierMix.ts
376
- var FIELDS6 = {
377
- groupById: { type: "string", filteringAvailable: false },
378
- groupByName: { type: "string", size: FIRST_COLUMN_WIDTH, filteringAvailable: false },
379
- groupById2: { type: "string", filteringAvailable: false },
380
- groupByName2: { type: "string", size: FIRST_COLUMN_WIDTH, filteringAvailable: false },
381
- modifiersSales: { type: "money", columnKey: "totalModifierSales" },
382
- modifiersQuantity: { type: "number", columnKey: "modifierQuantity" },
383
- itemsQuantity: {
384
- type: "number",
385
- columnKey: "quantity",
386
- filteringAvailable: false
387
- },
388
- avgGross: {
389
- type: "money",
390
- columnKey: "averageGrossPrice",
391
- footerCalculation: {
392
- type: "average",
393
- numeratorField: "modifiersSales",
394
- denominatorField: "modifiersQuantity"
395
- }
396
- },
397
- attachRate: {
398
- type: "percent",
399
- columnKey: "attachRate",
400
- footerCalculation: {
401
- type: "average",
402
- numeratorField: "modifiersQuantity",
403
- denominatorField: "itemsQuantity"
404
- }
405
- },
406
- modifiersSalesComp: { type: "money", filteringAvailable: false },
407
- modifiersQuantityComp: { type: "number", filteringAvailable: false },
408
- itemsQuantityComp: { type: "number", filteringAvailable: false },
409
- attachRateComp: { type: "percent", filteringAvailable: false },
410
- modifiersSalesVar: { type: "money", filteringAvailable: false },
411
- modifiersSalesVarPct: {
412
- type: "percent",
413
- filteringAvailable: false,
414
- footerCalculation: {
415
- type: "percentChange",
416
- numeratorField: "modifiersSales",
417
- denominatorField: "modifiersSalesComp"
418
- }
419
- },
420
- modifiersQuantityVar: { type: "number", filteringAvailable: false },
421
- modifiersQuantityVarPct: {
422
- type: "percent",
423
- filteringAvailable: false,
424
- footerCalculation: {
425
- type: "percentChange",
426
- numeratorField: "modifiersQuantity",
427
- denominatorField: "modifiersQuantityComp"
428
- }
429
- },
430
- attachRateVar: { type: "percent", filteringAvailable: false },
431
- attachRateVarPct: {
432
- type: "percent",
433
- filteringAvailable: false,
434
- footerCalculation: {
435
- type: "percentChange",
436
- numeratorField: "attachRate",
437
- denominatorField: "attachRateComp"
438
- }
439
- }
440
- };
441
- var MODIFIER_MIX_AVAILABLE_COLUMNS = ["modifiersSales", "modifiersQuantity", "avgGross"];
442
- var modifierMixConfig = {
443
- fields: FIELDS6,
444
- availableColumns: MODIFIER_MIX_AVAILABLE_COLUMNS,
445
- defaultVisibleColumns: MODIFIER_MIX_AVAILABLE_COLUMNS,
446
- hasFooter: true
447
- };
448
-
449
- // src/reports/itemTax.ts
450
- var FIELDS7 = {
451
- locationId: { type: "number", filteringAvailable: false },
452
- taxIsFlat: { type: "boolean", filteringAvailable: false },
453
- merchantId: { type: "string", columnKey: "locationMid", filteringAvailable: false },
454
- locationName: { type: "string", columnKey: "locationName", filteringAvailable: false },
455
- locationCity: { type: "string", columnKey: "locationCity", filteringAvailable: false },
456
- locationState: { type: "string", columnKey: "locationState", filteringAvailable: false },
457
- itemName: { type: "string", columnKey: "itemName", filteringAvailable: false },
458
- itemPrice: { type: "money", columnKey: "itemPrice" },
459
- departmentName: { type: "string", columnKey: "department", filteringAvailable: false },
460
- revenueClassName: { type: "string", columnKey: "revenueClass", filteringAvailable: false },
461
- orderTypeName: { type: "string", columnKey: "orderType", filteringAvailable: false },
462
- taxName: { type: "string", columnKey: "taxName", filteringAvailable: false },
463
- taxValue: { type: "money", columnKey: "taxableSales" },
464
- taxRate: {
465
- type: "conditional",
466
- columnKey: "taxRate",
467
- conditionalConfiguration: {
468
- conditionalField: "taxIsFlat",
469
- conditionalFormat: (field) => {
470
- return field ? "money" : "percent";
471
- }
472
- }
473
- },
474
- recordsCount: { type: "number", columnKey: "quantity" },
475
- taxableSales: { type: "money", columnKey: "taxableSales" },
476
- totalCollected: { type: "money", columnKey: "totalCollected" },
477
- itemTax: { type: "money", columnKey: "taxCollected" },
478
- taxCollected: { type: "money", columnKey: "taxCollected" }
479
- };
480
- var ITEM_TAX_AVAILABLE_COLUMNS = [
481
- "merchantId",
482
- "locationName",
483
- "locationCity",
484
- "locationState",
485
- "itemName",
486
- "departmentName",
487
- "revenueClassName",
488
- "orderTypeName",
489
- "recordsCount",
490
- "itemPrice",
491
- "taxName",
492
- "taxRate",
493
- "taxableSales",
494
- "taxCollected"
495
- ];
496
- var itemTaxConfig = {
497
- fields: FIELDS7,
498
- availableColumns: ITEM_TAX_AVAILABLE_COLUMNS,
499
- defaultVisibleColumns: ITEM_TAX_AVAILABLE_COLUMNS,
500
- hasFooter: false
501
- };
502
-
503
- // src/reports/employeeTimecard.ts
504
- var EMPLOYEE_NAME_WIDTH = 220;
505
- var STATUS_WIDTH = 140;
506
- var LOOKUP_WIDTH = 160;
507
- var PAYROLL_WIDTH = 160;
508
- var JOB_WIDTH = 200;
509
- var FIELDS8 = {
510
- locationId: {
511
- type: "number",
512
- enableSorting: false,
513
- filteringAvailable: false
514
- },
515
- locationName: {
516
- type: "string",
517
- size: FIRST_COLUMN_WIDTH,
518
- columnKey: "locationName"
519
- },
520
- businessDate: {
521
- type: "date",
522
- columnKey: "date"
523
- },
524
- employeeName: {
525
- type: "string",
526
- size: EMPLOYEE_NAME_WIDTH,
527
- columnKey: "employeeName"
528
- },
529
- isActive: {
530
- type: "string",
531
- size: STATUS_WIDTH,
532
- columnKey: "status",
533
- enableSorting: false,
534
- filteringAvailable: false
535
- },
536
- lookup: {
537
- type: "string",
538
- size: LOOKUP_WIDTH,
539
- columnKey: "employeeId"
540
- },
541
- payrollCode: {
542
- type: "string",
543
- size: PAYROLL_WIDTH,
544
- columnKey: "payrollId"
545
- },
546
- jobName: {
547
- type: "string",
548
- size: JOB_WIDTH,
549
- columnKey: "employeeJob"
550
- },
551
- isBreak: {
552
- type: "string",
553
- enableSorting: false,
554
- filteringAvailable: false
555
- },
556
- startTime: {
557
- type: "string",
558
- columnKey: "clockInTime"
559
- },
560
- endTime: {
561
- type: "string",
562
- columnKey: "clockOutTime"
563
- },
564
- shiftHours: {
565
- type: "fixedNumber",
566
- columnKey: "shiftDurationHrs",
567
- filteringAvailable: false
568
- }
569
- };
570
- var EMPLOYEE_TIMECARD_AVAILABLE_COLUMNS = [
571
- "locationName",
572
- "businessDate",
573
- "isActive",
574
- "lookup",
575
- "payrollCode",
576
- "jobName",
577
- "startTime",
578
- "endTime",
579
- "shiftHours"
580
- ];
581
- var employeeTimecardConfig = {
582
- fields: FIELDS8,
583
- availableColumns: EMPLOYEE_TIMECARD_AVAILABLE_COLUMNS,
584
- defaultVisibleColumns: EMPLOYEE_TIMECARD_AVAILABLE_COLUMNS,
585
- hasFooter: true
586
- };
587
-
588
- // src/reports/employeeTip.ts
589
- var FIELDS9 = {
590
- employeeName: { type: "string", size: 220, columnKey: "employeeName" },
591
- empId: { type: "string", size: 160, columnKey: "employeeId" },
592
- payrollId: { type: "string", size: 160, columnKey: "payrollId" },
593
- locationName: { type: "string", size: 220, columnKey: "locationName" },
594
- status: { type: "string", size: 140, columnKey: "status" },
595
- grossSales: { type: "money", columnKey: "grossSales", footerCalculation: { type: "sum" } },
596
- grossCash: { type: "money", columnKey: "grossCashSales", footerCalculation: { type: "sum" } },
597
- grossCc: { type: "money", columnKey: "grossCreditSales", footerCalculation: { type: "sum" } },
598
- totalPayments: { type: "money", columnKey: "totalCollected", footerCalculation: { type: "sum" } },
599
- autoGratuity: { type: "money", columnKey: "autoGratuity", footerCalculation: { type: "sum" } },
600
- grossTips: { type: "money", columnKey: "grossTips", footerCalculation: { type: "sum" } },
601
- declaredTips: { type: "money", columnKey: "declaredTips", footerCalculation: { type: "sum" } },
602
- tipReduction: { type: "money", columnKey: "tipReduction", footerCalculation: { type: "sum" } },
603
- tipShare: { type: "money", columnKey: "tipShare", footerCalculation: { type: "sum" } },
604
- netTips: { type: "money", columnKey: "tips", footerCalculation: { type: "sum" } },
605
- tipPercentage: {
606
- type: "percent",
607
- columnKey: "tipPct",
608
- footerCalculation: { type: "average", numeratorField: "grossTips", denominatorField: "grossSales" }
609
- }
610
- };
611
- var AVAILABLE_COLUMNS = [
612
- "employeeName",
613
- "empId",
614
- "payrollId",
615
- "locationName",
616
- "status",
617
- "grossSales",
618
- "grossCash",
619
- "grossCc",
620
- "totalPayments",
621
- "autoGratuity",
622
- "grossTips",
623
- "declaredTips",
624
- "tipReduction",
625
- "tipShare",
626
- "netTips",
627
- "tipPercentage"
628
- ];
629
- var employeeTipConfig = {
630
- fields: FIELDS9,
631
- availableColumns: AVAILABLE_COLUMNS,
632
- defaultVisibleColumns: AVAILABLE_COLUMNS,
633
- hasFooter: true
634
- };
635
-
636
- // src/reports/dailySales.ts
637
- var FIELDS10 = {
638
- groupById: { type: "string" },
639
- groupByName: { type: "string", size: FIRST_COLUMN_WIDTH },
640
- itemsQuantity: { type: "number", columnKey: "quantity" },
641
- salesAmountGross: { type: "money", columnKey: "grossSales" },
642
- discountsAmount: { type: "money", columnKey: "discountAmount" },
643
- inclusiveTaxesAmount: { type: "money", columnKey: "inclusiveTax" },
644
- salesAmountNet: { type: "money", columnKey: "netSales" },
645
- salesMixPct: { type: "percent", columnKey: "salesMixByPct" }
646
- };
647
- var DAILY_SALES_AVAILABLE_COLUMNS = [
648
- "itemsQuantity",
649
- "salesAmountGross",
650
- "discountsAmount",
651
- "inclusiveTaxesAmount",
652
- "salesAmountNet",
653
- "salesMixPct"
654
- ];
655
- var dailySalesConfig = {
656
- fields: FIELDS10,
657
- availableColumns: DAILY_SALES_AVAILABLE_COLUMNS,
658
- defaultVisibleColumns: DAILY_SALES_AVAILABLE_COLUMNS,
659
- hasFooter: true,
660
- dataAccessKey: "salesByRevClass",
661
- sectionName: "common.report-section.revenue-class",
662
- extraFooterRowsKey: "salesByRevClassFooter"
663
- };
664
-
665
- // src/reports/dailySalesCache.ts
666
- var FIELDS11 = {
667
- name: { type: "string", columnKey: "type", size: FIRST_COLUMN_WIDTH },
668
- amount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } }
669
- };
670
- var dailySalesCacheConfig = {
671
- fields: FIELDS11,
672
- availableColumns: ["name", "amount"],
673
- defaultVisibleColumns: ["name", "amount"],
674
- hasFooter: true,
675
- dataAccessKey: "cashPayments",
676
- sectionName: "common.report-section.cash"
677
- };
678
-
679
- // src/reports/dailySalesDiscounts.ts
680
- var FIELDS12 = {
681
- discountName: { type: "string", columnKey: "discountName", size: FIRST_COLUMN_WIDTH },
682
- ticketCount: { type: "number", columnKey: "ticketCount", footerCalculation: { type: "sum" } },
683
- itemCount: { type: "number", columnKey: "itemCount", footerCalculation: { type: "sum" } },
684
- discountsAmount: { type: "money", columnKey: "discountAmount", footerCalculation: { type: "sum" } }
685
- };
686
- var DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS = [
687
- "discountName",
688
- "ticketCount",
689
- "itemCount",
690
- "discountsAmount"
691
- ];
692
- var dailySalesDiscountsConfig = {
693
- fields: FIELDS12,
694
- availableColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
695
- defaultVisibleColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
696
- hasFooter: true,
697
- dataAccessKey: "discounts",
698
- sectionName: "common.report-section.discounts"
699
- };
700
-
701
- // src/reports/dailySalesPayments.ts
702
- var FIELDS13 = {
703
- paymentTypeName: { type: "string", size: FIRST_COLUMN_WIDTH },
704
- paymentsCount: { type: "number", columnKey: "paymentsCount", footerCalculation: { type: "sum" } },
705
- paymentsAmount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } },
706
- tipsAmount: { type: "money", columnKey: "tips", footerCalculation: { type: "sum" } },
707
- totalSales: { type: "money", columnKey: "paymentsTotal", footerCalculation: { type: "sum" } }
708
- };
709
- var DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS = [
710
- "paymentTypeName",
711
- "paymentsCount",
712
- "paymentsAmount",
713
- "tipsAmount",
714
- "totalSales"
715
- ];
716
- var dailySalesPaymentsConfig = {
717
- fields: FIELDS13,
718
- availableColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
719
- defaultVisibleColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
720
- hasFooter: true,
721
- dataAccessKey: "payments",
722
- sectionName: "common.report-section.payments"
723
- };
724
-
725
- // src/reports/dailySalesRefundsVoids.ts
726
- var FIELDS14 = {
727
- description: { type: "string", columnKey: "refundVoidDescription", size: FIRST_COLUMN_WIDTH },
728
- count: { type: "number", columnKey: "refundVoidCount", footerCalculation: { type: "sum" } },
729
- amount: { type: "money", columnKey: "refundVoidAmount", footerCalculation: { type: "sum" } },
730
- pctSales: { type: "percent", columnKey: "refundVoidPctSales", footerCalculation: { type: "sum" } }
731
- };
732
- var DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS = [
733
- "description",
734
- "count",
735
- "amount",
736
- "pctSales"
737
- ];
738
- var dailySalesRefundsVoidsConfig = {
739
- fields: FIELDS14,
740
- availableColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
741
- defaultVisibleColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
742
- hasFooter: true,
743
- dataAccessKey: "refundsVoids",
744
- sectionName: "common.report-section.refunds-voids"
745
- };
746
-
747
- // src/reports/dailySalesTaxes.ts
748
- var FIELDS15 = {
749
- taxName: { type: "string", columnKey: "taxName", size: FIRST_COLUMN_WIDTH },
750
- taxableSales: { type: "money", columnKey: "taxableSales", footerCalculation: { type: "none" } },
751
- taxesAmount: { type: "money", columnKey: "taxCollected", footerCalculation: { type: "sum" } },
752
- exemptSales: { type: "money", columnKey: "exemptSales", footerCalculation: { type: "sum" } }
753
- };
754
- var DAILY_SALES_TAXES_AVAILABLE_COLUMNS = [
755
- "taxName",
756
- "taxableSales",
757
- "taxesAmount",
758
- "exemptSales"
759
- ];
760
- var dailySalesTaxesConfig = {
761
- fields: FIELDS15,
762
- availableColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
763
- defaultVisibleColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
764
- hasFooter: true,
765
- dataAccessKey: "taxes",
766
- sectionName: "common.report-section.taxes"
767
- };
768
-
769
- // src/reports/dailySalesTrends.ts
770
- var FIELDS16 = {
771
- groupById: { type: "string" },
772
- groupByName: { type: "string", size: FIRST_COLUMN_WIDTH },
773
- salesAmountNet: { type: "money", columnKey: "netSales" },
774
- ticketsCount: { type: "number", columnKey: "tickets" },
775
- guestsCount: { type: "number", columnKey: "guests" },
776
- ticketAvg: {
777
- type: "money",
778
- columnKey: "ticketAverage",
779
- footerCalculation: {
780
- type: "average",
781
- numeratorField: "salesAmountNet",
782
- denominatorField: "ticketsCount"
783
- }
784
- },
785
- guestAvg: {
786
- type: "money",
787
- columnKey: "guestAverage",
788
- footerCalculation: {
789
- type: "average",
790
- numeratorField: "salesAmountNet",
791
- denominatorField: "guestsCount"
792
- }
793
- }
794
- };
795
- var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS = [
796
- "ticketsCount",
797
- "guestsCount",
798
- "ticketAvg",
799
- "guestAvg",
800
- "salesAmountNet"
801
- ];
802
- var dailySalesTrendsConfig = {
803
- fields: FIELDS16,
804
- availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
805
- defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
806
- hasFooter: true,
807
- dataAccessKey: "trendsByDayPart",
808
- sectionName: "common.report-section.sales-by-day-part",
809
- totalsLabel: "common.report-section.trends-footer.total-sales",
810
- extraFooterFields: ["salesAmountNet"]
811
- };
812
- var dailySalesTrendsOrderTypeConfig = {
813
- fields: FIELDS16,
814
- availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
815
- defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
816
- hasFooter: true,
817
- dataAccessKey: "trendsByOrderType",
818
- sectionName: "common.report-section.sales-by-order-type",
819
- totalsLabel: "common.report-section.trends-footer.total-sales",
820
- extraFooterFields: ["salesAmountNet"]
821
- };
822
-
823
- // src/report.ts
824
- var Report = {
825
- TICKET_LIVE: "ticket-live",
826
- TICKET_ANALYTICS: "ticket-analytics",
827
- SALES_SUMMARY: "sales-summary",
828
- PRODUCT_MIX: "product-mix",
829
- MODIFIER_MIX: "modifier-mix",
830
- ITEM_TAX: "item-tax",
831
- EMPLOYEE_TIMECARD: "employee-timecard",
832
- EMPLOYEE_TIP: "employee-tip",
833
- SALES_BY_ITEM: "sales-by-item",
834
- DAILY_SALES: "daily-sales",
835
- DAILY_SALES_LIVE: "daily-sales-live",
836
- DAILY_SALES_TRENDS: "daily-sales-trends"
837
- };
838
- var DAILY_SALES_SECTION_CONFIGS = [
1
+ import {
2
+ COLUMN_REGISTRY,
3
+ FIRST_COLUMN_WIDTH,
4
+ Report,
5
+ calculateFieldTotal,
6
+ calculateReportTotals,
7
+ dailySalesCacheConfig,
839
8
  dailySalesConfig,
9
+ dailySalesDiscountsConfig,
840
10
  dailySalesPaymentsConfig,
841
- dailySalesCacheConfig,
842
- dailySalesTaxesConfig,
843
11
  dailySalesRefundsVoidsConfig,
844
- dailySalesDiscountsConfig,
12
+ dailySalesTaxesConfig,
845
13
  dailySalesTrendsConfig,
846
- dailySalesTrendsOrderTypeConfig
847
- ];
848
- var REPORT_CONFIG_MAP = {
849
- "sales-summary": salesSummaryConfig,
850
- "ticket-analytics": ticketSummaryConfig,
851
- "ticket-live": ticketLiveConfig,
852
- "product-mix": productMixConfig,
853
- "modifier-mix": modifierMixConfig,
854
- "item-tax": itemTaxConfig,
855
- "employee-timecard": employeeTimecardConfig,
856
- "employee-tip": employeeTipConfig,
857
- "sales-by-item": salesByItemDetailConfig,
858
- "daily-sales": DAILY_SALES_SECTION_CONFIGS,
859
- "daily-sales-live": DAILY_SALES_SECTION_CONFIGS,
860
- "daily-sales-trends": null
861
- };
862
- var REPORT_DEFAULT_NAME_MAP = {
863
- "sales-summary": "Sales",
864
- "ticket-analytics": "Tickets",
865
- "ticket-live": "Tickets Live",
866
- "product-mix": "Product Mix",
867
- "modifier-mix": "Modifier Mix",
868
- "item-tax": "Sales Tax by Item",
869
- "employee-timecard": "Employee Timecard",
870
- "employee-tip": "Employee Tip",
871
- "sales-by-item": "Sales by Item",
872
- "daily-sales": "Daily Sales",
873
- "daily-sales-live": "Daily Sales Live",
874
- "daily-sales-trends": "Daily Sales Trends"
875
- };
876
- var getReportConfig = (reportType) => REPORT_CONFIG_MAP[reportType];
877
- var getReportExportFileName = ({
878
- reportType,
879
- startDate,
880
- endDate,
881
- format
882
- }) => {
883
- const formatDate2 = (date) => {
884
- return [
885
- date.getFullYear(),
886
- String(date.getMonth() + 1).padStart(2, "0"),
887
- String(date.getDate()).padStart(2, "0")
888
- ].join("-");
889
- };
890
- const filename = REPORT_DEFAULT_NAME_MAP[reportType].replace(/\s+/g, "_") ?? "Report";
891
- return `${filename}_${formatDate2(startDate)}_to_${formatDate2(endDate)}.${format}`.toLocaleLowerCase();
892
- };
893
-
894
- // src/columns/index.ts
895
- var COLUMN_REGISTRY = {
896
- fifteenMinInterval: {
897
- titleKey: "common.report-col.fifteen-min-interval",
898
- shortTitleKey: "common.report-col.fifteen-min-interval.short",
899
- infoTextKey: "common.report-col.fifteen-min-interval.info"
900
- },
901
- adjustedTips: {
902
- titleKey: "common.report-col.adjusted-tips",
903
- shortTitleKey: "common.report-col.adjusted-tips.short",
904
- infoTextKey: "common.report-col.adjusted-tips.info"
905
- },
906
- advantageProgram: {
907
- titleKey: "common.report-col.advantage-program",
908
- shortTitleKey: "common.report-col.advantage-program.short",
909
- infoTextKey: "common.report-col.advantage-program.info"
910
- },
911
- amex: {
912
- titleKey: "common.report-col.amex",
913
- shortTitleKey: "common.report-col.amex.short",
914
- infoTextKey: "common.report-col.amex.info"
915
- },
916
- amexReturns: {
917
- titleKey: "common.report-col.amex-returns",
918
- shortTitleKey: "common.report-col.amex-returns.short",
919
- infoTextKey: "common.report-col.amex-returns.info"
920
- },
921
- attachRate: {
922
- titleKey: "common.report-col.attach-rate",
923
- shortTitleKey: "common.report-col.attach-rate.short",
924
- infoTextKey: "common.report-col.attach-rate.info"
925
- },
926
- autoGratuity: {
927
- titleKey: "common.report-col.auto-gratuity",
928
- shortTitleKey: "common.report-col.auto-gratuity.short",
929
- infoTextKey: "common.report-col.auto-gratuity.info"
930
- },
931
- averageGrossPrice: {
932
- titleKey: "common.report-col.average-gross-price",
933
- shortTitleKey: "common.report-col.average-gross-price.short",
934
- infoTextKey: "common.report-col.average-gross-price.info"
935
- },
936
- bankFees: {
937
- titleKey: "common.report-col.bank-fees",
938
- shortTitleKey: "common.report-col.bank-fees.short",
939
- infoTextKey: "common.report-col.bank-fees.info"
940
- },
941
- batchAmount: {
942
- titleKey: "common.report-col.batch-amount",
943
- shortTitleKey: "common.report-col.batch-amount.short",
944
- infoTextKey: "common.report-col.batch-amount.info"
945
- },
946
- batchDate: {
947
- titleKey: "common.report-col.batch-date",
948
- shortTitleKey: "common.report-col.batch-date.short",
949
- infoTextKey: "common.report-col.batch-date.info"
950
- },
951
- batchNumber: {
952
- titleKey: "common.report-col.batch-number",
953
- shortTitleKey: "common.report-col.batch-number.short",
954
- infoTextKey: "common.report-col.batch-number.info"
955
- },
956
- clockInTime: {
957
- titleKey: "common.report-col.clock-in-time",
958
- shortTitleKey: "common.report-col.clock-in-time.short",
959
- infoTextKey: "common.report-col.clock-in-time.info"
960
- },
961
- clockOutTime: {
962
- titleKey: "common.report-col.clock-out-time",
963
- shortTitleKey: "common.report-col.clock-out-time.short",
964
- infoTextKey: "common.report-col.clock-out-time.info"
965
- },
966
- country: {
967
- titleKey: "common.report-col.country",
968
- shortTitleKey: "common.report-col.country.short",
969
- infoTextKey: "common.report-col.country.info"
970
- },
971
- customerName: {
972
- titleKey: "common.report-col.customer-name",
973
- shortTitleKey: "common.report-col.customer-name.short",
974
- infoTextKey: "common.report-col.customer-name.info"
975
- },
976
- date: {
977
- titleKey: "common.report-col.date",
978
- shortTitleKey: "common.report-col.date.short",
979
- infoTextKey: "common.report-col.date.info"
980
- },
981
- dateClose: {
982
- titleKey: "common.report-col.date-close",
983
- shortTitleKey: "common.report-col.date-close.short",
984
- infoTextKey: "common.report-col.date-close.info"
985
- },
986
- daypart: {
987
- titleKey: "common.report-col.daypart",
988
- shortTitleKey: "common.report-col.daypart.short",
989
- infoTextKey: "common.report-col.daypart.info"
990
- },
991
- debit: {
992
- titleKey: "common.report-col.debit",
993
- shortTitleKey: "common.report-col.debit.short",
994
- infoTextKey: "common.report-col.debit.info"
995
- },
996
- debitReturns: {
997
- titleKey: "common.report-col.debit-returns",
998
- shortTitleKey: "common.report-col.debit-returns.short",
999
- infoTextKey: "common.report-col.debit-returns.info"
1000
- },
1001
- declaredTips: {
1002
- titleKey: "common.report-col.declared-tips",
1003
- shortTitleKey: "common.report-col.declared-tips.short",
1004
- infoTextKey: "common.report-col.declared-tips.info"
1005
- },
1006
- department: {
1007
- titleKey: "common.report-col.department",
1008
- shortTitleKey: "common.report-col.department.short",
1009
- infoTextKey: "common.report-col.department.info"
1010
- },
1011
- depositCurrency: {
1012
- titleKey: "common.report-col.deposit-currency",
1013
- shortTitleKey: "common.report-col.deposit-currency.short",
1014
- infoTextKey: "common.report-col.deposit-currency.info"
1015
- },
1016
- depositDate: {
1017
- titleKey: "common.report-col.deposit-date",
1018
- shortTitleKey: "common.report-col.deposit-date.short",
1019
- infoTextKey: "common.report-col.deposit-date.info"
1020
- },
1021
- discountAmount: {
1022
- titleKey: "common.report-col.discount-amount",
1023
- shortTitleKey: "common.report-col.discount-amount.short",
1024
- infoTextKey: "common.report-col.discount-amount.info"
1025
- },
1026
- discountCount: {
1027
- titleKey: "common.report-col.discount-count",
1028
- shortTitleKey: "common.report-col.discount-count.short",
1029
- infoTextKey: "common.report-col.discount-count.info"
1030
- },
1031
- ticketCount: {
1032
- titleKey: "common.report-col.ticket-count",
1033
- shortTitleKey: "common.report-col.ticket-count.short",
1034
- infoTextKey: "common.report-col.ticket-count.info"
1035
- },
1036
- itemCount: {
1037
- titleKey: "common.report-col.item-count",
1038
- shortTitleKey: "common.report-col.item-count.short",
1039
- infoTextKey: "common.report-col.item-count.info"
1040
- },
1041
- discover: {
1042
- titleKey: "common.report-col.discover",
1043
- shortTitleKey: "common.report-col.discover.short",
1044
- infoTextKey: "common.report-col.discover.info"
1045
- },
1046
- discoverReturns: {
1047
- titleKey: "common.report-col.discover-returns",
1048
- shortTitleKey: "common.report-col.discover-returns.short",
1049
- infoTextKey: "common.report-col.discover-returns.info"
1050
- },
1051
- ebt: {
1052
- titleKey: "common.report-col.ebt",
1053
- shortTitleKey: "common.report-col.ebt.short",
1054
- infoTextKey: "common.report-col.ebt.info"
1055
- },
1056
- ebtReturns: {
1057
- titleKey: "common.report-col.ebt-returns",
1058
- shortTitleKey: "common.report-col.ebt-returns.short",
1059
- infoTextKey: "common.report-col.ebt-returns.info"
1060
- },
1061
- employeeId: {
1062
- titleKey: "common.report-col.employee-id",
1063
- shortTitleKey: "common.report-col.employee-id.short",
1064
- infoTextKey: "common.report-col.employee-id.info"
1065
- },
1066
- employeeJob: {
1067
- titleKey: "common.report-col.employee-job",
1068
- shortTitleKey: "common.report-col.employee-job.short",
1069
- infoTextKey: "common.report-col.employee-job.info"
1070
- },
1071
- employeeName: {
1072
- titleKey: "common.report-col.employee-name",
1073
- shortTitleKey: "common.report-col.employee-name.short",
1074
- infoTextKey: "common.report-col.employee-name.info"
1075
- },
1076
- exemptTaxes: {
1077
- titleKey: "common.report-col.exempt-taxes",
1078
- shortTitleKey: "common.report-col.exempt-taxes.short",
1079
- infoTextKey: "common.report-col.exempt-taxes.info"
1080
- },
1081
- exemptSales: {
1082
- titleKey: "common.report-col.exempt-sales",
1083
- shortTitleKey: "common.report-col.exempt-sales.short",
1084
- infoTextKey: "common.report-col.exempt-sales.info"
1085
- },
1086
- grandTotal: {
1087
- titleKey: "common.report-col.grand-total",
1088
- shortTitleKey: "common.report-col.grand-total.short",
1089
- infoTextKey: "common.report-col.grand-total.info"
1090
- },
1091
- grossCashSales: {
1092
- titleKey: "common.report-col.gross-cash-sales",
1093
- shortTitleKey: "common.report-col.gross-cash-sales.short",
1094
- infoTextKey: "common.report-col.gross-cash-sales.info"
1095
- },
1096
- grossCashTips: {
1097
- titleKey: "common.report-col.gross-cash-tips",
1098
- shortTitleKey: "common.report-col.gross-cash-tips.short",
1099
- infoTextKey: "common.report-col.gross-cash-tips.info"
1100
- },
1101
- grossCreditCardTips: {
1102
- titleKey: "common.report-col.gross-credit-card-tips",
1103
- shortTitleKey: "common.report-col.gross-credit-card-tips.short",
1104
- infoTextKey: "common.report-col.gross-credit-card-tips.info"
1105
- },
1106
- grossCreditSales: {
1107
- titleKey: "common.report-col.gross-credit-sales",
1108
- shortTitleKey: "common.report-col.gross-credit-sales.short",
1109
- infoTextKey: "common.report-col.gross-credit-sales.info"
1110
- },
1111
- grossSales: {
1112
- titleKey: "common.report-col.gross-sales",
1113
- shortTitleKey: "common.report-col.gross-sales.short",
1114
- infoTextKey: "common.report-col.gross-sales.info"
1115
- },
1116
- grossTips: {
1117
- titleKey: "common.report-col.gross-tips",
1118
- shortTitleKey: "common.report-col.gross-tips.short",
1119
- infoTextKey: "common.report-col.gross-tips.info"
1120
- },
1121
- guestCount: {
1122
- titleKey: "common.report-col.guest-count",
1123
- shortTitleKey: "common.report-col.guest-count.short",
1124
- infoTextKey: "common.report-col.guest-count.info"
1125
- },
1126
- guestsVarLw: {
1127
- titleKey: "common.report-col.guests-var-lw",
1128
- shortTitleKey: "common.report-col.guests-var-lw.short",
1129
- infoTextKey: "common.report-col.guests-var-lw.info"
1130
- },
1131
- guestsVarLwPct: {
1132
- titleKey: "common.report-col.guests-var-lw-pct",
1133
- shortTitleKey: "common.report-col.guests-var-lw-pct.short",
1134
- infoTextKey: "common.report-col.guests-var-lw-pct.info"
1135
- },
1136
- guestsVarLy: {
1137
- titleKey: "common.report-col.guests-var-ly",
1138
- shortTitleKey: "common.report-col.guests-var-ly.short",
1139
- infoTextKey: "common.report-col.guests-var-ly.info"
1140
- },
1141
- guestsVarLyPct: {
1142
- titleKey: "common.report-col.guests-var-ly-pct",
1143
- shortTitleKey: "common.report-col.guests-var-ly-pct.short",
1144
- infoTextKey: "common.report-col.guests-var-ly-pct.info"
1145
- },
1146
- hour: {
1147
- titleKey: "common.report-col.hour",
1148
- shortTitleKey: "common.report-col.hour.short",
1149
- infoTextKey: "common.report-col.hour.info"
1150
- },
1151
- hoursWorked: {
1152
- titleKey: "common.report-col.hours-worked",
1153
- shortTitleKey: "common.report-col.hours-worked.short",
1154
- infoTextKey: "common.report-col.hours-worked.info"
1155
- },
1156
- inclusiveTax: {
1157
- titleKey: "common.report-col.inclusive-tax",
1158
- shortTitleKey: "common.report-col.inclusive-tax.short",
1159
- infoTextKey: "common.report-col.inclusive-tax.info"
1160
- },
1161
- itemName: {
1162
- titleKey: "common.report-col.item-name",
1163
- shortTitleKey: "common.report-col.item-name.short",
1164
- infoTextKey: "common.report-col.item-name.info"
1165
- },
1166
- itemPrice: {
1167
- titleKey: "common.report-col.item-price",
1168
- shortTitleKey: "common.report-col.item-price.short",
1169
- infoTextKey: "common.report-col.item-price.info"
1170
- },
1171
- itemQuantity: {
1172
- titleKey: "common.report-col.item-quantity",
1173
- shortTitleKey: "common.report-col.item-quantity.short",
1174
- infoTextKey: "common.report-col.item-quantity.info"
1175
- },
1176
- locationCity: {
1177
- titleKey: "common.report-col.location-city",
1178
- shortTitleKey: "common.report-col.location-city.short",
1179
- infoTextKey: "common.report-col.location-city.info"
1180
- },
1181
- locationId: {
1182
- titleKey: "common.report-col.location-id",
1183
- shortTitleKey: "common.report-col.location-id.short",
1184
- infoTextKey: "common.report-col.location-id.info"
1185
- },
1186
- locationMid: {
1187
- titleKey: "common.report-col.location-mid",
1188
- shortTitleKey: "common.report-col.location-mid.short",
1189
- infoTextKey: "common.report-col.location-mid.info"
1190
- },
1191
- locationName: {
1192
- titleKey: "common.report-col.location-name",
1193
- shortTitleKey: "common.report-col.location-name.short",
1194
- infoTextKey: "common.report-col.location-name.info"
1195
- },
1196
- locationState: {
1197
- titleKey: "common.report-col.location-state",
1198
- shortTitleKey: "common.report-col.location-state.short",
1199
- infoTextKey: "common.report-col.location-state.info"
1200
- },
1201
- mastercard: {
1202
- titleKey: "common.report-col.mastercard",
1203
- shortTitleKey: "common.report-col.mastercard.short",
1204
- infoTextKey: "common.report-col.mastercard.info"
1205
- },
1206
- mcReturns: {
1207
- titleKey: "common.report-col.mc-returns",
1208
- shortTitleKey: "common.report-col.mc-returns.short",
1209
- infoTextKey: "common.report-col.mc-returns.info"
1210
- },
1211
- modifierName: {
1212
- titleKey: "common.report-col.modifier-name",
1213
- shortTitleKey: "common.report-col.modifier-name.short",
1214
- infoTextKey: "common.report-col.modifier-name.info"
1215
- },
1216
- modifierPrice: {
1217
- titleKey: "common.report-col.modifier-price",
1218
- shortTitleKey: "common.report-col.modifier-price.short",
1219
- infoTextKey: "common.report-col.modifier-price.info"
1220
- },
1221
- modifierQuantity: {
1222
- titleKey: "common.report-col.modifier-quantity",
1223
- shortTitleKey: "common.report-col.modifier-quantity.short",
1224
- infoTextKey: "common.report-col.modifier-quantity.info"
1225
- },
1226
- netSales: {
1227
- titleKey: "common.report-col.net-sales",
1228
- shortTitleKey: "common.report-col.net-sales.short",
1229
- infoTextKey: "common.report-col.net-sales.info"
1230
- },
1231
- netTaxCollected: {
1232
- titleKey: "common.report-col.net-tax-collected",
1233
- shortTitleKey: "common.report-col.net-tax-collected.short",
1234
- infoTextKey: "common.report-col.net-tax-collected.info"
1235
- },
1236
- netTips: {
1237
- titleKey: "common.report-col.net-tips",
1238
- shortTitleKey: "common.report-col.net-tips.short",
1239
- infoTextKey: "common.report-col.net-tips.info"
1240
- },
1241
- numberOfGuests: {
1242
- titleKey: "common.report-col.number-of-guests",
1243
- shortTitleKey: "common.report-col.number-of-guests.short",
1244
- infoTextKey: "common.report-col.number-of-guests.info"
1245
- },
1246
- orderType: {
1247
- titleKey: "common.report-col.order-type",
1248
- shortTitleKey: "common.report-col.order-type.short",
1249
- infoTextKey: "common.report-col.order-type.info"
1250
- },
1251
- paymentType: {
1252
- titleKey: "common.report-col.payment-type",
1253
- shortTitleKey: "common.report-col.payment-type.short",
1254
- infoTextKey: "common.report-col.payment-type.info"
1255
- },
1256
- payrollId: {
1257
- titleKey: "common.report-col.payroll-id",
1258
- shortTitleKey: "common.report-col.payroll-id.short",
1259
- infoTextKey: "common.report-col.payroll-id.info"
1260
- },
1261
- quantity: {
1262
- titleKey: "common.report-col.quantity",
1263
- shortTitleKey: "common.report-col.quantity.short",
1264
- infoTextKey: "common.report-col.quantity.info"
1265
- },
1266
- referenceNumber: {
1267
- titleKey: "common.report-col.reference-number",
1268
- shortTitleKey: "common.report-col.reference-number.short",
1269
- infoTextKey: "common.report-col.reference-number.info"
1270
- },
1271
- refundAmount: {
1272
- titleKey: "common.report-col.refund-amount",
1273
- shortTitleKey: "common.report-col.refund-amount.short",
1274
- infoTextKey: "common.report-col.refund-amount.info"
1275
- },
1276
- refundedTaxAmount: {
1277
- titleKey: "common.report-col.refunded-tax-amount",
1278
- shortTitleKey: "common.report-col.refunded-tax-amount.short",
1279
- infoTextKey: "common.report-col.refunded-tax-amount.info"
1280
- },
1281
- revenueCenter: {
1282
- titleKey: "common.report-col.revenue-center",
1283
- shortTitleKey: "common.report-col.revenue-center.short",
1284
- infoTextKey: "common.report-col.revenue-center.info"
1285
- },
1286
- revenueClass: {
1287
- titleKey: "common.report-col.revenue-class",
1288
- shortTitleKey: "common.report-col.revenue-class.short",
1289
- infoTextKey: "common.report-col.revenue-class.info"
1290
- },
1291
- salesVarLw: {
1292
- titleKey: "common.report-col.sales-var-lw",
1293
- shortTitleKey: "common.report-col.sales-var-lw.short",
1294
- infoTextKey: "common.report-col.sales-var-lw.info"
1295
- },
1296
- salesVarLwPct: {
1297
- titleKey: "common.report-col.sales-var-lw-pct",
1298
- shortTitleKey: "common.report-col.sales-var-lw-pct.short",
1299
- infoTextKey: "common.report-col.sales-var-lw-pct.info"
1300
- },
1301
- salesVarLy: {
1302
- titleKey: "common.report-col.sales-var-ly",
1303
- shortTitleKey: "common.report-col.sales-var-ly.short",
1304
- infoTextKey: "common.report-col.sales-var-ly.info"
1305
- },
1306
- salesVarLyPct: {
1307
- titleKey: "common.report-col.sales-var-ly-pct",
1308
- shortTitleKey: "common.report-col.sales-var-ly-pct.short",
1309
- infoTextKey: "common.report-col.sales-var-ly-pct.info"
1310
- },
1311
- salesMixByPct: {
1312
- titleKey: "common.report-col.sales-mix-by-pct",
1313
- shortTitleKey: "common.report-col.sales-mix-by-pct.short",
1314
- infoTextKey: "common.report-col.sales-mix-by-pct.info"
1315
- },
1316
- salesPerGuest: {
1317
- titleKey: "common.report-col.sales-per-guest",
1318
- shortTitleKey: "common.report-col.sales-per-guest.short",
1319
- infoTextKey: "common.report-col.sales-per-guest.info"
1320
- },
1321
- salesPerGuestLw: {
1322
- titleKey: "common.report-col.sales-per-guest-lw",
1323
- shortTitleKey: "common.report-col.sales-per-guest-lw.short",
1324
- infoTextKey: "common.report-col.sales-per-guest-lw.info"
1325
- },
1326
- salesPerGuestLy: {
1327
- titleKey: "common.report-col.sales-per-guest-ly",
1328
- shortTitleKey: "common.report-col.sales-per-guest-ly.short",
1329
- infoTextKey: "common.report-col.sales-per-guest-ly.info"
1330
- },
1331
- scheduledShiftEnd: {
1332
- titleKey: "common.report-col.scheduled-shift-end",
1333
- shortTitleKey: "common.report-col.scheduled-shift-end.short",
1334
- infoTextKey: "common.report-col.scheduled-shift-end.info"
1335
- },
1336
- scheduledShiftStart: {
1337
- titleKey: "common.report-col.scheduled-shift-start",
1338
- shortTitleKey: "common.report-col.scheduled-shift-start.short",
1339
- infoTextKey: "common.report-col.scheduled-shift-start.info"
1340
- },
1341
- settlementBatchDate: {
1342
- titleKey: "common.report-col.settlement-batch-date",
1343
- shortTitleKey: "common.report-col.settlement-batch-date.short",
1344
- infoTextKey: "common.report-col.settlement-batch-date.info"
1345
- },
1346
- shiftDurationHrs: {
1347
- titleKey: "common.report-col.shift-duration-hrs",
1348
- shortTitleKey: "common.report-col.shift-duration-hrs.short",
1349
- infoTextKey: "common.report-col.shift-duration-hrs.info"
1350
- },
1351
- salePaymentType: {
1352
- titleKey: "common.report-col.sale-payment-type",
1353
- shortTitleKey: "common.report-col.sale-payment-type.short",
1354
- infoTextKey: "common.report-col.sale-payment-type.info"
1355
- },
1356
- status: {
1357
- titleKey: "common.report-col.status",
1358
- shortTitleKey: "common.report-col.status.short",
1359
- infoTextKey: "common.report-col.status.info"
1360
- },
1361
- lastModified: {
1362
- titleKey: "common.report-col.last-modified",
1363
- shortTitleKey: "common.report-col.last-modified.short",
1364
- infoTextKey: "common.report-col.last-modified.info"
1365
- },
1366
- subtotal: {
1367
- titleKey: "common.report-col.subtotal",
1368
- shortTitleKey: "common.report-col.subtotal.short",
1369
- infoTextKey: "common.report-col.subtotal.info"
1370
- },
1371
- taxCollected: {
1372
- titleKey: "common.report-col.tax-collected",
1373
- shortTitleKey: "common.report-col.tax-collected.short",
1374
- infoTextKey: "common.report-col.tax-collected.info"
1375
- },
1376
- taxName: {
1377
- titleKey: "common.report-col.tax-name",
1378
- shortTitleKey: "common.report-col.tax-name.short",
1379
- infoTextKey: "common.report-col.tax-name.info"
1380
- },
1381
- taxRate: {
1382
- titleKey: "common.report-col.tax-rate",
1383
- shortTitleKey: "common.report-col.tax-rate.short",
1384
- infoTextKey: "common.report-col.tax-rate.info"
1385
- },
1386
- taxableSales: {
1387
- titleKey: "common.report-col.taxable-sales",
1388
- shortTitleKey: "common.report-col.taxable-sales.short",
1389
- infoTextKey: "common.report-col.taxable-sales.info"
1390
- },
1391
- ticketClosed: {
1392
- titleKey: "common.report-col.ticket-closed",
1393
- shortTitleKey: "common.report-col.ticket-closed.short",
1394
- infoTextKey: "common.report-col.ticket-closed.info"
1395
- },
1396
- ticketFee: {
1397
- titleKey: "common.report-col.ticket-fee",
1398
- shortTitleKey: "common.report-col.ticket-fee.short",
1399
- infoTextKey: "common.report-col.ticket-fee.info"
1400
- },
1401
- ticketNumber: {
1402
- titleKey: "common.report-col.ticket-number",
1403
- shortTitleKey: "common.report-col.ticket-number.short",
1404
- infoTextKey: "common.report-col.ticket-number.info"
1405
- },
1406
- ticketOpen: {
1407
- titleKey: "common.report-col.ticket-open",
1408
- shortTitleKey: "common.report-col.ticket-open.short",
1409
- infoTextKey: "common.report-col.ticket-open.info"
1410
- },
1411
- ticketTotal: {
1412
- titleKey: "common.report-col.ticket-total",
1413
- shortTitleKey: "common.report-col.ticket-total.short",
1414
- infoTextKey: "common.report-col.ticket-total.info"
1415
- },
1416
- timeOpenMins: {
1417
- titleKey: "common.report-col.time-open-mins",
1418
- shortTitleKey: "common.report-col.time-open-mins.short",
1419
- infoTextKey: "common.report-col.time-open-mins.info"
1420
- },
1421
- tipPct: {
1422
- titleKey: "common.report-col.tip-pct",
1423
- shortTitleKey: "common.report-col.tip-pct.short",
1424
- infoTextKey: "common.report-col.tip-pct.info"
1425
- },
1426
- tipReduction: {
1427
- titleKey: "common.report-col.tip-reduction",
1428
- shortTitleKey: "common.report-col.tip-reduction.short",
1429
- infoTextKey: "common.report-col.tip-reduction.info"
1430
- },
1431
- tipShare: {
1432
- titleKey: "common.report-col.tip-share",
1433
- shortTitleKey: "common.report-col.tip-share.short",
1434
- infoTextKey: "common.report-col.tip-share.info"
1435
- },
1436
- tips: {
1437
- titleKey: "common.report-col.tips",
1438
- shortTitleKey: "common.report-col.tips.short",
1439
- infoTextKey: "common.report-col.tips.info"
1440
- },
1441
- tipsPerHour: {
1442
- titleKey: "common.report-col.tips-per-hour",
1443
- shortTitleKey: "common.report-col.tips-per-hour.short",
1444
- infoTextKey: "common.report-col.tips-per-hour.info"
1445
- },
1446
- totalCollected: {
1447
- titleKey: "common.report-col.total-collected",
1448
- shortTitleKey: "common.report-col.total-collected.short",
1449
- infoTextKey: "common.report-col.total-collected.info"
1450
- },
1451
- totalItemSales: {
1452
- titleKey: "common.report-col.total-item-sales",
1453
- shortTitleKey: "common.report-col.total-item-sales.short",
1454
- infoTextKey: "common.report-col.total-item-sales.info"
1455
- },
1456
- totalModifierSales: {
1457
- titleKey: "common.report-col.total-modifier-sales",
1458
- shortTitleKey: "common.report-col.total-modifier-sales.short",
1459
- infoTextKey: "common.report-col.total-modifier-sales.info"
1460
- },
1461
- totalModifierSalesComp: {
1462
- titleKey: "common.report-col.total-modifier-sales-comp",
1463
- shortTitleKey: "common.report-col.total-modifier-sales-comp.short",
1464
- infoTextKey: "common.report-col.total-modifier-sales-comp.info"
1465
- },
1466
- totalModifierSalesVar: {
1467
- titleKey: "common.report-col.total-modifier-sales-var",
1468
- shortTitleKey: "common.report-col.total-modifier-sales-var.short",
1469
- infoTextKey: "common.report-col.total-modifier-sales-var.info"
1470
- },
1471
- totalModifierSalesVarPct: {
1472
- titleKey: "common.report-col.total-modifier-sales-var-pct",
1473
- shortTitleKey: "common.report-col.total-modifier-sales-var-pct.short",
1474
- infoTextKey: "common.report-col.total-modifier-sales-var-pct.info"
1475
- },
1476
- modifierQuantityComp: {
1477
- titleKey: "common.report-col.modifier-quantity-comp",
1478
- shortTitleKey: "common.report-col.modifier-quantity-comp.short",
1479
- infoTextKey: "common.report-col.modifier-quantity-comp.info"
1480
- },
1481
- modifierQuantityVar: {
1482
- titleKey: "common.report-col.modifier-quantity-var",
1483
- shortTitleKey: "common.report-col.modifier-quantity-var.short",
1484
- infoTextKey: "common.report-col.modifier-quantity-var.info"
1485
- },
1486
- modifierQuantityVarPct: {
1487
- titleKey: "common.report-col.modifier-quantity-var-pct",
1488
- shortTitleKey: "common.report-col.modifier-quantity-var-pct.short",
1489
- infoTextKey: "common.report-col.modifier-quantity-var-pct.info"
1490
- },
1491
- itemQuantityComp: {
1492
- titleKey: "common.report-col.item-quantity-comp",
1493
- shortTitleKey: "common.report-col.item-quantity-comp.short",
1494
- infoTextKey: "common.report-col.item-quantity-comp.info"
1495
- },
1496
- attachRateComp: {
1497
- titleKey: "common.report-col.attach-rate-comp",
1498
- shortTitleKey: "common.report-col.attach-rate-comp.short",
1499
- infoTextKey: "common.report-col.attach-rate-comp.info"
1500
- },
1501
- attachRateVar: {
1502
- titleKey: "common.report-col.attach-rate-var",
1503
- shortTitleKey: "common.report-col.attach-rate-var.short",
1504
- infoTextKey: "common.report-col.attach-rate-var.info"
1505
- },
1506
- attachRateVarPct: {
1507
- titleKey: "common.report-col.attach-rate-var-pct",
1508
- shortTitleKey: "common.report-col.attach-rate-var-pct.short",
1509
- infoTextKey: "common.report-col.attach-rate-var-pct.info"
1510
- },
1511
- totalReturns: {
1512
- titleKey: "common.report-col.total-returns",
1513
- shortTitleKey: "common.report-col.total-returns.short",
1514
- infoTextKey: "common.report-col.total-returns.info"
1515
- },
1516
- totalSales: {
1517
- titleKey: "common.report-col.total-sales",
1518
- shortTitleKey: "common.report-col.total-sales.short",
1519
- infoTextKey: "common.report-col.total-sales.info"
1520
- },
1521
- totalTips: {
1522
- titleKey: "common.report-col.total-tips",
1523
- shortTitleKey: "common.report-col.total-tips.short",
1524
- infoTextKey: "common.report-col.total-tips.info"
1525
- },
1526
- transactionDate: {
1527
- titleKey: "common.report-col.transaction-date",
1528
- shortTitleKey: "common.report-col.transaction-date.short",
1529
- infoTextKey: "common.report-col.transaction-date.info"
1530
- },
1531
- transactionType: {
1532
- titleKey: "common.report-col.transaction-type",
1533
- shortTitleKey: "common.report-col.transaction-type.short",
1534
- infoTextKey: "common.report-col.transaction-type.info"
1535
- },
1536
- untaxedSales: {
1537
- titleKey: "common.report-col.untaxed-sales",
1538
- shortTitleKey: "common.report-col.untaxed-sales.short",
1539
- infoTextKey: "common.report-col.untaxed-sales.info"
1540
- },
1541
- visa: {
1542
- titleKey: "common.report-col.visa",
1543
- shortTitleKey: "common.report-col.visa.short",
1544
- infoTextKey: "common.report-col.visa.info"
1545
- },
1546
- visaReturns: {
1547
- titleKey: "common.report-col.visa-returns",
1548
- shortTitleKey: "common.report-col.visa-returns.short",
1549
- infoTextKey: "common.report-col.visa-returns.info"
1550
- },
1551
- paymentsCount: {
1552
- titleKey: "common.report-col.payments-count",
1553
- shortTitleKey: "common.report-col.payments-count.short",
1554
- infoTextKey: "common.report-col.payments-count.info"
1555
- },
1556
- paymentsAmount: {
1557
- titleKey: "common.report-col.payments-amount",
1558
- shortTitleKey: "common.report-col.payments-amount.short",
1559
- infoTextKey: "common.report-col.payments-amount.info"
1560
- },
1561
- paymentsTotal: {
1562
- titleKey: "common.report-col.payments-total",
1563
- shortTitleKey: "common.report-col.payments-total.short",
1564
- infoTextKey: "common.report-col.payments-total.info"
1565
- },
1566
- refundVoidDescription: {
1567
- titleKey: "common.report-col.refund-void-description",
1568
- shortTitleKey: "common.report-col.refund-void-description.short",
1569
- infoTextKey: "common.report-col.refund-void-description.info"
1570
- },
1571
- refundVoidCount: {
1572
- titleKey: "common.report-col.refund-void-count",
1573
- shortTitleKey: "common.report-col.refund-void-count.short",
1574
- infoTextKey: "common.report-col.refund-void-count.info"
1575
- },
1576
- refundVoidAmount: {
1577
- titleKey: "common.report-col.refund-void-amount",
1578
- shortTitleKey: "common.report-col.refund-void-amount.short",
1579
- infoTextKey: "common.report-col.refund-void-amount.info"
1580
- },
1581
- refundVoidPctSales: {
1582
- titleKey: "common.report-col.refund-void-pct-sales",
1583
- shortTitleKey: "common.report-col.refund-void-pct-sales.short",
1584
- infoTextKey: "common.report-col.refund-void-pct-sales.info"
1585
- },
1586
- discountName: {
1587
- titleKey: "common.report-col.discount-name",
1588
- shortTitleKey: "common.report-col.discount-name.short",
1589
- infoTextKey: "common.report-col.discount-name.info"
1590
- },
1591
- tickets: {
1592
- titleKey: "common.report-col.tickets",
1593
- shortTitleKey: "common.report-col.tickets.short",
1594
- infoTextKey: "common.report-col.tickets.info"
1595
- },
1596
- guests: {
1597
- titleKey: "common.report-col.guests",
1598
- shortTitleKey: "common.report-col.guests.short",
1599
- infoTextKey: "common.report-col.guests.info"
1600
- },
1601
- ticketAverage: {
1602
- titleKey: "common.report-col.ticket-average",
1603
- shortTitleKey: "common.report-col.ticket-average.short",
1604
- infoTextKey: "common.report-col.ticket-average.info"
1605
- },
1606
- guestAverage: {
1607
- titleKey: "common.report-col.guest-average",
1608
- shortTitleKey: "common.report-col.guest-average.short",
1609
- infoTextKey: "common.report-col.guest-average.info"
1610
- },
1611
- net: {
1612
- titleKey: "common.report-col.net",
1613
- shortTitleKey: "common.report-col.net.short",
1614
- infoTextKey: "common.report-col.net.info"
1615
- },
1616
- type: {
1617
- titleKey: "common.report-col.type",
1618
- shortTitleKey: "common.report-col.type.short",
1619
- infoTextKey: "common.report-col.type.info"
1620
- }
1621
- };
1622
- function getColumnMetadata(key) {
1623
- return COLUMN_REGISTRY[key];
1624
- }
1625
- function getColumnExportHeaderLabel(colTitle, groupTitle) {
1626
- if (groupTitle) {
1627
- return `${groupTitle}: ${colTitle}`;
1628
- }
1629
- return colTitle;
1630
- }
14
+ dailySalesTrendsOrderTypeConfig,
15
+ employeeTimecardConfig,
16
+ employeeTipConfig,
17
+ formatDate,
18
+ formatFieldValue,
19
+ formatFixedNumber,
20
+ formatInteger,
21
+ formatMoney,
22
+ formatMoneyWithoutSymbol,
23
+ formatPercent,
24
+ formatString,
25
+ formatTime,
26
+ getColumnExportHeaderLabel,
27
+ getColumnMetadata,
28
+ getDateToFormat,
29
+ getNumberToFormat,
30
+ getReportConfig,
31
+ getReportExportFileName,
32
+ getReportFormattingLocaleOptions,
33
+ itemTaxConfig,
34
+ modifierMixConfig,
35
+ productMixConfig,
36
+ resolveTranslate,
37
+ salesByItemDetailConfig,
38
+ salesSummaryConfig,
39
+ ticketLiveConfig,
40
+ ticketSummaryConfig
41
+ } from "./chunk-7NXZJEGU.js";
1631
42
 
1632
43
  // src/utils/alignment.ts
1633
44
  function getColumnAlignment(type) {
@@ -1640,61 +51,8 @@ function isNumericType(type) {
1640
51
  return type === "money" || type === "number" || type === "percent" || type === "fixedNumber";
1641
52
  }
1642
53
 
1643
- // src/totals.ts
1644
- var sumField = (rows, field) => rows.reduce((acc, row) => acc + (row[field] ?? 0), 0);
1645
- var calculateFieldTotal = (rows, field, config) => {
1646
- const { type } = config;
1647
- if (!type || type === "string" || type === "date" || type === "time" || type === "boolean" || type === "conditional") {
1648
- return null;
1649
- }
1650
- const calc = config.footerCalculation;
1651
- if (calc?.type === "none") {
1652
- return null;
1653
- }
1654
- if (calc?.type === "count") {
1655
- return rows.length;
1656
- }
1657
- if (!calc || calc.type === "sum") {
1658
- return config.columnKey || calc?.type === "sum" ? sumField(rows, field) : 0;
1659
- }
1660
- const { numeratorField, denominatorField } = calc;
1661
- if (!numeratorField || !denominatorField) {
1662
- return 0;
1663
- }
1664
- const num = sumField(rows, numeratorField);
1665
- const den = sumField(rows, denominatorField);
1666
- if (calc.type === "percentChange") {
1667
- return den ? (num - den) / den : 0;
1668
- }
1669
- if (calc.type === "variancePercent") {
1670
- const prior = den - num;
1671
- return prior ? num / prior : 0;
1672
- }
1673
- if (calc.type === "average") {
1674
- return den > 0 ? num / den : 0;
1675
- }
1676
- if (calc.type === "quotientOfDifferences") {
1677
- const { numeratorAdjustField, denominatorAdjustField } = calc;
1678
- const numAdj = numeratorAdjustField ? sumField(rows, numeratorAdjustField) : 0;
1679
- const denAdj = denominatorAdjustField ? sumField(rows, denominatorAdjustField) : 0;
1680
- const effectiveDen = den - denAdj;
1681
- return effectiveDen !== 0 ? (num - numAdj) / effectiveDen : 0;
1682
- }
1683
- return 0;
1684
- };
1685
- var calculateReportTotals = (data, fieldConfig, opts) => {
1686
- const { labelField, label } = opts;
1687
- const result = {};
1688
- for (const [field, config] of Object.entries(fieldConfig)) {
1689
- const total = calculateFieldTotal(data, field, config);
1690
- result[field] = total ?? "";
1691
- }
1692
- result[labelField] = label;
1693
- return result;
1694
- };
1695
-
1696
54
  // src/reports/dailySalesLive.ts
1697
- var FIELDS17 = {
55
+ var FIELDS = {
1698
56
  groupById: { type: "string" },
1699
57
  groupByName: { type: "string", size: FIRST_COLUMN_WIDTH },
1700
58
  itemsQuantity: { type: "number", columnKey: "quantity" },
@@ -1714,7 +72,7 @@ var DAILY_SALES_LIVE_AVAILABLE_COLUMNS = [
1714
72
  "salesMixPct"
1715
73
  ];
1716
74
  var dailySalesLiveConfig = {
1717
- fields: FIELDS17,
75
+ fields: FIELDS,
1718
76
  availableColumns: DAILY_SALES_LIVE_AVAILABLE_COLUMNS,
1719
77
  defaultVisibleColumns: DAILY_SALES_LIVE_AVAILABLE_COLUMNS,
1720
78
  hasFooter: true
@@ -1827,1485 +185,6 @@ var REPORT_SECTION_CONFIGS = {
1827
185
  [Report.DAILY_SALES]: DAILY_SALES_SECTIONS,
1828
186
  [Report.DAILY_SALES_LIVE]: DAILY_SALES_SECTIONS
1829
187
  };
1830
-
1831
- // src/translations/crowdin/skytab-analytics-report-utils/en-GB.ts
1832
- var enUS = {
1833
- "common.report-col.fifteen-min-interval": false,
1834
- "common.report-col.fifteen-min-interval.short": false,
1835
- "common.report-col.fifteen-min-interval.info": false,
1836
- "common.report-col.adjusted-tips": false,
1837
- "common.report-col.adjusted-tips.short": false,
1838
- "common.report-col.adjusted-tips.info": false,
1839
- "common.report-col.advantage-program": false,
1840
- "common.report-col.advantage-program.short": false,
1841
- "common.report-col.advantage-program.info": false,
1842
- "common.report-col.amex": false,
1843
- "common.report-col.amex.short": false,
1844
- "common.report-col.amex.info": false,
1845
- "common.report-col.amex-returns": false,
1846
- "common.report-col.amex-returns.short": false,
1847
- "common.report-col.amex-returns.info": false,
1848
- "common.report-col.attach-rate": false,
1849
- "common.report-col.attach-rate.short": false,
1850
- "common.report-col.attach-rate.info": false,
1851
- "common.report-col.auto-gratuity": false,
1852
- "common.report-col.auto-gratuity.short": false,
1853
- "common.report-col.auto-gratuity.info": false,
1854
- "common.report-col.average-gross-price": false,
1855
- "common.report-col.average-gross-price.short": false,
1856
- "common.report-col.average-gross-price.info": false,
1857
- "common.report-col.bank-fees": false,
1858
- "common.report-col.bank-fees.short": false,
1859
- "common.report-col.bank-fees.info": false,
1860
- "common.report-col.batch-amount": false,
1861
- "common.report-col.batch-amount.short": false,
1862
- "common.report-col.batch-amount.info": false,
1863
- "common.report-col.batch-date": false,
1864
- "common.report-col.batch-date.short": false,
1865
- "common.report-col.batch-date.info": false,
1866
- "common.report-col.batch-number": false,
1867
- "common.report-col.batch-number.short": false,
1868
- "common.report-col.batch-number.info": false,
1869
- "common.report-col.clock-in-time": false,
1870
- "common.report-col.clock-in-time.short": false,
1871
- "common.report-col.clock-in-time.info": false,
1872
- "common.report-col.clock-out-time": false,
1873
- "common.report-col.clock-out-time.short": false,
1874
- "common.report-col.clock-out-time.info": false,
1875
- "common.report-col.status": false,
1876
- "common.report-col.status.short": false,
1877
- "common.report-col.status.info": false,
1878
- "common.report-col.last-modified": false,
1879
- "common.report-col.last-modified.short": false,
1880
- "common.report-col.last-modified.info": false,
1881
- "common.report-col.country": false,
1882
- "common.report-col.country.short": false,
1883
- "common.report-col.country.info": false,
1884
- "common.report-col.customer-name": false,
1885
- "common.report-col.customer-name.short": false,
1886
- "common.report-col.customer-name.info": false,
1887
- "common.report-col.date": false,
1888
- "common.report-col.date.short": false,
1889
- "common.report-col.date.info": false,
1890
- "common.report-col.date-close": false,
1891
- "common.report-col.date-close.short": false,
1892
- "common.report-col.date-close.info": false,
1893
- "common.report-col.daypart": false,
1894
- "common.report-col.daypart.short": false,
1895
- "common.report-col.daypart.info": false,
1896
- "common.report-col.debit": false,
1897
- "common.report-col.debit.short": false,
1898
- "common.report-col.debit.info": false,
1899
- "common.report-col.debit-returns": false,
1900
- "common.report-col.debit-returns.short": false,
1901
- "common.report-col.debit-returns.info": false,
1902
- "common.report-col.declared-tips": false,
1903
- "common.report-col.declared-tips.short": false,
1904
- "common.report-col.declared-tips.info": false,
1905
- "common.report-col.department": false,
1906
- "common.report-col.department.short": false,
1907
- "common.report-col.department.info": false,
1908
- "common.report-col.deposit-currency": false,
1909
- "common.report-col.deposit-currency.short": false,
1910
- "common.report-col.deposit-currency.info": false,
1911
- "common.report-col.deposit-date": false,
1912
- "common.report-col.deposit-date.short": false,
1913
- "common.report-col.deposit-date.info": false,
1914
- "common.report-col.discount-amount": false,
1915
- "common.report-col.discount-amount.short": false,
1916
- "common.report-col.discount-amount.info": false,
1917
- "common.report-col.discount-count": false,
1918
- "common.report-col.discount-count.short": false,
1919
- "common.report-col.discount-count.info": false,
1920
- "common.report-col.ticket-count": false,
1921
- "common.report-col.ticket-count.short": false,
1922
- "common.report-col.ticket-count.info": false,
1923
- "common.report-col.item-count": false,
1924
- "common.report-col.item-count.short": false,
1925
- "common.report-col.item-count.info": false,
1926
- "common.report-col.discover": false,
1927
- "common.report-col.discover.short": false,
1928
- "common.report-col.discover.info": false,
1929
- "common.report-col.discover-returns": false,
1930
- "common.report-col.discover-returns.short": false,
1931
- "common.report-col.discover-returns.info": false,
1932
- "common.report-col.ebt": false,
1933
- "common.report-col.ebt.short": false,
1934
- "common.report-col.ebt.info": false,
1935
- "common.report-col.ebt-returns": false,
1936
- "common.report-col.ebt-returns.short": false,
1937
- "common.report-col.ebt-returns.info": false,
1938
- "common.report-col.employee-id": false,
1939
- "common.report-col.employee-id.short": false,
1940
- "common.report-col.employee-id.info": false,
1941
- "common.report-col.employee-job": false,
1942
- "common.report-col.employee-job.short": false,
1943
- "common.report-col.employee-job.info": false,
1944
- "common.report-col.employee-name": false,
1945
- "common.report-col.employee-name.short": false,
1946
- "common.report-col.employee-name.info": false,
1947
- "common.report-col.exempt-taxes": false,
1948
- "common.report-col.exempt-taxes.short": false,
1949
- "common.report-col.exempt-taxes.info": false,
1950
- "common.report-col.exempt-sales": false,
1951
- "common.report-col.exempt-sales.short": false,
1952
- "common.report-col.exempt-sales.info": false,
1953
- "common.report-col.grand-total": false,
1954
- "common.report-col.grand-total.short": false,
1955
- "common.report-col.grand-total.info": false,
1956
- "common.report-col.gross-cash-sales": false,
1957
- "common.report-col.gross-cash-sales.short": false,
1958
- "common.report-col.gross-cash-sales.info": false,
1959
- "common.report-col.gross-credit-sales": false,
1960
- "common.report-col.gross-credit-sales.short": false,
1961
- "common.report-col.gross-credit-sales.info": false,
1962
- "common.report-col.gross-sales": false,
1963
- "common.report-col.gross-sales.short": false,
1964
- "common.report-col.gross-sales.info": false,
1965
- "common.report-col.gross-tips": false,
1966
- "common.report-col.gross-tips.short": false,
1967
- "common.report-col.gross-tips.info": false,
1968
- "common.report-col.guest-count": false,
1969
- "common.report-col.guest-count.short": false,
1970
- "common.report-col.guest-count.info": false,
1971
- "common.report-col.guests-var-lw": false,
1972
- "common.report-col.guests-var-lw.short": false,
1973
- "common.report-col.guests-var-lw.info": false,
1974
- "common.report-col.guests-var-lw-pct": false,
1975
- "common.report-col.guests-var-lw-pct.short": false,
1976
- "common.report-col.guests-var-lw-pct.info": false,
1977
- "common.report-col.guests-var-ly": false,
1978
- "common.report-col.guests-var-ly.short": false,
1979
- "common.report-col.guests-var-ly.info": false,
1980
- "common.report-col.guests-var-ly-pct": false,
1981
- "common.report-col.guests-var-ly-pct.short": false,
1982
- "common.report-col.guests-var-ly-pct.info": false,
1983
- "common.report-col.hour": false,
1984
- "common.report-col.hour.short": false,
1985
- "common.report-col.hour.info": false,
1986
- "common.report-col.hours-worked": false,
1987
- "common.report-col.hours-worked.short": false,
1988
- "common.report-col.hours-worked.info": false,
1989
- "common.report-col.inclusive-tax": false,
1990
- "common.report-col.inclusive-tax.short": false,
1991
- "common.report-col.inclusive-tax.info": false,
1992
- "common.report-col.item-name": false,
1993
- "common.report-col.item-name.short": false,
1994
- "common.report-col.item-name.info": false,
1995
- "common.report-col.item-price": false,
1996
- "common.report-col.item-price.short": false,
1997
- "common.report-col.item-price.info": false,
1998
- "common.report-col.location-city": false,
1999
- "common.report-col.location-city.short": false,
2000
- "common.report-col.location-city.info": false,
2001
- "common.report-col.location-id": false,
2002
- "common.report-col.location-id.short": false,
2003
- "common.report-col.location-id.info": false,
2004
- "common.report-col.location-mid": false,
2005
- "common.report-col.location-mid.short": false,
2006
- "common.report-col.location-mid.info": false,
2007
- "common.report-col.location-name": false,
2008
- "common.report-col.location-name.short": false,
2009
- "common.report-col.location-name.info": false,
2010
- "common.report-col.location-state": false,
2011
- "common.report-col.location-state.short": false,
2012
- "common.report-col.location-state.info": false,
2013
- "common.report-col.mastercard": false,
2014
- "common.report-col.mastercard.short": false,
2015
- "common.report-col.mastercard.info": false,
2016
- "common.report-col.mc-returns": false,
2017
- "common.report-col.mc-returns.short": false,
2018
- "common.report-col.mc-returns.info": false,
2019
- "common.report-col.modifier-name": false,
2020
- "common.report-col.modifier-name.short": false,
2021
- "common.report-col.modifier-name.info": false,
2022
- "common.report-col.modifier-price": false,
2023
- "common.report-col.modifier-price.short": false,
2024
- "common.report-col.modifier-price.info": false,
2025
- "common.report-col.modifier-quantity": false,
2026
- "common.report-col.modifier-quantity.short": false,
2027
- "common.report-col.modifier-quantity.info": false,
2028
- "common.report-col.item-quantity": false,
2029
- "common.report-col.item-quantity.short": false,
2030
- "common.report-col.item-quantity.info": false,
2031
- "common.report-col.modifier-quantity-comp": false,
2032
- "common.report-col.modifier-quantity-comp.short": false,
2033
- "common.report-col.modifier-quantity-comp.info": false,
2034
- "common.report-col.item-quantity-comp": false,
2035
- "common.report-col.item-quantity-comp.short": false,
2036
- "common.report-col.item-quantity-comp.info": false,
2037
- "common.report-col.attach-rate-comp": false,
2038
- "common.report-col.attach-rate-comp.short": false,
2039
- "common.report-col.attach-rate-comp.info": false,
2040
- "common.report-col.total-modifier-sales-var": false,
2041
- "common.report-col.total-modifier-sales-var.short": false,
2042
- "common.report-col.total-modifier-sales-var.info": false,
2043
- "common.report-col.total-modifier-sales-var-pct": false,
2044
- "common.report-col.total-modifier-sales-var-pct.short": false,
2045
- "common.report-col.total-modifier-sales-var-pct.info": false,
2046
- "common.report-col.modifier-quantity-var": false,
2047
- "common.report-col.modifier-quantity-var.short": false,
2048
- "common.report-col.modifier-quantity-var.info": false,
2049
- "common.report-col.modifier-quantity-var-pct": false,
2050
- "common.report-col.modifier-quantity-var-pct.short": false,
2051
- "common.report-col.modifier-quantity-var-pct.info": false,
2052
- "common.report-col.attach-rate-var": false,
2053
- "common.report-col.attach-rate-var.short": false,
2054
- "common.report-col.attach-rate-var.info": false,
2055
- "common.report-col.attach-rate-var-pct": false,
2056
- "common.report-col.attach-rate-var-pct.short": false,
2057
- "common.report-col.attach-rate-var-pct.info": false,
2058
- "common.report-col.total-modifier-sales-comp": false,
2059
- "common.report-col.total-modifier-sales-comp.short": false,
2060
- "common.report-col.total-modifier-sales-comp.info": false,
2061
- "common.report-col.net-sales": false,
2062
- "common.report-col.net-sales.short": false,
2063
- "common.report-col.net-sales.info": false,
2064
- "common.report-col.net-tax-collected": false,
2065
- "common.report-col.net-tax-collected.short": false,
2066
- "common.report-col.net-tax-collected.info": false,
2067
- "common.report-col.net-tips": false,
2068
- "common.report-col.net-tips.short": false,
2069
- "common.report-col.net-tips.info": false,
2070
- "common.report-col.number-of-guests": false,
2071
- "common.report-col.number-of-guests.short": false,
2072
- "common.report-col.number-of-guests.info": false,
2073
- "common.report-col.order-type": false,
2074
- "common.report-col.order-type.short": false,
2075
- "common.report-col.order-type.info": false,
2076
- "common.report-col.payment-type": false,
2077
- "common.report-col.payment-type.short": false,
2078
- "common.report-col.payment-type.info": false,
2079
- "common.report-col.payroll-id": false,
2080
- "common.report-col.payroll-id.short": false,
2081
- "common.report-col.payroll-id.info": false,
2082
- "common.report-col.quantity": false,
2083
- "common.report-col.quantity.short": false,
2084
- "common.report-col.quantity.info": false,
2085
- "common.report-col.reference-number": false,
2086
- "common.report-col.reference-number.short": false,
2087
- "common.report-col.reference-number.info": false,
2088
- "common.report-col.refund-amount": false,
2089
- "common.report-col.refund-amount.short": false,
2090
- "common.report-col.refund-amount.info": false,
2091
- "common.report-col.refunded-tax-amount": false,
2092
- "common.report-col.refunded-tax-amount.short": false,
2093
- "common.report-col.refunded-tax-amount.info": false,
2094
- "common.report-col.revenue-center": false,
2095
- "common.report-col.revenue-center.short": false,
2096
- "common.report-col.revenue-center.info": false,
2097
- "common.report-col.revenue-class": false,
2098
- "common.report-col.revenue-class.short": false,
2099
- "common.report-col.revenue-class.info": false,
2100
- "common.report-col.sales-var-lw": false,
2101
- "common.report-col.sales-var-lw.short": false,
2102
- "common.report-col.sales-var-lw.info": false,
2103
- "common.report-col.sales-var-lw-pct": false,
2104
- "common.report-col.sales-var-lw-pct.short": false,
2105
- "common.report-col.sales-var-lw-pct.info": false,
2106
- "common.report-col.sales-var-ly": false,
2107
- "common.report-col.sales-var-ly.short": false,
2108
- "common.report-col.sales-var-ly.info": false,
2109
- "common.report-col.sales-var-ly-pct": false,
2110
- "common.report-col.sales-var-ly-pct.short": false,
2111
- "common.report-col.sales-var-ly-pct.info": false,
2112
- "common.report-col.sales-mix-by-pct": false,
2113
- "common.report-col.sales-mix-by-pct.short": false,
2114
- "common.report-col.sales-mix-by-pct.info": false,
2115
- "common.report-col.sales-per-guest": false,
2116
- "common.report-col.sales-per-guest.short": false,
2117
- "common.report-col.sales-per-guest.info": false,
2118
- "common.report-col.sales-per-guest-lw": false,
2119
- "common.report-col.sales-per-guest-lw.short": false,
2120
- "common.report-col.sales-per-guest-lw.info": false,
2121
- "common.report-col.sales-per-guest-ly": false,
2122
- "common.report-col.sales-per-guest-ly.short": false,
2123
- "common.report-col.sales-per-guest-ly.info": false,
2124
- "common.report-col.scheduled-shift-end": false,
2125
- "common.report-col.scheduled-shift-end.short": false,
2126
- "common.report-col.scheduled-shift-end.info": false,
2127
- "common.report-col.scheduled-shift-start": false,
2128
- "common.report-col.scheduled-shift-start.short": false,
2129
- "common.report-col.scheduled-shift-start.info": false,
2130
- "common.report-col.settlement-batch-date": false,
2131
- "common.report-col.settlement-batch-date.short": false,
2132
- "common.report-col.settlement-batch-date.info": false,
2133
- "common.report-col.shift-duration-hrs": false,
2134
- "common.report-col.shift-duration-hrs.short": false,
2135
- "common.report-col.shift-duration-hrs.info": false,
2136
- "common.report-col.subtotal": false,
2137
- "common.report-col.subtotal.short": false,
2138
- "common.report-col.subtotal.info": false,
2139
- "common.report-col.tax-collected": false,
2140
- "common.report-col.tax-collected.short": false,
2141
- "common.report-col.tax-collected.info": false,
2142
- "common.report-col.tax-name": false,
2143
- "common.report-col.tax-name.short": false,
2144
- "common.report-col.tax-name.info": false,
2145
- "common.report-col.tax-rate": false,
2146
- "common.report-col.tax-rate.short": false,
2147
- "common.report-col.tax-rate.info": false,
2148
- "common.report-col.taxable-sales": false,
2149
- "common.report-col.taxable-sales.short": false,
2150
- "common.report-col.taxable-sales.info": false,
2151
- "common.report-col.ticket-closed": false,
2152
- "common.report-col.ticket-closed.short": false,
2153
- "common.report-col.ticket-closed.info": false,
2154
- "common.report-col.ticket-fee": false,
2155
- "common.report-col.ticket-fee.short": false,
2156
- "common.report-col.ticket-fee.info": false,
2157
- "common.report-col.ticket-number": false,
2158
- "common.report-col.ticket-number.short": false,
2159
- "common.report-col.ticket-number.info": false,
2160
- "common.report-col.ticket-open": false,
2161
- "common.report-col.ticket-open.short": false,
2162
- "common.report-col.ticket-open.info": false,
2163
- "common.report-col.ticket-total": false,
2164
- "common.report-col.ticket-total.short": false,
2165
- "common.report-col.ticket-total.info": false,
2166
- "common.report-col.time-open-mins": false,
2167
- "common.report-col.time-open-mins.short": false,
2168
- "common.report-col.time-open-mins.info": false,
2169
- "common.report-col.tip-pct": false,
2170
- "common.report-col.tip-pct.short": false,
2171
- "common.report-col.tip-pct.info": false,
2172
- "common.report-col.tip-reduction": false,
2173
- "common.report-col.tip-reduction.short": false,
2174
- "common.report-col.tip-reduction.info": false,
2175
- "common.report-col.tip-share": false,
2176
- "common.report-col.tip-share.short": false,
2177
- "common.report-col.tip-share.info": false,
2178
- "common.report-col.tips": false,
2179
- "common.report-col.tips.short": false,
2180
- "common.report-col.tips.info": false,
2181
- "common.report-col.tips-per-hour": false,
2182
- "common.report-col.tips-per-hour.short": false,
2183
- "common.report-col.tips-per-hour.info": false,
2184
- "common.report-col.total-collected": false,
2185
- "common.report-col.total-collected.short": false,
2186
- "common.report-col.total-collected.info": false,
2187
- "common.report-col.total-item-sales": false,
2188
- "common.report-col.total-item-sales.short": false,
2189
- "common.report-col.total-item-sales.info": false,
2190
- "common.report-col.total-modifier-sales": false,
2191
- "common.report-col.total-modifier-sales.short": false,
2192
- "common.report-col.total-modifier-sales.info": false,
2193
- "common.report-col.total-returns": false,
2194
- "common.report-col.total-returns.short": false,
2195
- "common.report-col.total-returns.info": false,
2196
- "common.report-col.total-sales": false,
2197
- "common.report-col.total-sales.short": false,
2198
- "common.report-col.total-sales.info": false,
2199
- "common.report-col.total-tips": false,
2200
- "common.report-col.total-tips.short": false,
2201
- "common.report-col.total-tips.info": false,
2202
- "common.report-col.transaction-date": false,
2203
- "common.report-col.transaction-date.short": false,
2204
- "common.report-col.transaction-date.info": false,
2205
- "common.report-col.sale-payment-type": false,
2206
- "common.report-col.sale-payment-type.short": false,
2207
- "common.report-col.sale-payment-type.info": false,
2208
- "common.report-col.transaction-type": false,
2209
- "common.report-col.transaction-type.short": false,
2210
- "common.report-col.transaction-type.info": false,
2211
- "common.report-col.untaxed-sales": false,
2212
- "common.report-col.untaxed-sales.short": false,
2213
- "common.report-col.untaxed-sales.info": false,
2214
- "common.report-col.visa": false,
2215
- "common.report-col.visa.short": false,
2216
- "common.report-col.visa.info": false,
2217
- "common.report-col.visa-returns": false,
2218
- "common.report-col.visa-returns.short": false,
2219
- "common.report-col.visa-returns.info": false,
2220
- "common.report-col.payments-count": false,
2221
- "common.report-col.payments-count.short": false,
2222
- "common.report-col.payments-count.info": false,
2223
- "common.report-col.payments-amount": false,
2224
- "common.report-col.payments-amount.short": false,
2225
- "common.report-col.payments-amount.info": false,
2226
- "common.report-col.payments-total": false,
2227
- "common.report-col.payments-total.short": false,
2228
- "common.report-col.payments-total.info": false,
2229
- "common.report-col.refund-void-description": false,
2230
- "common.report-col.refund-void-description.short": false,
2231
- "common.report-col.refund-void-description.info": false,
2232
- "common.report-col.refund-void-count": false,
2233
- "common.report-col.refund-void-count.short": false,
2234
- "common.report-col.refund-void-count.info": false,
2235
- "common.report-col.refund-void-amount": false,
2236
- "common.report-col.refund-void-amount.short": false,
2237
- "common.report-col.refund-void-amount.info": false,
2238
- "common.report-col.refund-void-pct-sales": false,
2239
- "common.report-col.refund-void-pct-sales.short": false,
2240
- "common.report-col.refund-void-pct-sales.info": false,
2241
- "common.report-col.discount-name": false,
2242
- "common.report-col.discount-name.short": false,
2243
- "common.report-col.discount-name.info": false,
2244
- "common.report-col.tickets": false,
2245
- "common.report-col.tickets.short": false,
2246
- "common.report-col.tickets.info": false,
2247
- "common.report-col.guests": false,
2248
- "common.report-col.guests.short": false,
2249
- "common.report-col.guests.info": false,
2250
- "common.report-col.ticket-average": false,
2251
- "common.report-col.ticket-average.short": false,
2252
- "common.report-col.ticket-average.info": false,
2253
- "common.report-col.guest-average": false,
2254
- "common.report-col.guest-average.short": false,
2255
- "common.report-col.guest-average.info": false,
2256
- "common.report-col.net": false,
2257
- "common.report-col.net.short": false,
2258
- "common.report-col.net.info": false,
2259
- "common.report-col.gross-cash-tips": false,
2260
- "common.report-col.gross-cash-tips.short": false,
2261
- "common.report-col.gross-cash-tips.info": false,
2262
- "common.report-col.gross-credit-card-tips": false,
2263
- "common.report-col.gross-credit-card-tips.short": false,
2264
- "common.report-col.gross-credit-card-tips.info": false,
2265
- "common.report-col.type": false,
2266
- "common.report-col.type.short": false,
2267
- "common.report-col.type.info": false
2268
- };
2269
- var en_GB_default = enUS;
2270
-
2271
- // src/translations/crowdin/skytab-analytics-report-utils/es-ES.ts
2272
- var enUS2 = {
2273
- "common.report-col.fifteen-min-interval": false,
2274
- "common.report-col.fifteen-min-interval.short": false,
2275
- "common.report-col.fifteen-min-interval.info": false,
2276
- "common.report-col.adjusted-tips": false,
2277
- "common.report-col.adjusted-tips.short": false,
2278
- "common.report-col.adjusted-tips.info": false,
2279
- "common.report-col.advantage-program": false,
2280
- "common.report-col.advantage-program.short": false,
2281
- "common.report-col.advantage-program.info": false,
2282
- "common.report-col.amex": false,
2283
- "common.report-col.amex.short": false,
2284
- "common.report-col.amex.info": false,
2285
- "common.report-col.amex-returns": false,
2286
- "common.report-col.amex-returns.short": false,
2287
- "common.report-col.amex-returns.info": false,
2288
- "common.report-col.attach-rate": false,
2289
- "common.report-col.attach-rate.short": false,
2290
- "common.report-col.attach-rate.info": false,
2291
- "common.report-col.auto-gratuity": false,
2292
- "common.report-col.auto-gratuity.short": false,
2293
- "common.report-col.auto-gratuity.info": false,
2294
- "common.report-col.average-gross-price": false,
2295
- "common.report-col.average-gross-price.short": false,
2296
- "common.report-col.average-gross-price.info": false,
2297
- "common.report-col.bank-fees": false,
2298
- "common.report-col.bank-fees.short": false,
2299
- "common.report-col.bank-fees.info": false,
2300
- "common.report-col.batch-amount": false,
2301
- "common.report-col.batch-amount.short": false,
2302
- "common.report-col.batch-amount.info": false,
2303
- "common.report-col.batch-date": false,
2304
- "common.report-col.batch-date.short": false,
2305
- "common.report-col.batch-date.info": false,
2306
- "common.report-col.batch-number": false,
2307
- "common.report-col.batch-number.short": false,
2308
- "common.report-col.batch-number.info": false,
2309
- "common.report-col.clock-in-time": false,
2310
- "common.report-col.clock-in-time.short": false,
2311
- "common.report-col.clock-in-time.info": false,
2312
- "common.report-col.clock-out-time": false,
2313
- "common.report-col.clock-out-time.short": false,
2314
- "common.report-col.clock-out-time.info": false,
2315
- "common.report-col.status": false,
2316
- "common.report-col.status.short": false,
2317
- "common.report-col.status.info": false,
2318
- "common.report-col.last-modified": false,
2319
- "common.report-col.last-modified.short": false,
2320
- "common.report-col.last-modified.info": false,
2321
- "common.report-col.country": false,
2322
- "common.report-col.country.short": false,
2323
- "common.report-col.country.info": false,
2324
- "common.report-col.customer-name": false,
2325
- "common.report-col.customer-name.short": false,
2326
- "common.report-col.customer-name.info": false,
2327
- "common.report-col.date": false,
2328
- "common.report-col.date.short": false,
2329
- "common.report-col.date.info": false,
2330
- "common.report-col.date-close": false,
2331
- "common.report-col.date-close.short": false,
2332
- "common.report-col.date-close.info": false,
2333
- "common.report-col.daypart": false,
2334
- "common.report-col.daypart.short": false,
2335
- "common.report-col.daypart.info": false,
2336
- "common.report-col.debit": false,
2337
- "common.report-col.debit.short": false,
2338
- "common.report-col.debit.info": false,
2339
- "common.report-col.debit-returns": false,
2340
- "common.report-col.debit-returns.short": false,
2341
- "common.report-col.debit-returns.info": false,
2342
- "common.report-col.declared-tips": false,
2343
- "common.report-col.declared-tips.short": false,
2344
- "common.report-col.declared-tips.info": false,
2345
- "common.report-col.department": false,
2346
- "common.report-col.department.short": false,
2347
- "common.report-col.department.info": false,
2348
- "common.report-col.deposit-currency": false,
2349
- "common.report-col.deposit-currency.short": false,
2350
- "common.report-col.deposit-currency.info": false,
2351
- "common.report-col.deposit-date": false,
2352
- "common.report-col.deposit-date.short": false,
2353
- "common.report-col.deposit-date.info": false,
2354
- "common.report-col.discount-amount": false,
2355
- "common.report-col.discount-amount.short": false,
2356
- "common.report-col.discount-amount.info": false,
2357
- "common.report-col.discount-count": false,
2358
- "common.report-col.discount-count.short": false,
2359
- "common.report-col.discount-count.info": false,
2360
- "common.report-col.ticket-count": false,
2361
- "common.report-col.ticket-count.short": false,
2362
- "common.report-col.ticket-count.info": false,
2363
- "common.report-col.item-count": false,
2364
- "common.report-col.item-count.short": false,
2365
- "common.report-col.item-count.info": false,
2366
- "common.report-col.discover": false,
2367
- "common.report-col.discover.short": false,
2368
- "common.report-col.discover.info": false,
2369
- "common.report-col.discover-returns": false,
2370
- "common.report-col.discover-returns.short": false,
2371
- "common.report-col.discover-returns.info": false,
2372
- "common.report-col.ebt": false,
2373
- "common.report-col.ebt.short": false,
2374
- "common.report-col.ebt.info": false,
2375
- "common.report-col.ebt-returns": false,
2376
- "common.report-col.ebt-returns.short": false,
2377
- "common.report-col.ebt-returns.info": false,
2378
- "common.report-col.employee-id": false,
2379
- "common.report-col.employee-id.short": false,
2380
- "common.report-col.employee-id.info": false,
2381
- "common.report-col.employee-job": false,
2382
- "common.report-col.employee-job.short": false,
2383
- "common.report-col.employee-job.info": false,
2384
- "common.report-col.employee-name": false,
2385
- "common.report-col.employee-name.short": false,
2386
- "common.report-col.employee-name.info": false,
2387
- "common.report-col.exempt-taxes": false,
2388
- "common.report-col.exempt-taxes.short": false,
2389
- "common.report-col.exempt-taxes.info": false,
2390
- "common.report-col.exempt-sales": false,
2391
- "common.report-col.exempt-sales.short": false,
2392
- "common.report-col.exempt-sales.info": false,
2393
- "common.report-col.grand-total": false,
2394
- "common.report-col.grand-total.short": false,
2395
- "common.report-col.grand-total.info": false,
2396
- "common.report-col.gross-cash-sales": false,
2397
- "common.report-col.gross-cash-sales.short": false,
2398
- "common.report-col.gross-cash-sales.info": false,
2399
- "common.report-col.gross-credit-sales": false,
2400
- "common.report-col.gross-credit-sales.short": false,
2401
- "common.report-col.gross-credit-sales.info": false,
2402
- "common.report-col.gross-sales": false,
2403
- "common.report-col.gross-sales.short": false,
2404
- "common.report-col.gross-sales.info": false,
2405
- "common.report-col.gross-tips": false,
2406
- "common.report-col.gross-tips.short": false,
2407
- "common.report-col.gross-tips.info": false,
2408
- "common.report-col.guest-count": false,
2409
- "common.report-col.guest-count.short": false,
2410
- "common.report-col.guest-count.info": false,
2411
- "common.report-col.guests-var-lw": false,
2412
- "common.report-col.guests-var-lw.short": false,
2413
- "common.report-col.guests-var-lw.info": false,
2414
- "common.report-col.guests-var-lw-pct": false,
2415
- "common.report-col.guests-var-lw-pct.short": false,
2416
- "common.report-col.guests-var-lw-pct.info": false,
2417
- "common.report-col.guests-var-ly": false,
2418
- "common.report-col.guests-var-ly.short": false,
2419
- "common.report-col.guests-var-ly.info": false,
2420
- "common.report-col.guests-var-ly-pct": false,
2421
- "common.report-col.guests-var-ly-pct.short": false,
2422
- "common.report-col.guests-var-ly-pct.info": false,
2423
- "common.report-col.hour": false,
2424
- "common.report-col.hour.short": false,
2425
- "common.report-col.hour.info": false,
2426
- "common.report-col.hours-worked": false,
2427
- "common.report-col.hours-worked.short": false,
2428
- "common.report-col.hours-worked.info": false,
2429
- "common.report-col.inclusive-tax": false,
2430
- "common.report-col.inclusive-tax.short": false,
2431
- "common.report-col.inclusive-tax.info": false,
2432
- "common.report-col.item-name": false,
2433
- "common.report-col.item-name.short": false,
2434
- "common.report-col.item-name.info": false,
2435
- "common.report-col.item-price": false,
2436
- "common.report-col.item-price.short": false,
2437
- "common.report-col.item-price.info": false,
2438
- "common.report-col.location-city": false,
2439
- "common.report-col.location-city.short": false,
2440
- "common.report-col.location-city.info": false,
2441
- "common.report-col.location-id": false,
2442
- "common.report-col.location-id.short": false,
2443
- "common.report-col.location-id.info": false,
2444
- "common.report-col.location-mid": false,
2445
- "common.report-col.location-mid.short": false,
2446
- "common.report-col.location-mid.info": false,
2447
- "common.report-col.location-name": false,
2448
- "common.report-col.location-name.short": false,
2449
- "common.report-col.location-name.info": false,
2450
- "common.report-col.location-state": false,
2451
- "common.report-col.location-state.short": false,
2452
- "common.report-col.location-state.info": false,
2453
- "common.report-col.mastercard": false,
2454
- "common.report-col.mastercard.short": false,
2455
- "common.report-col.mastercard.info": false,
2456
- "common.report-col.mc-returns": false,
2457
- "common.report-col.mc-returns.short": false,
2458
- "common.report-col.mc-returns.info": false,
2459
- "common.report-col.modifier-name": false,
2460
- "common.report-col.modifier-name.short": false,
2461
- "common.report-col.modifier-name.info": false,
2462
- "common.report-col.modifier-price": false,
2463
- "common.report-col.modifier-price.short": false,
2464
- "common.report-col.modifier-price.info": false,
2465
- "common.report-col.modifier-quantity": false,
2466
- "common.report-col.modifier-quantity.short": false,
2467
- "common.report-col.modifier-quantity.info": false,
2468
- "common.report-col.item-quantity": false,
2469
- "common.report-col.item-quantity.short": false,
2470
- "common.report-col.item-quantity.info": false,
2471
- "common.report-col.modifier-quantity-comp": false,
2472
- "common.report-col.modifier-quantity-comp.short": false,
2473
- "common.report-col.modifier-quantity-comp.info": false,
2474
- "common.report-col.item-quantity-comp": false,
2475
- "common.report-col.item-quantity-comp.short": false,
2476
- "common.report-col.item-quantity-comp.info": false,
2477
- "common.report-col.attach-rate-comp": false,
2478
- "common.report-col.attach-rate-comp.short": false,
2479
- "common.report-col.attach-rate-comp.info": false,
2480
- "common.report-col.total-modifier-sales-var": false,
2481
- "common.report-col.total-modifier-sales-var.short": false,
2482
- "common.report-col.total-modifier-sales-var.info": false,
2483
- "common.report-col.total-modifier-sales-var-pct": false,
2484
- "common.report-col.total-modifier-sales-var-pct.short": false,
2485
- "common.report-col.total-modifier-sales-var-pct.info": false,
2486
- "common.report-col.modifier-quantity-var": false,
2487
- "common.report-col.modifier-quantity-var.short": false,
2488
- "common.report-col.modifier-quantity-var.info": false,
2489
- "common.report-col.modifier-quantity-var-pct": false,
2490
- "common.report-col.modifier-quantity-var-pct.short": false,
2491
- "common.report-col.modifier-quantity-var-pct.info": false,
2492
- "common.report-col.attach-rate-var": false,
2493
- "common.report-col.attach-rate-var.short": false,
2494
- "common.report-col.attach-rate-var.info": false,
2495
- "common.report-col.attach-rate-var-pct": false,
2496
- "common.report-col.attach-rate-var-pct.short": false,
2497
- "common.report-col.attach-rate-var-pct.info": false,
2498
- "common.report-col.total-modifier-sales-comp": false,
2499
- "common.report-col.total-modifier-sales-comp.short": false,
2500
- "common.report-col.total-modifier-sales-comp.info": false,
2501
- "common.report-col.net-sales": false,
2502
- "common.report-col.net-sales.short": false,
2503
- "common.report-col.net-sales.info": false,
2504
- "common.report-col.net-tax-collected": false,
2505
- "common.report-col.net-tax-collected.short": false,
2506
- "common.report-col.net-tax-collected.info": false,
2507
- "common.report-col.net-tips": false,
2508
- "common.report-col.net-tips.short": false,
2509
- "common.report-col.net-tips.info": false,
2510
- "common.report-col.number-of-guests": false,
2511
- "common.report-col.number-of-guests.short": false,
2512
- "common.report-col.number-of-guests.info": false,
2513
- "common.report-col.order-type": false,
2514
- "common.report-col.order-type.short": false,
2515
- "common.report-col.order-type.info": false,
2516
- "common.report-col.payment-type": false,
2517
- "common.report-col.payment-type.short": false,
2518
- "common.report-col.payment-type.info": false,
2519
- "common.report-col.payroll-id": false,
2520
- "common.report-col.payroll-id.short": false,
2521
- "common.report-col.payroll-id.info": false,
2522
- "common.report-col.quantity": false,
2523
- "common.report-col.quantity.short": false,
2524
- "common.report-col.quantity.info": false,
2525
- "common.report-col.reference-number": false,
2526
- "common.report-col.reference-number.short": false,
2527
- "common.report-col.reference-number.info": false,
2528
- "common.report-col.refund-amount": false,
2529
- "common.report-col.refund-amount.short": false,
2530
- "common.report-col.refund-amount.info": false,
2531
- "common.report-col.refunded-tax-amount": false,
2532
- "common.report-col.refunded-tax-amount.short": false,
2533
- "common.report-col.refunded-tax-amount.info": false,
2534
- "common.report-col.revenue-center": false,
2535
- "common.report-col.revenue-center.short": false,
2536
- "common.report-col.revenue-center.info": false,
2537
- "common.report-col.revenue-class": false,
2538
- "common.report-col.revenue-class.short": false,
2539
- "common.report-col.revenue-class.info": false,
2540
- "common.report-col.sales-var-lw": false,
2541
- "common.report-col.sales-var-lw.short": false,
2542
- "common.report-col.sales-var-lw.info": false,
2543
- "common.report-col.sales-var-lw-pct": false,
2544
- "common.report-col.sales-var-lw-pct.short": false,
2545
- "common.report-col.sales-var-lw-pct.info": false,
2546
- "common.report-col.sales-var-ly": false,
2547
- "common.report-col.sales-var-ly.short": false,
2548
- "common.report-col.sales-var-ly.info": false,
2549
- "common.report-col.sales-var-ly-pct": false,
2550
- "common.report-col.sales-var-ly-pct.short": false,
2551
- "common.report-col.sales-var-ly-pct.info": false,
2552
- "common.report-col.sales-mix-by-pct": false,
2553
- "common.report-col.sales-mix-by-pct.short": false,
2554
- "common.report-col.sales-mix-by-pct.info": false,
2555
- "common.report-col.sales-per-guest": false,
2556
- "common.report-col.sales-per-guest.short": false,
2557
- "common.report-col.sales-per-guest.info": false,
2558
- "common.report-col.sales-per-guest-lw": false,
2559
- "common.report-col.sales-per-guest-lw.short": false,
2560
- "common.report-col.sales-per-guest-lw.info": false,
2561
- "common.report-col.sales-per-guest-ly": false,
2562
- "common.report-col.sales-per-guest-ly.short": false,
2563
- "common.report-col.sales-per-guest-ly.info": false,
2564
- "common.report-col.scheduled-shift-end": false,
2565
- "common.report-col.scheduled-shift-end.short": false,
2566
- "common.report-col.scheduled-shift-end.info": false,
2567
- "common.report-col.scheduled-shift-start": false,
2568
- "common.report-col.scheduled-shift-start.short": false,
2569
- "common.report-col.scheduled-shift-start.info": false,
2570
- "common.report-col.settlement-batch-date": false,
2571
- "common.report-col.settlement-batch-date.short": false,
2572
- "common.report-col.settlement-batch-date.info": false,
2573
- "common.report-col.shift-duration-hrs": false,
2574
- "common.report-col.shift-duration-hrs.short": false,
2575
- "common.report-col.shift-duration-hrs.info": false,
2576
- "common.report-col.subtotal": false,
2577
- "common.report-col.subtotal.short": false,
2578
- "common.report-col.subtotal.info": false,
2579
- "common.report-col.tax-collected": false,
2580
- "common.report-col.tax-collected.short": false,
2581
- "common.report-col.tax-collected.info": false,
2582
- "common.report-col.tax-name": false,
2583
- "common.report-col.tax-name.short": false,
2584
- "common.report-col.tax-name.info": false,
2585
- "common.report-col.tax-rate": false,
2586
- "common.report-col.tax-rate.short": false,
2587
- "common.report-col.tax-rate.info": false,
2588
- "common.report-col.taxable-sales": false,
2589
- "common.report-col.taxable-sales.short": false,
2590
- "common.report-col.taxable-sales.info": false,
2591
- "common.report-col.ticket-closed": false,
2592
- "common.report-col.ticket-closed.short": false,
2593
- "common.report-col.ticket-closed.info": false,
2594
- "common.report-col.ticket-fee": false,
2595
- "common.report-col.ticket-fee.short": false,
2596
- "common.report-col.ticket-fee.info": false,
2597
- "common.report-col.ticket-number": false,
2598
- "common.report-col.ticket-number.short": false,
2599
- "common.report-col.ticket-number.info": false,
2600
- "common.report-col.ticket-open": false,
2601
- "common.report-col.ticket-open.short": false,
2602
- "common.report-col.ticket-open.info": false,
2603
- "common.report-col.ticket-total": false,
2604
- "common.report-col.ticket-total.short": false,
2605
- "common.report-col.ticket-total.info": false,
2606
- "common.report-col.time-open-mins": false,
2607
- "common.report-col.time-open-mins.short": false,
2608
- "common.report-col.time-open-mins.info": false,
2609
- "common.report-col.tip-pct": false,
2610
- "common.report-col.tip-pct.short": false,
2611
- "common.report-col.tip-pct.info": false,
2612
- "common.report-col.tip-reduction": false,
2613
- "common.report-col.tip-reduction.short": false,
2614
- "common.report-col.tip-reduction.info": false,
2615
- "common.report-col.tip-share": false,
2616
- "common.report-col.tip-share.short": false,
2617
- "common.report-col.tip-share.info": false,
2618
- "common.report-col.tips": false,
2619
- "common.report-col.tips.short": false,
2620
- "common.report-col.tips.info": false,
2621
- "common.report-col.tips-per-hour": false,
2622
- "common.report-col.tips-per-hour.short": false,
2623
- "common.report-col.tips-per-hour.info": false,
2624
- "common.report-col.total-collected": false,
2625
- "common.report-col.total-collected.short": false,
2626
- "common.report-col.total-collected.info": false,
2627
- "common.report-col.total-item-sales": false,
2628
- "common.report-col.total-item-sales.short": false,
2629
- "common.report-col.total-item-sales.info": false,
2630
- "common.report-col.total-modifier-sales": false,
2631
- "common.report-col.total-modifier-sales.short": false,
2632
- "common.report-col.total-modifier-sales.info": false,
2633
- "common.report-col.total-returns": false,
2634
- "common.report-col.total-returns.short": false,
2635
- "common.report-col.total-returns.info": false,
2636
- "common.report-col.total-sales": false,
2637
- "common.report-col.total-sales.short": false,
2638
- "common.report-col.total-sales.info": false,
2639
- "common.report-col.total-tips": false,
2640
- "common.report-col.total-tips.short": false,
2641
- "common.report-col.total-tips.info": false,
2642
- "common.report-col.transaction-date": false,
2643
- "common.report-col.transaction-date.short": false,
2644
- "common.report-col.transaction-date.info": false,
2645
- "common.report-col.sale-payment-type": false,
2646
- "common.report-col.sale-payment-type.short": false,
2647
- "common.report-col.sale-payment-type.info": false,
2648
- "common.report-col.transaction-type": false,
2649
- "common.report-col.transaction-type.short": false,
2650
- "common.report-col.transaction-type.info": false,
2651
- "common.report-col.untaxed-sales": false,
2652
- "common.report-col.untaxed-sales.short": false,
2653
- "common.report-col.untaxed-sales.info": false,
2654
- "common.report-col.visa": false,
2655
- "common.report-col.visa.short": false,
2656
- "common.report-col.visa.info": false,
2657
- "common.report-col.visa-returns": false,
2658
- "common.report-col.visa-returns.short": false,
2659
- "common.report-col.visa-returns.info": false,
2660
- "common.report-col.payments-count": false,
2661
- "common.report-col.payments-count.short": false,
2662
- "common.report-col.payments-count.info": false,
2663
- "common.report-col.payments-amount": false,
2664
- "common.report-col.payments-amount.short": false,
2665
- "common.report-col.payments-amount.info": false,
2666
- "common.report-col.payments-total": false,
2667
- "common.report-col.payments-total.short": false,
2668
- "common.report-col.payments-total.info": false,
2669
- "common.report-col.refund-void-description": false,
2670
- "common.report-col.refund-void-description.short": false,
2671
- "common.report-col.refund-void-description.info": false,
2672
- "common.report-col.refund-void-count": false,
2673
- "common.report-col.refund-void-count.short": false,
2674
- "common.report-col.refund-void-count.info": false,
2675
- "common.report-col.refund-void-amount": false,
2676
- "common.report-col.refund-void-amount.short": false,
2677
- "common.report-col.refund-void-amount.info": false,
2678
- "common.report-col.refund-void-pct-sales": false,
2679
- "common.report-col.refund-void-pct-sales.short": false,
2680
- "common.report-col.refund-void-pct-sales.info": false,
2681
- "common.report-col.discount-name": false,
2682
- "common.report-col.discount-name.short": false,
2683
- "common.report-col.discount-name.info": false,
2684
- "common.report-col.tickets": false,
2685
- "common.report-col.tickets.short": false,
2686
- "common.report-col.tickets.info": false,
2687
- "common.report-col.guests": false,
2688
- "common.report-col.guests.short": false,
2689
- "common.report-col.guests.info": false,
2690
- "common.report-col.ticket-average": false,
2691
- "common.report-col.ticket-average.short": false,
2692
- "common.report-col.ticket-average.info": false,
2693
- "common.report-col.guest-average": false,
2694
- "common.report-col.guest-average.short": false,
2695
- "common.report-col.guest-average.info": false,
2696
- "common.report-col.net": false,
2697
- "common.report-col.net.short": false,
2698
- "common.report-col.net.info": false,
2699
- "common.report-col.gross-cash-tips": false,
2700
- "common.report-col.gross-cash-tips.short": false,
2701
- "common.report-col.gross-cash-tips.info": false,
2702
- "common.report-col.gross-credit-card-tips": false,
2703
- "common.report-col.gross-credit-card-tips.short": false,
2704
- "common.report-col.gross-credit-card-tips.info": false,
2705
- "common.report-col.type": false,
2706
- "common.report-col.type.short": false,
2707
- "common.report-col.type.info": false
2708
- };
2709
- var es_ES_default = enUS2;
2710
-
2711
- // src/translations/en-US.ts
2712
- var enUS3 = {
2713
- "common.report-col.fifteen-min-interval": "15 Min Interval",
2714
- "common.report-col.fifteen-min-interval.short": "15-Min Int",
2715
- "common.report-col.fifteen-min-interval.info": "Time window (15 minutes) when the activity occurred",
2716
- "common.report-col.adjusted-tips": "Adjusted Tips",
2717
- "common.report-col.adjusted-tips.short": "Adj Tips",
2718
- "common.report-col.adjusted-tips.info": "Tips that were corrected or modified after the original entry",
2719
- "common.report-col.advantage-program": "Advantage Program",
2720
- "common.report-col.advantage-program.short": "Adv Program",
2721
- "common.report-col.advantage-program.info": "Transaction amount related to advantage program",
2722
- "common.report-col.amex": "Amex",
2723
- "common.report-col.amex.short": "Amex",
2724
- "common.report-col.amex.info": "Total sales processed using American Express cards",
2725
- "common.report-col.amex-returns": "Amex Returns",
2726
- "common.report-col.amex-returns.short": "Amex Rtn",
2727
- "common.report-col.amex-returns.info": "The total value of refunds issued to American Express cardholders",
2728
- "common.report-col.attach-rate": "Attach Rate",
2729
- "common.report-col.attach-rate.short": "Attach Rate",
2730
- "common.report-col.attach-rate.info": "% of orders that include this item or add-on",
2731
- "common.report-col.auto-gratuity": "Auto Gratuity",
2732
- "common.report-col.auto-gratuity.short": "Auto Gratuity",
2733
- "common.report-col.auto-gratuity.info": "Automatically applied gratuity added to a guest check",
2734
- "common.report-col.average-gross-price": "Average Gross Price",
2735
- "common.report-col.average-gross-price.short": "Avg Gross",
2736
- "common.report-col.average-gross-price.info": "Average price charged per item before discounts, tax, or tips",
2737
- "common.report-col.bank-fees": "Bank Fees",
2738
- "common.report-col.bank-fees.short": "Bank Fees",
2739
- "common.report-col.bank-fees.info": "Fees deducted by the bank or processor, including processing, interchange, or service fees",
2740
- "common.report-col.batch-amount": "Batch Amount",
2741
- "common.report-col.batch-amount.short": "Batch Amt",
2742
- "common.report-col.batch-amount.info": "Total amount settled in the closed batch",
2743
- "common.report-col.batch-date": "Batch Date",
2744
- "common.report-col.batch-date.short": "Batch Date",
2745
- "common.report-col.batch-date.info": "Date the batch was settled with the processor",
2746
- "common.report-col.batch-number": "Batch Number",
2747
- "common.report-col.batch-number.short": "Batch No",
2748
- "common.report-col.batch-number.info": "The system-generated number used to track this batch of transactions",
2749
- "common.report-col.clock-in-time": "Clock-In Time",
2750
- "common.report-col.clock-in-time.short": "In Time",
2751
- "common.report-col.clock-in-time.info": "Actual time the employee clocked in",
2752
- "common.report-col.clock-out-time": "Clock-Out Time",
2753
- "common.report-col.clock-out-time.short": "Out Time",
2754
- "common.report-col.clock-out-time.info": "Actual time the employee clocked out",
2755
- "common.report-col.status": "Status",
2756
- "common.report-col.status.short": "Status",
2757
- "common.report-col.status.info": "Timecard status for the shift entry.",
2758
- "common.report-col.last-modified": "Last Updated/Modified",
2759
- "common.report-col.last-modified.short": "Last Updated",
2760
- "common.report-col.last-modified.info": "Timestamp when this timecard entry was last updated or modified.",
2761
- "common.report-col.country": "Country",
2762
- "common.report-col.country.short": "Country",
2763
- "common.report-col.country.info": "Country where the transaction was processed",
2764
- "common.report-col.customer-name": "Customer Name",
2765
- "common.report-col.customer-name.short": "Customer",
2766
- "common.report-col.customer-name.info": "Name of the customer associated with the ticket",
2767
- "common.report-col.date": "Business Date",
2768
- "common.report-col.date.short": "Business Date",
2769
- "common.report-col.date.info": "Date the transaction or sale occurred based on the business date of the Location",
2770
- "common.report-col.date-close": "Date Close",
2771
- "common.report-col.date-close.short": "Date Close",
2772
- "common.report-col.date-close.info": "Date when the ticket was completed and closed",
2773
- "common.report-col.daypart": "Day Part",
2774
- "common.report-col.daypart.short": "Day Part",
2775
- "common.report-col.daypart.info": "Time-of-day category (e.g., Breakfast, Lunch, Dinner)",
2776
- "common.report-col.debit": "Debit",
2777
- "common.report-col.debit.short": "Debit",
2778
- "common.report-col.debit.info": "Total sales paid using debit cards",
2779
- "common.report-col.debit-returns": "Debit Returns",
2780
- "common.report-col.debit-returns.short": "Debit Rtn",
2781
- "common.report-col.debit-returns.info": "Total refunds issued on debit card payments",
2782
- "common.report-col.declared-tips": "Declared Tips",
2783
- "common.report-col.declared-tips.short": "Declared Tips",
2784
- "common.report-col.declared-tips.info": "Tips manually reported by the employee",
2785
- "common.report-col.department": "Department",
2786
- "common.report-col.department.short": "Dept",
2787
- "common.report-col.department.info": "Menu category the item belongs to",
2788
- "common.report-col.deposit-currency": "Deposit Currency",
2789
- "common.report-col.deposit-currency.short": "Dep Currency",
2790
- "common.report-col.deposit-currency.info": "The currency your deposits are paid out in",
2791
- "common.report-col.deposit-date": "Deposit Date",
2792
- "common.report-col.deposit-date.short": "Dep Date",
2793
- "common.report-col.deposit-date.info": "The date money was deposited into your bank account",
2794
- "common.report-col.discount-amount": "Discount Amount",
2795
- "common.report-col.discount-amount.short": "Discount Amt",
2796
- "common.report-col.discount-amount.info": "Total amount taken off sales due to discounts",
2797
- "common.report-col.discount-count": "Discount Count",
2798
- "common.report-col.discount-count.short": "Disc Count",
2799
- "common.report-col.discount-count.info": "Total number of discounts applied to orders",
2800
- "common.report-col.ticket-count": "Ticket Qty",
2801
- "common.report-col.ticket-count.short": "Ticket Qty",
2802
- "common.report-col.ticket-count.info": "Count of distinct tickets with this discount",
2803
- "common.report-col.item-count": "Item Qty",
2804
- "common.report-col.item-count.short": "Item Qty",
2805
- "common.report-col.item-count.info": "Total number of discount line items",
2806
- "common.report-col.discover": "Discover",
2807
- "common.report-col.discover.short": "Discover",
2808
- "common.report-col.discover.info": "Total sales processed using Discover cards",
2809
- "common.report-col.discover-returns": "Discover Returns",
2810
- "common.report-col.discover-returns.short": "Discover Rtn",
2811
- "common.report-col.discover-returns.info": "Total refunds given on Discover card payments",
2812
- "common.report-col.ebt": "EBT",
2813
- "common.report-col.ebt.short": "EBT",
2814
- "common.report-col.ebt.info": "Total payments made using EBT",
2815
- "common.report-col.ebt-returns": "EBT Returns",
2816
- "common.report-col.ebt-returns.short": "EBT Returns",
2817
- "common.report-col.ebt-returns.info": "Total refunds issued for EBT payments",
2818
- "common.report-col.employee-id": "Employee ID",
2819
- "common.report-col.employee-id.short": "Emp ID",
2820
- "common.report-col.employee-id.info": "Employee's assigned ID",
2821
- "common.report-col.employee-job": "Employee Job",
2822
- "common.report-col.employee-job.short": "Emp Job",
2823
- "common.report-col.employee-job.info": "Role the employee is performing during the shift",
2824
- "common.report-col.employee-name": "Employee Name",
2825
- "common.report-col.employee-name.short": "Emp Name",
2826
- "common.report-col.employee-name.info": "Employee associated with the transaction or labor entry",
2827
- "common.report-col.exempt-taxes": "Exempt Taxes",
2828
- "common.report-col.exempt-taxes.short": "Exempt Taxes",
2829
- "common.report-col.exempt-taxes.info": "Tax amount that was exempt",
2830
- "common.report-col.exempt-sales": "Exempt Sales",
2831
- "common.report-col.exempt-sales.short": "Exempt Sales",
2832
- "common.report-col.exempt-sales.info": "Total sales that were exempt from taxation",
2833
- "common.report-col.grand-total": "Grand Total",
2834
- "common.report-col.grand-total.short": "Grand Total",
2835
- "common.report-col.grand-total.info": "Total transaction amount, including items, taxes, fees, and gratuity",
2836
- "common.report-col.gross-cash-sales": "Gross Cash Sales",
2837
- "common.report-col.gross-cash-sales.short": "Gross Cash",
2838
- "common.report-col.gross-cash-sales.info": "Total cash sales before discounts, refunds, taxes, or adjustments",
2839
- "common.report-col.gross-credit-sales": "Gross Credit Sales",
2840
- "common.report-col.gross-credit-sales.short": "Gross CC",
2841
- "common.report-col.gross-credit-sales.info": "Total card sales before discounts, refunds, taxes, or adjustments",
2842
- "common.report-col.gross-sales": "Gross Sales",
2843
- "common.report-col.gross-sales.short": "Gross Sales",
2844
- "common.report-col.gross-sales.info": "Total item sales before refunds, tax, or tips",
2845
- "common.report-col.gross-tips": "Gross Tips",
2846
- "common.report-col.gross-tips.short": "Gross Tips",
2847
- "common.report-col.gross-tips.info": "Total tips before any deductions or sharing",
2848
- "common.report-col.guest-count": "Guest Count",
2849
- "common.report-col.guest-count.short": "Guest Count",
2850
- "common.report-col.guest-count.info": "Total number of guests served",
2851
- "common.report-col.guests-var-lw": "Guests \xB1 LW",
2852
- "common.report-col.guests-var-lw.short": "\xB1 LW",
2853
- "common.report-col.guests-var-lw.info": "Change in guest count compared to last week",
2854
- "common.report-col.guests-var-lw-pct": "Guests \xB1 LW %",
2855
- "common.report-col.guests-var-lw-pct.short": "\xB1 LW %",
2856
- "common.report-col.guests-var-lw-pct.info": "Percentage change in guests compared to last week",
2857
- "common.report-col.guests-var-ly": "Guests \xB1 LY",
2858
- "common.report-col.guests-var-ly.short": "\xB1 LY",
2859
- "common.report-col.guests-var-ly.info": "Change in guest count compared to last year",
2860
- "common.report-col.guests-var-ly-pct": "Guests \xB1 LY %",
2861
- "common.report-col.guests-var-ly-pct.short": "\xB1 LY %",
2862
- "common.report-col.guests-var-ly-pct.info": "Percentage change in guests compared to last year",
2863
- "common.report-col.hour": "Hour",
2864
- "common.report-col.hour.short": "Hour",
2865
- "common.report-col.hour.info": "Hour of the day the activity occurred",
2866
- "common.report-col.hours-worked": "Hours Worked",
2867
- "common.report-col.hours-worked.short": "Hrs Worked",
2868
- "common.report-col.hours-worked.info": "Total hours worked during the selected period",
2869
- "common.report-col.inclusive-tax": "Inclusive Tax",
2870
- "common.report-col.inclusive-tax.short": "Inclusive Tax",
2871
- "common.report-col.inclusive-tax.info": "Tax already included in the item price",
2872
- "common.report-col.item-name": "Item Name",
2873
- "common.report-col.item-name.short": "Item Name",
2874
- "common.report-col.item-name.info": "Item sold in the transaction",
2875
- "common.report-col.item-price": "Item Price",
2876
- "common.report-col.item-price.short": "Item Price",
2877
- "common.report-col.item-price.info": "Price of one item before discounts, taxes, or customizations",
2878
- "common.report-col.location-city": "Location City",
2879
- "common.report-col.location-city.short": "City",
2880
- "common.report-col.location-city.info": "City of the business location",
2881
- "common.report-col.location-id": "Location ID",
2882
- "common.report-col.location-id.short": "Loc ID",
2883
- "common.report-col.location-id.info": "Unique identifier for the business location",
2884
- "common.report-col.location-mid": "Location MID",
2885
- "common.report-col.location-mid.short": "MID",
2886
- "common.report-col.location-mid.info": "Merchant ID tied to the business location",
2887
- "common.report-col.location-name": "Location Name",
2888
- "common.report-col.location-name.short": "Location",
2889
- "common.report-col.location-name.info": "Name of the business location",
2890
- "common.report-col.location-state": "Location State",
2891
- "common.report-col.location-state.short": "State",
2892
- "common.report-col.location-state.info": "State of the business location",
2893
- "common.report-col.mastercard": "Mastercard",
2894
- "common.report-col.mastercard.short": "MC",
2895
- "common.report-col.mastercard.info": "Total sales processed using Mastercard",
2896
- "common.report-col.mc-returns": "MC Returns",
2897
- "common.report-col.mc-returns.short": "MC Returns",
2898
- "common.report-col.mc-returns.info": "Total refunds issued on Mastercard payments",
2899
- "common.report-col.modifier-name": "Modifier Name",
2900
- "common.report-col.modifier-name.short": "Mod Name",
2901
- "common.report-col.modifier-name.info": "The specific option or customization applied to an item",
2902
- "common.report-col.modifier-price": "Modifier Price",
2903
- "common.report-col.modifier-price.short": "Mod Price",
2904
- "common.report-col.modifier-price.info": "Price of one modifier",
2905
- "common.report-col.modifier-quantity": "Modifier Quantity",
2906
- "common.report-col.modifier-quantity.short": "Mod Qty",
2907
- "common.report-col.modifier-quantity.info": "Number of modifiers added to items on the ticket",
2908
- "common.report-col.item-quantity": "Item Quantity",
2909
- "common.report-col.item-quantity.short": "Item Qty",
2910
- "common.report-col.item-quantity.info": "Total quantity of parent items sold",
2911
- "common.report-col.modifier-quantity-comp": "Mod Qty (Comparison)",
2912
- "common.report-col.modifier-quantity-comp.short": "Mod Qty (C)",
2913
- "common.report-col.modifier-quantity-comp.info": "Modifier quantity for comparison period",
2914
- "common.report-col.item-quantity-comp": "Item Qty (Comparison)",
2915
- "common.report-col.item-quantity-comp.short": "Item Qty (C)",
2916
- "common.report-col.item-quantity-comp.info": "Item quantity for comparison period",
2917
- "common.report-col.attach-rate-comp": "Attach Rate (Comparison)",
2918
- "common.report-col.attach-rate-comp.short": "Rate (C)",
2919
- "common.report-col.attach-rate-comp.info": "Attach rate for comparison period",
2920
- "common.report-col.total-modifier-sales-var": "Mod Sales Variance",
2921
- "common.report-col.total-modifier-sales-var.short": "Sales Var",
2922
- "common.report-col.total-modifier-sales-var.info": "Variance in modifier sales vs comparison period",
2923
- "common.report-col.total-modifier-sales-var-pct": "Mod Sales Var %",
2924
- "common.report-col.total-modifier-sales-var-pct.short": "Sales %",
2925
- "common.report-col.total-modifier-sales-var-pct.info": "Percentage variance in modifier sales",
2926
- "common.report-col.modifier-quantity-var": "Mod Qty Variance",
2927
- "common.report-col.modifier-quantity-var.short": "Qty Var",
2928
- "common.report-col.modifier-quantity-var.info": "Variance in modifier quantity vs comparison period",
2929
- "common.report-col.modifier-quantity-var-pct": "Mod Qty Var %",
2930
- "common.report-col.modifier-quantity-var-pct.short": "Qty %",
2931
- "common.report-col.modifier-quantity-var-pct.info": "Percentage variance in modifier quantity",
2932
- "common.report-col.attach-rate-var": "Attach Rate Variance",
2933
- "common.report-col.attach-rate-var.short": "Rate Var",
2934
- "common.report-col.attach-rate-var.info": "Variance in attach rate vs comparison period",
2935
- "common.report-col.attach-rate-var-pct": "Attach Rate Var %",
2936
- "common.report-col.attach-rate-var-pct.short": "Rate %",
2937
- "common.report-col.attach-rate-var-pct.info": "Percentage variance in attach rate",
2938
- "common.report-col.total-modifier-sales-comp": "Mod Sales (Comparison)",
2939
- "common.report-col.total-modifier-sales-comp.short": "Mod (C)",
2940
- "common.report-col.total-modifier-sales-comp.info": "Modifier sales for comparison period",
2941
- "common.report-col.net-sales": "Net Sales",
2942
- "common.report-col.net-sales.short": "Net Sales",
2943
- "common.report-col.net-sales.info": "Sales amount excluding taxes and tips",
2944
- "common.report-col.net-tax-collected": "Net Tax Collected",
2945
- "common.report-col.net-tax-collected.short": "Net Tax",
2946
- "common.report-col.net-tax-collected.info": "Taxes collected after refunds are deducted",
2947
- "common.report-col.net-tips": "Net Tips",
2948
- "common.report-col.net-tips.short": "Net Tips",
2949
- "common.report-col.net-tips.info": "Gross Tips - Tip Reduction + Tip Share + Adjusted Tips",
2950
- "common.report-col.number-of-guests": "Number of Guests",
2951
- "common.report-col.number-of-guests.short": "No Guests",
2952
- "common.report-col.number-of-guests.info": "Number of guests tied to the transaction",
2953
- "common.report-col.order-type": "Order Type",
2954
- "common.report-col.order-type.short": "Order Type",
2955
- "common.report-col.order-type.info": "How the order was placed",
2956
- "common.report-col.payment-type": "Payment Type",
2957
- "common.report-col.payment-type.short": "Pay Type",
2958
- "common.report-col.payment-type.info": "Method used to pay for the transaction (e.g., cash, credit, gift card)",
2959
- "common.report-col.payroll-id": "Payroll ID",
2960
- "common.report-col.payroll-id.short": "Payroll ID",
2961
- "common.report-col.payroll-id.info": "Employee's Payroll ID",
2962
- "common.report-col.quantity": "Quantity",
2963
- "common.report-col.quantity.short": "Quantity",
2964
- "common.report-col.quantity.info": "Number of items sold",
2965
- "common.report-col.reference-number": "Reference Number",
2966
- "common.report-col.reference-number.short": "Ref Number",
2967
- "common.report-col.reference-number.info": "Reference number used to identify this transaction or record",
2968
- "common.report-col.refund-amount": "Refund Amount",
2969
- "common.report-col.refund-amount.short": "Refund Amt",
2970
- "common.report-col.refund-amount.info": "Total amount refunded to customers",
2971
- "common.report-col.refunded-tax-amount": "Refunded Tax Amount",
2972
- "common.report-col.refunded-tax-amount.short": "Refunded Tax",
2973
- "common.report-col.refunded-tax-amount.info": "Tax portion of refunded transactions",
2974
- "common.report-col.revenue-center": "Revenue Center",
2975
- "common.report-col.revenue-center.short": "Rev Ctr",
2976
- "common.report-col.revenue-center.info": "Area where the sale occurred",
2977
- "common.report-col.revenue-class": "Revenue Class",
2978
- "common.report-col.revenue-class.short": "Rev Class",
2979
- "common.report-col.revenue-class.info": "Category used to group similar types of revenue",
2980
- "common.report-col.sales-var-lw": "Sales \xB1 LW",
2981
- "common.report-col.sales-var-lw.short": "\xB1 LW",
2982
- "common.report-col.sales-var-lw.info": "Change in sales compared to last week",
2983
- "common.report-col.sales-var-lw-pct": "Sales \xB1 LW %",
2984
- "common.report-col.sales-var-lw-pct.short": "\xB1 LW %",
2985
- "common.report-col.sales-var-lw-pct.info": "Percentage change in sales compared to last week",
2986
- "common.report-col.sales-var-ly": "Sales \xB1 LY",
2987
- "common.report-col.sales-var-ly.short": "\xB1 LY",
2988
- "common.report-col.sales-var-ly.info": "Change in sales compared to last year",
2989
- "common.report-col.sales-var-ly-pct": "Sales \xB1 LY %",
2990
- "common.report-col.sales-var-ly-pct.short": "\xB1 LY %",
2991
- "common.report-col.sales-var-ly-pct.info": "Percentage change in sales compared to last year",
2992
- "common.report-col.sales-mix-by-pct": "Sales Mix By %",
2993
- "common.report-col.sales-mix-by-pct.short": "Sales Mix %",
2994
- "common.report-col.sales-mix-by-pct.info": "Percentage of total sales contributed by this item or category",
2995
- "common.report-col.sales-per-guest": "Sales/Guest",
2996
- "common.report-col.sales-per-guest.short": "Amt/Guest",
2997
- "common.report-col.sales-per-guest.info": "Average spend per guest",
2998
- "common.report-col.sales-per-guest-lw": "Sales/Guest LW",
2999
- "common.report-col.sales-per-guest-lw.short": "Amt/Guest LW",
3000
- "common.report-col.sales-per-guest-lw.info": "Average spend per guest last week",
3001
- "common.report-col.sales-per-guest-ly": "Sales/Guest LY",
3002
- "common.report-col.sales-per-guest-ly.short": "Amt/Guest LY",
3003
- "common.report-col.sales-per-guest-ly.info": "Average spend per guest last year",
3004
- "common.report-col.scheduled-shift-end": "Scheduled Shift End",
3005
- "common.report-col.scheduled-shift-end.short": "Sch Shift End",
3006
- "common.report-col.scheduled-shift-end.info": "Planned end time of the shift based on the schedule (not actual clock-out)",
3007
- "common.report-col.scheduled-shift-start": "Scheduled Shift Start",
3008
- "common.report-col.scheduled-shift-start.short": "Sch Shift Start",
3009
- "common.report-col.scheduled-shift-start.info": "Planned start time of the shift based on the schedule (not actual clock-in)",
3010
- "common.report-col.settlement-batch-date": "Settlement (Batch) Date",
3011
- "common.report-col.settlement-batch-date.short": "Settle Date",
3012
- "common.report-col.settlement-batch-date.info": "The date this group of transactions was finalized and sent to the bank for settlement",
3013
- "common.report-col.shift-duration-hrs": "Shift Duration (hrs)",
3014
- "common.report-col.shift-duration-hrs.short": "Shift (hrs)",
3015
- "common.report-col.shift-duration-hrs.info": "Shift Duration in Hours",
3016
- "common.report-col.subtotal": "Subtotal",
3017
- "common.report-col.subtotal.short": "Subtotal",
3018
- "common.report-col.subtotal.info": "Total of items before taxes, fees, and gratuity",
3019
- "common.report-col.tax-collected": "Tax Collected",
3020
- "common.report-col.tax-collected.short": "Tax",
3021
- "common.report-col.tax-collected.info": "Total taxes charged to customers",
3022
- "common.report-col.tax-name": "Tax Name",
3023
- "common.report-col.tax-name.short": "Tax Name",
3024
- "common.report-col.tax-name.info": "Name of the applied tax",
3025
- "common.report-col.tax-rate": "Tax Rate",
3026
- "common.report-col.tax-rate.short": "Tax Rate",
3027
- "common.report-col.tax-rate.info": "Flat Rate or Percentage used to calculate the tax",
3028
- "common.report-col.taxable-sales": "Taxable Sales",
3029
- "common.report-col.taxable-sales.short": "Taxable Sales",
3030
- "common.report-col.taxable-sales.info": "Sales subject to tax",
3031
- "common.report-col.ticket-closed": "Ticket Closed",
3032
- "common.report-col.ticket-closed.short": "Tkt Closed",
3033
- "common.report-col.ticket-closed.info": "Time when the ticket was completed and closed. Based on local calendar date",
3034
- "common.report-col.ticket-fee": "Ticket Fee",
3035
- "common.report-col.ticket-fee.short": "Tkt Fee",
3036
- "common.report-col.ticket-fee.info": "Additional fees applied to the ticket",
3037
- "common.report-col.ticket-number": "Ticket Number",
3038
- "common.report-col.ticket-number.short": "Tkt Number",
3039
- "common.report-col.ticket-number.info": "Unique ID used to identify the ticket or transaction",
3040
- "common.report-col.ticket-open": "Ticket Open",
3041
- "common.report-col.ticket-open.short": "Tkt Open",
3042
- "common.report-col.ticket-open.info": "Time when the ticket was opened. Based on local calendar date",
3043
- "common.report-col.ticket-total": "Ticket Total",
3044
- "common.report-col.ticket-total.short": "Tkt Total",
3045
- "common.report-col.ticket-total.info": "Total amount paid by guests, including sales, taxes, and tips",
3046
- "common.report-col.time-open-mins": "Time Open (Mins)",
3047
- "common.report-col.time-open-mins.short": "Open (Mins)",
3048
- "common.report-col.time-open-mins.info": "Minutes between ticket open and close times",
3049
- "common.report-col.tip-pct": "Tip %",
3050
- "common.report-col.tip-pct.short": "Tip %",
3051
- "common.report-col.tip-pct.info": "Tip % (Total Tips \xF7 Sales Amount)",
3052
- "common.report-col.tip-reduction": "Tip Reduction",
3053
- "common.report-col.tip-reduction.short": "Tip Reduction",
3054
- "common.report-col.tip-reduction.info": "Tips removed due to adjustments or policies",
3055
- "common.report-col.tip-share": "Tip Share",
3056
- "common.report-col.tip-share.short": "Tip Share",
3057
- "common.report-col.tip-share.info": "Tips distributed to other employees",
3058
- "common.report-col.tips": "Tips",
3059
- "common.report-col.tips.short": "Tips",
3060
- "common.report-col.tips.info": "Total tips received for the ticket",
3061
- "common.report-col.tips-per-hour": "Tips per Hour",
3062
- "common.report-col.tips-per-hour.short": "Tips per Hour",
3063
- "common.report-col.tips-per-hour.info": "Total Tips / Hours Worked",
3064
- "common.report-col.total-collected": "Total Collected",
3065
- "common.report-col.total-collected.short": "Total",
3066
- "common.report-col.total-collected.info": "Total amount collected, including taxes, fees, and tips",
3067
- "common.report-col.total-item-sales": "Total Item Sales",
3068
- "common.report-col.total-item-sales.short": "Item Sales",
3069
- "common.report-col.total-item-sales.info": "Average item price \xD7 quantity sold. Total value of the items sold",
3070
- "common.report-col.total-modifier-sales": "Total Modifier Sales",
3071
- "common.report-col.total-modifier-sales.short": "Mod Sales",
3072
- "common.report-col.total-modifier-sales.info": "Average modifier price \xD7 quantity sold. Total value of the modifiers sold",
3073
- "common.report-col.total-returns": "Total Returns",
3074
- "common.report-col.total-returns.short": "Returns",
3075
- "common.report-col.total-returns.info": "Total amount refunded to customers",
3076
- "common.report-col.total-sales": "Total Sales",
3077
- "common.report-col.total-sales.short": "Sales",
3078
- "common.report-col.total-sales.info": "Total sales across all tenders before discounts, refunds, taxes, or adjustments",
3079
- "common.report-col.total-tips": "Total Tips",
3080
- "common.report-col.total-tips.short": "Tips",
3081
- "common.report-col.total-tips.info": "All tips received from customers",
3082
- "common.report-col.transaction-date": "Transaction Date",
3083
- "common.report-col.transaction-date.short": "Txn Date",
3084
- "common.report-col.transaction-date.info": "The date the transaction took place",
3085
- "common.report-col.sale-payment-type": "Payment Type",
3086
- "common.report-col.sale-payment-type.short": "Payment Type",
3087
- "common.report-col.sale-payment-type.info": "The payment method used to close the ticket (e.g. Credit, Other)",
3088
- "common.report-col.transaction-type": "Transaction Type",
3089
- "common.report-col.transaction-type.short": "Txn Type",
3090
- "common.report-col.transaction-type.info": "Shows whether this transaction is a sale, refund, or other adjustment",
3091
- "common.report-col.untaxed-sales": "Untaxed Sales",
3092
- "common.report-col.untaxed-sales.short": "Non-Tax",
3093
- "common.report-col.untaxed-sales.info": "Sales not subject to tax",
3094
- "common.report-col.visa": "Visa",
3095
- "common.report-col.visa.short": "Visa",
3096
- "common.report-col.visa.info": "Total sales processed using Visa cards",
3097
- "common.report-col.visa-returns": "Visa Returns",
3098
- "common.report-col.visa-returns.short": "Visa Returns",
3099
- "common.report-col.visa-returns.info": "Total refunds issued on Visa payments",
3100
- "common.report-col.payments-count": "Payments Count",
3101
- "common.report-col.payments-count.short": "Qty",
3102
- "common.report-col.payments-count.info": "Number of payments",
3103
- "common.report-col.payments-amount": "Payments Amount",
3104
- "common.report-col.payments-amount.short": "Amount",
3105
- "common.report-col.payments-amount.info": "Total payment amount",
3106
- "common.report-col.payments-total": "Payments Total",
3107
- "common.report-col.payments-total.short": "Total",
3108
- "common.report-col.payments-total.info": "Total payments including tips",
3109
- "common.report-col.refund-void-description": "Description",
3110
- "common.report-col.refund-void-description.short": "Description",
3111
- "common.report-col.refund-void-description.info": "Type of refund or void",
3112
- "common.report-col.refund-void-count": "Refund/Void Count",
3113
- "common.report-col.refund-void-count.short": "Qty",
3114
- "common.report-col.refund-void-count.info": "Number of refunds or voids",
3115
- "common.report-col.refund-void-amount": "Refund/Void Amount",
3116
- "common.report-col.refund-void-amount.short": "Gross",
3117
- "common.report-col.refund-void-amount.info": "Total amount of refunds or voids",
3118
- "common.report-col.refund-void-pct-sales": "Refund/Void % of Sales",
3119
- "common.report-col.refund-void-pct-sales.short": "% of Sale",
3120
- "common.report-col.refund-void-pct-sales.info": "Percentage of sales represented by refunds or voids",
3121
- "common.report-col.discount-name": "Discount Type",
3122
- "common.report-col.discount-name.short": "Discount Type",
3123
- "common.report-col.discount-name.info": "Name of the discount applied",
3124
- "common.report-col.tickets": "Tickets",
3125
- "common.report-col.tickets.short": "Tickets",
3126
- "common.report-col.tickets.info": "Total number of tickets",
3127
- "common.report-col.guests": "Guests",
3128
- "common.report-col.guests.short": "Guests",
3129
- "common.report-col.guests.info": "Total number of guests",
3130
- "common.report-col.ticket-average": "Ticket Average",
3131
- "common.report-col.ticket-average.short": "Tkt Avg",
3132
- "common.report-col.ticket-average.info": "Average net sales per ticket",
3133
- "common.report-col.guest-average": "Guest Average",
3134
- "common.report-col.guest-average.short": "Gst Avg",
3135
- "common.report-col.guest-average.info": "Average net sales per guest",
3136
- "common.report-col.net": "Net",
3137
- "common.report-col.net.short": "Net",
3138
- "common.report-col.net.info": "Net sales amount",
3139
- "common.report-col.gross-cash-tips": "Gross Cash Tips",
3140
- "common.report-col.gross-cash-tips.short": "Gross Cash Tips",
3141
- "common.report-col.gross-cash-tips.info": "Gross cash tips collected before distribution",
3142
- "common.report-col.gross-credit-card-tips": "Gross Credit Card Tips",
3143
- "common.report-col.gross-credit-card-tips.short": "Gross CC Tips",
3144
- "common.report-col.gross-credit-card-tips.info": "Gross credit card tips before any deductions or redistribution",
3145
- "common.report-col.type": "Type",
3146
- "common.report-col.type.short": "Type",
3147
- "common.report-col.type.info": " "
3148
- };
3149
- var en_US_default = enUS3;
3150
-
3151
- // src/translations/index.ts
3152
- var filterCrowdin = (messages) => Object.fromEntries(
3153
- Object.entries(messages).filter((entry) => typeof entry[1] === "string")
3154
- );
3155
- var LOCALE_OVERRIDES = {
3156
- "en-US": {},
3157
- "en-GB": filterCrowdin(en_GB_default),
3158
- "es-ES": filterCrowdin(es_ES_default)
3159
- };
3160
- function resolveTranslate(key, locale) {
3161
- const overrides = LOCALE_OVERRIDES[locale];
3162
- if (overrides) {
3163
- const override = overrides[key];
3164
- if (override !== void 0) {
3165
- return override;
3166
- }
3167
- }
3168
- return en_US_default[key] ?? key;
3169
- }
3170
-
3171
- // src/formatting.ts
3172
- var dateFormatterCache = /* @__PURE__ */ new Map();
3173
- var timeFormatterCache = /* @__PURE__ */ new Map();
3174
- var moneyFormatterCache = /* @__PURE__ */ new Map();
3175
- var numberFormatterCache = /* @__PURE__ */ new Map();
3176
- var getDateFormatter = (locale, timeZone) => {
3177
- const key = `${locale}-${timeZone}`;
3178
- let fmt = dateFormatterCache.get(key);
3179
- if (!fmt) {
3180
- fmt = new Intl.DateTimeFormat(locale, { dateStyle: "short", timeZone });
3181
- dateFormatterCache.set(key, fmt);
3182
- }
3183
- return fmt;
3184
- };
3185
- var getTimeFormatter = (locale, timeZone, format) => {
3186
- const key = `${locale}-${timeZone}-${format}`;
3187
- let fmt = timeFormatterCache.get(key);
3188
- if (!fmt) {
3189
- if (format === "00:00") {
3190
- fmt = new Intl.DateTimeFormat(locale, { hour: "2-digit", minute: "2-digit", timeZone });
3191
- } else if (format === "00:00-24H") {
3192
- fmt = new Intl.DateTimeFormat(locale, {
3193
- hour: "2-digit",
3194
- minute: "2-digit",
3195
- hour12: false,
3196
- hourCycle: "h23",
3197
- timeZone
3198
- });
3199
- } else {
3200
- fmt = new Intl.DateTimeFormat(locale, { hour: "2-digit", minute: "2-digit", second: "2-digit", timeZone });
3201
- }
3202
- timeFormatterCache.set(key, fmt);
3203
- }
3204
- return fmt;
3205
- };
3206
- var getMoneyFormatter = (locale, currency, decimals) => {
3207
- const key = `${locale}-${currency}-${decimals}`;
3208
- let fmt = moneyFormatterCache.get(key);
3209
- if (!fmt) {
3210
- fmt = new Intl.NumberFormat(locale, {
3211
- style: "currency",
3212
- currency,
3213
- minimumFractionDigits: decimals,
3214
- maximumFractionDigits: decimals
3215
- });
3216
- moneyFormatterCache.set(key, fmt);
3217
- }
3218
- return fmt;
3219
- };
3220
- var getNumberFormatter = (locale, decimals) => {
3221
- const key = `${locale}-${decimals}`;
3222
- let fmt = numberFormatterCache.get(key);
3223
- if (!fmt) {
3224
- fmt = new Intl.NumberFormat(locale, { minimumFractionDigits: decimals, maximumFractionDigits: decimals });
3225
- numberFormatterCache.set(key, fmt);
3226
- }
3227
- return fmt;
3228
- };
3229
- var formatDate = (date, options = {}) => {
3230
- const { locale = "en-US", timeZone = "UTC" } = options;
3231
- return getDateFormatter(locale, timeZone).format(date);
3232
- };
3233
- var formatTime = (date, options) => {
3234
- const { locale = "en-US", timeZone = "UTC", format } = options;
3235
- const d = new Date(date);
3236
- return getTimeFormatter(locale, timeZone, format).format(d);
3237
- };
3238
- var formatMoney = (amount, options = {}) => {
3239
- const { locale = "en-US", currency = "USD", decimals = 2 } = options;
3240
- return getMoneyFormatter(locale, currency, decimals).format(amount);
3241
- };
3242
- var formatPercent = (value, decimals = 2) => `${value.toFixed(decimals)}%`;
3243
- var formatInteger = (value) => Math.round(value).toString();
3244
- var formatFixedNumber = (value, decimals = 2) => value.toFixed(decimals);
3245
- var formatString = (value) => {
3246
- return value == null ? "" : typeof value === "string" ? value : typeof value === "number" || typeof value === "boolean" ? String(value) : "";
3247
- };
3248
- var getNumberToFormat = (value) => typeof value === "number" ? value : 0;
3249
- var getDateToFormat = (value) => {
3250
- if (value instanceof Date) {
3251
- return isNaN(value.getTime()) ? null : value;
3252
- }
3253
- if (typeof value === "string" || typeof value === "number") {
3254
- const d = new Date(value);
3255
- return isNaN(d.getTime()) ? null : d;
3256
- }
3257
- return null;
3258
- };
3259
- var formatMoneyWithoutSymbol = (amount, options = {}) => {
3260
- const { locale = "en-US", decimals = 2 } = options;
3261
- return getNumberFormatter(locale, decimals).format(amount);
3262
- };
3263
- var getReportFormattingLocaleOptions = (locations) => {
3264
- if (locations.length === 0) {
3265
- return [{ currency: "USD", locale: "en-US" }];
3266
- }
3267
- return Array.from(
3268
- new Map(
3269
- locations.map((loc) => ({
3270
- currency: loc.currency,
3271
- locale: `${loc.language ?? "en"}-${loc.countryCode}`
3272
- })).map((item) => [`${item.currency}-${item.locale}`, item])
3273
- ).values()
3274
- );
3275
- };
3276
- var DEFAULT_FIELD_CONFIG = { type: "string" };
3277
- var formatFieldValue = (value, type, localeOptions, fullRecord, fieldConfig = DEFAULT_FIELD_CONFIG) => {
3278
- const { currency, locale } = localeOptions;
3279
- switch (type) {
3280
- case "conditional": {
3281
- if (!fullRecord) {
3282
- return formatString(value);
3283
- }
3284
- const conditionalConfig = fieldConfig.conditionalConfiguration;
3285
- const configType = conditionalConfig.conditionalFormat(fullRecord[conditionalConfig.conditionalField]);
3286
- return formatFieldValue(value, configType, localeOptions, fullRecord, fieldConfig);
3287
- }
3288
- case "string":
3289
- return formatString(value);
3290
- case "money":
3291
- return formatMoney(getNumberToFormat(value), { currency, locale });
3292
- case "percent":
3293
- return formatPercent(getNumberToFormat(value) * 100);
3294
- case "fixedNumber":
3295
- return formatFixedNumber(getNumberToFormat(value));
3296
- case "date": {
3297
- const d = getDateToFormat(value);
3298
- return d ? formatDate(d, { locale }) : "";
3299
- }
3300
- case "time": {
3301
- const d = getDateToFormat(value);
3302
- return d ? formatTime(d, { locale, format: "00:00:00" }) : "";
3303
- }
3304
- case "number":
3305
- default:
3306
- return String(getNumberToFormat(value));
3307
- }
3308
- };
3309
188
  export {
3310
189
  COLUMN_REGISTRY,
3311
190
  DAILY_SALES_CASH_ROW_LABELS,