@harbortouch/skytab-analytics-report-utils 0.2.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 ADDED
@@ -0,0 +1,1117 @@
1
+ // src/columns/index.ts
2
+ var COLUMN_REGISTRY = {
3
+ fifteenMinInterval: {
4
+ titleKey: "common.report-col.fifteen-min-interval",
5
+ shortTitleKey: "common.report-col.fifteen-min-interval.short",
6
+ infoTextKey: "common.report-col.fifteen-min-interval.info"
7
+ },
8
+ adjustedTips: {
9
+ titleKey: "common.report-col.adjusted-tips",
10
+ shortTitleKey: "common.report-col.adjusted-tips.short",
11
+ infoTextKey: "common.report-col.adjusted-tips.info"
12
+ },
13
+ advantageProgram: {
14
+ titleKey: "common.report-col.advantage-program",
15
+ shortTitleKey: "common.report-col.advantage-program.short",
16
+ infoTextKey: "common.report-col.advantage-program.info"
17
+ },
18
+ amex: {
19
+ titleKey: "common.report-col.amex",
20
+ shortTitleKey: "common.report-col.amex.short",
21
+ infoTextKey: "common.report-col.amex.info"
22
+ },
23
+ amexReturns: {
24
+ titleKey: "common.report-col.amex-returns",
25
+ shortTitleKey: "common.report-col.amex-returns.short",
26
+ infoTextKey: "common.report-col.amex-returns.info"
27
+ },
28
+ attachRate: {
29
+ titleKey: "common.report-col.attach-rate",
30
+ shortTitleKey: "common.report-col.attach-rate.short",
31
+ infoTextKey: "common.report-col.attach-rate.info"
32
+ },
33
+ autoGratuity: {
34
+ titleKey: "common.report-col.auto-gratuity",
35
+ shortTitleKey: "common.report-col.auto-gratuity.short",
36
+ infoTextKey: "common.report-col.auto-gratuity.info"
37
+ },
38
+ averageGrossPrice: {
39
+ titleKey: "common.report-col.average-gross-price",
40
+ shortTitleKey: "common.report-col.average-gross-price.short",
41
+ infoTextKey: "common.report-col.average-gross-price.info"
42
+ },
43
+ bankFees: {
44
+ titleKey: "common.report-col.bank-fees",
45
+ shortTitleKey: "common.report-col.bank-fees.short",
46
+ infoTextKey: "common.report-col.bank-fees.info"
47
+ },
48
+ batchAmount: {
49
+ titleKey: "common.report-col.batch-amount",
50
+ shortTitleKey: "common.report-col.batch-amount.short",
51
+ infoTextKey: "common.report-col.batch-amount.info"
52
+ },
53
+ batchDate: {
54
+ titleKey: "common.report-col.batch-date",
55
+ shortTitleKey: "common.report-col.batch-date.short",
56
+ infoTextKey: "common.report-col.batch-date.info"
57
+ },
58
+ batchNumber: {
59
+ titleKey: "common.report-col.batch-number",
60
+ shortTitleKey: "common.report-col.batch-number.short",
61
+ infoTextKey: "common.report-col.batch-number.info"
62
+ },
63
+ clockInTime: {
64
+ titleKey: "common.report-col.clock-in-time",
65
+ shortTitleKey: "common.report-col.clock-in-time.short",
66
+ infoTextKey: "common.report-col.clock-in-time.info"
67
+ },
68
+ clockOutTime: {
69
+ titleKey: "common.report-col.clock-out-time",
70
+ shortTitleKey: "common.report-col.clock-out-time.short",
71
+ infoTextKey: "common.report-col.clock-out-time.info"
72
+ },
73
+ country: {
74
+ titleKey: "common.report-col.country",
75
+ shortTitleKey: "common.report-col.country.short",
76
+ infoTextKey: "common.report-col.country.info"
77
+ },
78
+ customerName: {
79
+ titleKey: "common.report-col.customer-name",
80
+ shortTitleKey: "common.report-col.customer-name.short",
81
+ infoTextKey: "common.report-col.customer-name.info"
82
+ },
83
+ date: {
84
+ titleKey: "common.report-col.date",
85
+ shortTitleKey: "common.report-col.date.short",
86
+ infoTextKey: "common.report-col.date.info"
87
+ },
88
+ dateClose: {
89
+ titleKey: "common.report-col.date-close",
90
+ shortTitleKey: "common.report-col.date-close.short",
91
+ infoTextKey: "common.report-col.date-close.info"
92
+ },
93
+ daypart: {
94
+ titleKey: "common.report-col.daypart",
95
+ shortTitleKey: "common.report-col.daypart.short",
96
+ infoTextKey: "common.report-col.daypart.info"
97
+ },
98
+ debit: {
99
+ titleKey: "common.report-col.debit",
100
+ shortTitleKey: "common.report-col.debit.short",
101
+ infoTextKey: "common.report-col.debit.info"
102
+ },
103
+ debitReturns: {
104
+ titleKey: "common.report-col.debit-returns",
105
+ shortTitleKey: "common.report-col.debit-returns.short",
106
+ infoTextKey: "common.report-col.debit-returns.info"
107
+ },
108
+ declaredTips: {
109
+ titleKey: "common.report-col.declared-tips",
110
+ shortTitleKey: "common.report-col.declared-tips.short",
111
+ infoTextKey: "common.report-col.declared-tips.info"
112
+ },
113
+ department: {
114
+ titleKey: "common.report-col.department",
115
+ shortTitleKey: "common.report-col.department.short",
116
+ infoTextKey: "common.report-col.department.info"
117
+ },
118
+ depositCurrency: {
119
+ titleKey: "common.report-col.deposit-currency",
120
+ shortTitleKey: "common.report-col.deposit-currency.short",
121
+ infoTextKey: "common.report-col.deposit-currency.info"
122
+ },
123
+ depositDate: {
124
+ titleKey: "common.report-col.deposit-date",
125
+ shortTitleKey: "common.report-col.deposit-date.short",
126
+ infoTextKey: "common.report-col.deposit-date.info"
127
+ },
128
+ discountAmount: {
129
+ titleKey: "common.report-col.discount-amount",
130
+ shortTitleKey: "common.report-col.discount-amount.short",
131
+ infoTextKey: "common.report-col.discount-amount.info"
132
+ },
133
+ discover: {
134
+ titleKey: "common.report-col.discover",
135
+ shortTitleKey: "common.report-col.discover.short",
136
+ infoTextKey: "common.report-col.discover.info"
137
+ },
138
+ discoverReturns: {
139
+ titleKey: "common.report-col.discover-returns",
140
+ shortTitleKey: "common.report-col.discover-returns.short",
141
+ infoTextKey: "common.report-col.discover-returns.info"
142
+ },
143
+ ebt: {
144
+ titleKey: "common.report-col.ebt",
145
+ shortTitleKey: "common.report-col.ebt.short",
146
+ infoTextKey: "common.report-col.ebt.info"
147
+ },
148
+ ebtReturns: {
149
+ titleKey: "common.report-col.ebt-returns",
150
+ shortTitleKey: "common.report-col.ebt-returns.short",
151
+ infoTextKey: "common.report-col.ebt-returns.info"
152
+ },
153
+ employeeId: {
154
+ titleKey: "common.report-col.employee-id",
155
+ shortTitleKey: "common.report-col.employee-id.short",
156
+ infoTextKey: "common.report-col.employee-id.info"
157
+ },
158
+ employeeJob: {
159
+ titleKey: "common.report-col.employee-job",
160
+ shortTitleKey: "common.report-col.employee-job.short",
161
+ infoTextKey: "common.report-col.employee-job.info"
162
+ },
163
+ employeeName: {
164
+ titleKey: "common.report-col.employee-name",
165
+ shortTitleKey: "common.report-col.employee-name.short",
166
+ infoTextKey: "common.report-col.employee-name.info"
167
+ },
168
+ exemptTaxes: {
169
+ titleKey: "common.report-col.exempt-taxes",
170
+ shortTitleKey: "common.report-col.exempt-taxes.short",
171
+ infoTextKey: "common.report-col.exempt-taxes.info"
172
+ },
173
+ grandTotal: {
174
+ titleKey: "common.report-col.grand-total",
175
+ shortTitleKey: "common.report-col.grand-total.short",
176
+ infoTextKey: "common.report-col.grand-total.info"
177
+ },
178
+ grossCashSales: {
179
+ titleKey: "common.report-col.gross-cash-sales",
180
+ shortTitleKey: "common.report-col.gross-cash-sales.short",
181
+ infoTextKey: "common.report-col.gross-cash-sales.info"
182
+ },
183
+ grossCashTips: {
184
+ titleKey: "common.report-col.gross-cash-tips",
185
+ shortTitleKey: "common.report-col.gross-cash-tips.short",
186
+ infoTextKey: "common.report-col.gross-cash-tips.info"
187
+ },
188
+ grossCreditCardTips: {
189
+ titleKey: "common.report-col.gross-credit-card-tips",
190
+ shortTitleKey: "common.report-col.gross-credit-card-tips.short",
191
+ infoTextKey: "common.report-col.gross-credit-card-tips.info"
192
+ },
193
+ grossCreditSales: {
194
+ titleKey: "common.report-col.gross-credit-sales",
195
+ shortTitleKey: "common.report-col.gross-credit-sales.short",
196
+ infoTextKey: "common.report-col.gross-credit-sales.info"
197
+ },
198
+ grossSales: {
199
+ titleKey: "common.report-col.gross-sales",
200
+ shortTitleKey: "common.report-col.gross-sales.short",
201
+ infoTextKey: "common.report-col.gross-sales.info"
202
+ },
203
+ grossTips: {
204
+ titleKey: "common.report-col.gross-tips",
205
+ shortTitleKey: "common.report-col.gross-tips.short",
206
+ infoTextKey: "common.report-col.gross-tips.info"
207
+ },
208
+ guestCount: {
209
+ titleKey: "common.report-col.guest-count",
210
+ shortTitleKey: "common.report-col.guest-count.short",
211
+ infoTextKey: "common.report-col.guest-count.info"
212
+ },
213
+ guestsVarLw: {
214
+ titleKey: "common.report-col.guests-var-lw",
215
+ shortTitleKey: "common.report-col.guests-var-lw.short",
216
+ infoTextKey: "common.report-col.guests-var-lw.info"
217
+ },
218
+ guestsVarLwPct: {
219
+ titleKey: "common.report-col.guests-var-lw-pct",
220
+ shortTitleKey: "common.report-col.guests-var-lw-pct.short",
221
+ infoTextKey: "common.report-col.guests-var-lw-pct.info"
222
+ },
223
+ guestsVarLy: {
224
+ titleKey: "common.report-col.guests-var-ly",
225
+ shortTitleKey: "common.report-col.guests-var-ly.short",
226
+ infoTextKey: "common.report-col.guests-var-ly.info"
227
+ },
228
+ guestsVarLyPct: {
229
+ titleKey: "common.report-col.guests-var-ly-pct",
230
+ shortTitleKey: "common.report-col.guests-var-ly-pct.short",
231
+ infoTextKey: "common.report-col.guests-var-ly-pct.info"
232
+ },
233
+ hour: {
234
+ titleKey: "common.report-col.hour",
235
+ shortTitleKey: "common.report-col.hour.short",
236
+ infoTextKey: "common.report-col.hour.info"
237
+ },
238
+ hoursWorked: {
239
+ titleKey: "common.report-col.hours-worked",
240
+ shortTitleKey: "common.report-col.hours-worked.short",
241
+ infoTextKey: "common.report-col.hours-worked.info"
242
+ },
243
+ inclusiveTax: {
244
+ titleKey: "common.report-col.inclusive-tax",
245
+ shortTitleKey: "common.report-col.inclusive-tax.short",
246
+ infoTextKey: "common.report-col.inclusive-tax.info"
247
+ },
248
+ itemName: {
249
+ titleKey: "common.report-col.item-name",
250
+ shortTitleKey: "common.report-col.item-name.short",
251
+ infoTextKey: "common.report-col.item-name.info"
252
+ },
253
+ itemPrice: {
254
+ titleKey: "common.report-col.item-price",
255
+ shortTitleKey: "common.report-col.item-price.short",
256
+ infoTextKey: "common.report-col.item-price.info"
257
+ },
258
+ locationCity: {
259
+ titleKey: "common.report-col.location-city",
260
+ shortTitleKey: "common.report-col.location-city.short",
261
+ infoTextKey: "common.report-col.location-city.info"
262
+ },
263
+ locationMid: {
264
+ titleKey: "common.report-col.location-mid",
265
+ shortTitleKey: "common.report-col.location-mid.short",
266
+ infoTextKey: "common.report-col.location-mid.info"
267
+ },
268
+ locationName: {
269
+ titleKey: "common.report-col.location-name",
270
+ shortTitleKey: "common.report-col.location-name.short",
271
+ infoTextKey: "common.report-col.location-name.info"
272
+ },
273
+ locationState: {
274
+ titleKey: "common.report-col.location-state",
275
+ shortTitleKey: "common.report-col.location-state.short",
276
+ infoTextKey: "common.report-col.location-state.info"
277
+ },
278
+ mastercard: {
279
+ titleKey: "common.report-col.mastercard",
280
+ shortTitleKey: "common.report-col.mastercard.short",
281
+ infoTextKey: "common.report-col.mastercard.info"
282
+ },
283
+ mcReturns: {
284
+ titleKey: "common.report-col.mc-returns",
285
+ shortTitleKey: "common.report-col.mc-returns.short",
286
+ infoTextKey: "common.report-col.mc-returns.info"
287
+ },
288
+ modifierName: {
289
+ titleKey: "common.report-col.modifier-name",
290
+ shortTitleKey: "common.report-col.modifier-name.short",
291
+ infoTextKey: "common.report-col.modifier-name.info"
292
+ },
293
+ modifierPrice: {
294
+ titleKey: "common.report-col.modifier-price",
295
+ shortTitleKey: "common.report-col.modifier-price.short",
296
+ infoTextKey: "common.report-col.modifier-price.info"
297
+ },
298
+ modifierQuantity: {
299
+ titleKey: "common.report-col.modifier-quantity",
300
+ shortTitleKey: "common.report-col.modifier-quantity.short",
301
+ infoTextKey: "common.report-col.modifier-quantity.info"
302
+ },
303
+ netSales: {
304
+ titleKey: "common.report-col.net-sales",
305
+ shortTitleKey: "common.report-col.net-sales.short",
306
+ infoTextKey: "common.report-col.net-sales.info"
307
+ },
308
+ netTaxCollected: {
309
+ titleKey: "common.report-col.net-tax-collected",
310
+ shortTitleKey: "common.report-col.net-tax-collected.short",
311
+ infoTextKey: "common.report-col.net-tax-collected.info"
312
+ },
313
+ netTips: {
314
+ titleKey: "common.report-col.net-tips",
315
+ shortTitleKey: "common.report-col.net-tips.short",
316
+ infoTextKey: "common.report-col.net-tips.info"
317
+ },
318
+ numberOfGuests: {
319
+ titleKey: "common.report-col.number-of-guests",
320
+ shortTitleKey: "common.report-col.number-of-guests.short",
321
+ infoTextKey: "common.report-col.number-of-guests.info"
322
+ },
323
+ orderType: {
324
+ titleKey: "common.report-col.order-type",
325
+ shortTitleKey: "common.report-col.order-type.short",
326
+ infoTextKey: "common.report-col.order-type.info"
327
+ },
328
+ paymentType: {
329
+ titleKey: "common.report-col.payment-type",
330
+ shortTitleKey: "common.report-col.payment-type.short",
331
+ infoTextKey: "common.report-col.payment-type.info"
332
+ },
333
+ payrollId: {
334
+ titleKey: "common.report-col.payroll-id",
335
+ shortTitleKey: "common.report-col.payroll-id.short",
336
+ infoTextKey: "common.report-col.payroll-id.info"
337
+ },
338
+ quantity: {
339
+ titleKey: "common.report-col.quantity",
340
+ shortTitleKey: "common.report-col.quantity.short",
341
+ infoTextKey: "common.report-col.quantity.info"
342
+ },
343
+ referenceNumber: {
344
+ titleKey: "common.report-col.reference-number",
345
+ shortTitleKey: "common.report-col.reference-number.short",
346
+ infoTextKey: "common.report-col.reference-number.info"
347
+ },
348
+ refundAmount: {
349
+ titleKey: "common.report-col.refund-amount",
350
+ shortTitleKey: "common.report-col.refund-amount.short",
351
+ infoTextKey: "common.report-col.refund-amount.info"
352
+ },
353
+ refundedTaxAmount: {
354
+ titleKey: "common.report-col.refunded-tax-amount",
355
+ shortTitleKey: "common.report-col.refunded-tax-amount.short",
356
+ infoTextKey: "common.report-col.refunded-tax-amount.info"
357
+ },
358
+ revenueCenter: {
359
+ titleKey: "common.report-col.revenue-center",
360
+ shortTitleKey: "common.report-col.revenue-center.short",
361
+ infoTextKey: "common.report-col.revenue-center.info"
362
+ },
363
+ revenueClass: {
364
+ titleKey: "common.report-col.revenue-class",
365
+ shortTitleKey: "common.report-col.revenue-class.short",
366
+ infoTextKey: "common.report-col.revenue-class.info"
367
+ },
368
+ salesVarLw: {
369
+ titleKey: "common.report-col.sales-var-lw",
370
+ shortTitleKey: "common.report-col.sales-var-lw.short",
371
+ infoTextKey: "common.report-col.sales-var-lw.info"
372
+ },
373
+ salesVarLwPct: {
374
+ titleKey: "common.report-col.sales-var-lw-pct",
375
+ shortTitleKey: "common.report-col.sales-var-lw-pct.short",
376
+ infoTextKey: "common.report-col.sales-var-lw-pct.info"
377
+ },
378
+ salesVarLy: {
379
+ titleKey: "common.report-col.sales-var-ly",
380
+ shortTitleKey: "common.report-col.sales-var-ly.short",
381
+ infoTextKey: "common.report-col.sales-var-ly.info"
382
+ },
383
+ salesVarLyPct: {
384
+ titleKey: "common.report-col.sales-var-ly-pct",
385
+ shortTitleKey: "common.report-col.sales-var-ly-pct.short",
386
+ infoTextKey: "common.report-col.sales-var-ly-pct.info"
387
+ },
388
+ salesMixByPct: {
389
+ titleKey: "common.report-col.sales-mix-by-pct",
390
+ shortTitleKey: "common.report-col.sales-mix-by-pct.short",
391
+ infoTextKey: "common.report-col.sales-mix-by-pct.info"
392
+ },
393
+ salesPerGuest: {
394
+ titleKey: "common.report-col.sales-per-guest",
395
+ shortTitleKey: "common.report-col.sales-per-guest.short",
396
+ infoTextKey: "common.report-col.sales-per-guest.info"
397
+ },
398
+ salesPerGuestLw: {
399
+ titleKey: "common.report-col.sales-per-guest-lw",
400
+ shortTitleKey: "common.report-col.sales-per-guest-lw.short",
401
+ infoTextKey: "common.report-col.sales-per-guest-lw.info"
402
+ },
403
+ salesPerGuestLy: {
404
+ titleKey: "common.report-col.sales-per-guest-ly",
405
+ shortTitleKey: "common.report-col.sales-per-guest-ly.short",
406
+ infoTextKey: "common.report-col.sales-per-guest-ly.info"
407
+ },
408
+ scheduledShiftEnd: {
409
+ titleKey: "common.report-col.scheduled-shift-end",
410
+ shortTitleKey: "common.report-col.scheduled-shift-end.short",
411
+ infoTextKey: "common.report-col.scheduled-shift-end.info"
412
+ },
413
+ scheduledShiftStart: {
414
+ titleKey: "common.report-col.scheduled-shift-start",
415
+ shortTitleKey: "common.report-col.scheduled-shift-start.short",
416
+ infoTextKey: "common.report-col.scheduled-shift-start.info"
417
+ },
418
+ settlementBatchDate: {
419
+ titleKey: "common.report-col.settlement-batch-date",
420
+ shortTitleKey: "common.report-col.settlement-batch-date.short",
421
+ infoTextKey: "common.report-col.settlement-batch-date.info"
422
+ },
423
+ shiftDurationHrs: {
424
+ titleKey: "common.report-col.shift-duration-hrs",
425
+ shortTitleKey: "common.report-col.shift-duration-hrs.short",
426
+ infoTextKey: "common.report-col.shift-duration-hrs.info"
427
+ },
428
+ subtotal: {
429
+ titleKey: "common.report-col.subtotal",
430
+ shortTitleKey: "common.report-col.subtotal.short",
431
+ infoTextKey: "common.report-col.subtotal.info"
432
+ },
433
+ taxCollected: {
434
+ titleKey: "common.report-col.tax-collected",
435
+ shortTitleKey: "common.report-col.tax-collected.short",
436
+ infoTextKey: "common.report-col.tax-collected.info"
437
+ },
438
+ taxName: {
439
+ titleKey: "common.report-col.tax-name",
440
+ shortTitleKey: "common.report-col.tax-name.short",
441
+ infoTextKey: "common.report-col.tax-name.info"
442
+ },
443
+ taxRate: {
444
+ titleKey: "common.report-col.tax-rate",
445
+ shortTitleKey: "common.report-col.tax-rate.short",
446
+ infoTextKey: "common.report-col.tax-rate.info"
447
+ },
448
+ taxableSales: {
449
+ titleKey: "common.report-col.taxable-sales",
450
+ shortTitleKey: "common.report-col.taxable-sales.short",
451
+ infoTextKey: "common.report-col.taxable-sales.info"
452
+ },
453
+ ticketClosed: {
454
+ titleKey: "common.report-col.ticket-closed",
455
+ shortTitleKey: "common.report-col.ticket-closed.short",
456
+ infoTextKey: "common.report-col.ticket-closed.info"
457
+ },
458
+ ticketFee: {
459
+ titleKey: "common.report-col.ticket-fee",
460
+ shortTitleKey: "common.report-col.ticket-fee.short",
461
+ infoTextKey: "common.report-col.ticket-fee.info"
462
+ },
463
+ ticketNumber: {
464
+ titleKey: "common.report-col.ticket-number",
465
+ shortTitleKey: "common.report-col.ticket-number.short",
466
+ infoTextKey: "common.report-col.ticket-number.info"
467
+ },
468
+ ticketOpen: {
469
+ titleKey: "common.report-col.ticket-open",
470
+ shortTitleKey: "common.report-col.ticket-open.short",
471
+ infoTextKey: "common.report-col.ticket-open.info"
472
+ },
473
+ ticketTotal: {
474
+ titleKey: "common.report-col.ticket-total",
475
+ shortTitleKey: "common.report-col.ticket-total.short",
476
+ infoTextKey: "common.report-col.ticket-total.info"
477
+ },
478
+ timeOpenMins: {
479
+ titleKey: "common.report-col.time-open-mins",
480
+ shortTitleKey: "common.report-col.time-open-mins.short",
481
+ infoTextKey: "common.report-col.time-open-mins.info"
482
+ },
483
+ tipPct: {
484
+ titleKey: "common.report-col.tip-pct",
485
+ shortTitleKey: "common.report-col.tip-pct.short",
486
+ infoTextKey: "common.report-col.tip-pct.info"
487
+ },
488
+ tipReduction: {
489
+ titleKey: "common.report-col.tip-reduction",
490
+ shortTitleKey: "common.report-col.tip-reduction.short",
491
+ infoTextKey: "common.report-col.tip-reduction.info"
492
+ },
493
+ tipShare: {
494
+ titleKey: "common.report-col.tip-share",
495
+ shortTitleKey: "common.report-col.tip-share.short",
496
+ infoTextKey: "common.report-col.tip-share.info"
497
+ },
498
+ tips: {
499
+ titleKey: "common.report-col.tips",
500
+ shortTitleKey: "common.report-col.tips.short",
501
+ infoTextKey: "common.report-col.tips.info"
502
+ },
503
+ tipsPerHour: {
504
+ titleKey: "common.report-col.tips-per-hour",
505
+ shortTitleKey: "common.report-col.tips-per-hour.short",
506
+ infoTextKey: "common.report-col.tips-per-hour.info"
507
+ },
508
+ totalCollected: {
509
+ titleKey: "common.report-col.total-collected",
510
+ shortTitleKey: "common.report-col.total-collected.short",
511
+ infoTextKey: "common.report-col.total-collected.info"
512
+ },
513
+ totalItemSales: {
514
+ titleKey: "common.report-col.total-item-sales",
515
+ shortTitleKey: "common.report-col.total-item-sales.short",
516
+ infoTextKey: "common.report-col.total-item-sales.info"
517
+ },
518
+ totalModifierSales: {
519
+ titleKey: "common.report-col.total-modifier-sales",
520
+ shortTitleKey: "common.report-col.total-modifier-sales.short",
521
+ infoTextKey: "common.report-col.total-modifier-sales.info"
522
+ },
523
+ totalReturns: {
524
+ titleKey: "common.report-col.total-returns",
525
+ shortTitleKey: "common.report-col.total-returns.short",
526
+ infoTextKey: "common.report-col.total-returns.info"
527
+ },
528
+ totalSales: {
529
+ titleKey: "common.report-col.total-sales",
530
+ shortTitleKey: "common.report-col.total-sales.short",
531
+ infoTextKey: "common.report-col.total-sales.info"
532
+ },
533
+ totalTips: {
534
+ titleKey: "common.report-col.total-tips",
535
+ shortTitleKey: "common.report-col.total-tips.short",
536
+ infoTextKey: "common.report-col.total-tips.info"
537
+ },
538
+ transactionDate: {
539
+ titleKey: "common.report-col.transaction-date",
540
+ shortTitleKey: "common.report-col.transaction-date.short",
541
+ infoTextKey: "common.report-col.transaction-date.info"
542
+ },
543
+ transactionType: {
544
+ titleKey: "common.report-col.transaction-type",
545
+ shortTitleKey: "common.report-col.transaction-type.short",
546
+ infoTextKey: "common.report-col.transaction-type.info"
547
+ },
548
+ untaxedSales: {
549
+ titleKey: "common.report-col.untaxed-sales",
550
+ shortTitleKey: "common.report-col.untaxed-sales.short",
551
+ infoTextKey: "common.report-col.untaxed-sales.info"
552
+ },
553
+ visa: {
554
+ titleKey: "common.report-col.visa",
555
+ shortTitleKey: "common.report-col.visa.short",
556
+ infoTextKey: "common.report-col.visa.info"
557
+ },
558
+ visaReturns: {
559
+ titleKey: "common.report-col.visa-returns",
560
+ shortTitleKey: "common.report-col.visa-returns.short",
561
+ infoTextKey: "common.report-col.visa-returns.info"
562
+ }
563
+ };
564
+ function getColumnMetadata(key) {
565
+ return COLUMN_REGISTRY[key];
566
+ }
567
+
568
+ // src/utils/alignment.ts
569
+ function getColumnAlignment(type) {
570
+ if (type === "string" || type === "date" || type === "time") {
571
+ return "left";
572
+ }
573
+ return "right";
574
+ }
575
+ function isNumericType(type) {
576
+ return type === "money" || type === "number" || type === "percent" || type === "fixedNumber";
577
+ }
578
+
579
+ // src/totals.ts
580
+ function calculateReportTotals(data, fieldConfig, opts) {
581
+ const { labelField, label } = opts;
582
+ const fieldsToSum = /* @__PURE__ */ new Set();
583
+ const derivedFields = [];
584
+ for (const [field, config] of Object.entries(fieldConfig)) {
585
+ const { type, columnKey, footerCalculation: calc } = config;
586
+ if (!type || type === "string" || type === "date" || type === "time" || type === "boolean") {
587
+ continue;
588
+ }
589
+ if (calc?.type === "none") {
590
+ } else if (!calc || calc.type === "sum") {
591
+ if (columnKey || calc?.type === "sum") {
592
+ fieldsToSum.add(field);
593
+ }
594
+ } else {
595
+ derivedFields.push({ field, calc });
596
+ if (calc.numeratorField) fieldsToSum.add(calc.numeratorField);
597
+ if (calc.denominatorField) fieldsToSum.add(calc.denominatorField);
598
+ }
599
+ }
600
+ const sums = {};
601
+ for (const field of fieldsToSum) {
602
+ sums[field] = data.reduce((acc, row) => acc + (row[field] ?? 0), 0);
603
+ }
604
+ const derived = {};
605
+ for (const { field, calc } of derivedFields) {
606
+ const num = sums[calc.numeratorField ?? ""] ?? 0;
607
+ const den = sums[calc.denominatorField ?? ""] ?? 0;
608
+ if (calc.type === "percentChange") {
609
+ derived[field] = den ? (num - den) / den : 0;
610
+ } else if (calc.type === "average") {
611
+ derived[field] = den > 0 ? num / den : 0;
612
+ }
613
+ }
614
+ const result = {};
615
+ for (const [field, config] of Object.entries(fieldConfig)) {
616
+ const { type } = config;
617
+ if (!type || type === "string" || type === "date" || type === "time") {
618
+ result[field] = "";
619
+ } else if (type === "boolean") {
620
+ result[field] = false;
621
+ } else {
622
+ result[field] = 0;
623
+ }
624
+ }
625
+ result[labelField] = label;
626
+ for (const [field, value] of Object.entries(sums)) {
627
+ result[field] = value;
628
+ }
629
+ for (const [field, value] of Object.entries(derived)) {
630
+ result[field] = value;
631
+ }
632
+ return result;
633
+ }
634
+
635
+ // src/reports/salesSummary.ts
636
+ var FIRST_COLUMN_WIDTH = 240;
637
+ var FIELDS = {
638
+ groupById: { type: "number" },
639
+ groupByName: { type: "string", size: FIRST_COLUMN_WIDTH },
640
+ salesAmountNet: { type: "money", columnKey: "netSales" },
641
+ salesVarLW: { type: "money", columnKey: "salesVarLw" },
642
+ salesVarLY: { type: "money", columnKey: "salesVarLy" },
643
+ salesVarLWPct: {
644
+ type: "percent",
645
+ columnKey: "salesVarLwPct",
646
+ footerCalculation: {
647
+ type: "percentChange",
648
+ numeratorField: "salesAmountNet",
649
+ denominatorField: "salesAmountNetLastWeek"
650
+ }
651
+ },
652
+ salesVarLYPct: {
653
+ type: "percent",
654
+ columnKey: "salesVarLyPct",
655
+ footerCalculation: {
656
+ type: "percentChange",
657
+ numeratorField: "salesAmountNet",
658
+ denominatorField: "salesAmountNetLastYear"
659
+ }
660
+ },
661
+ salesAmountNetLastWeek: { type: "money" },
662
+ salesAmountNetLastYear: { type: "money" },
663
+ salesAmountGross: { type: "money" },
664
+ salesAmountGrossLastWeek: { type: "money" },
665
+ salesAmountGrossLastYear: { type: "money" },
666
+ ticketsCount: { type: "number" },
667
+ ticketsCountLastWeek: { type: "number" },
668
+ ticketsCountLastYear: { type: "number" },
669
+ guestsCount: { type: "number", columnKey: "guestCount" },
670
+ guestsVarLW: { type: "number", columnKey: "guestsVarLw" },
671
+ guestsVarLY: { type: "number", columnKey: "guestsVarLy" },
672
+ guestsVarLWPct: {
673
+ type: "percent",
674
+ columnKey: "guestsVarLwPct",
675
+ footerCalculation: {
676
+ type: "percentChange",
677
+ numeratorField: "guestsCount",
678
+ denominatorField: "guestsCountLastWeek"
679
+ }
680
+ },
681
+ guestsVarLYPct: {
682
+ type: "percent",
683
+ columnKey: "guestsVarLyPct",
684
+ footerCalculation: {
685
+ type: "percentChange",
686
+ numeratorField: "guestsCount",
687
+ denominatorField: "guestsCountLastYear"
688
+ }
689
+ },
690
+ guestsCountLastWeek: { type: "number" },
691
+ guestsCountLastYear: { type: "number" },
692
+ salesPerGuestTY: {
693
+ type: "money",
694
+ columnKey: "salesPerGuest",
695
+ footerCalculation: {
696
+ type: "average",
697
+ numeratorField: "salesAmountNet",
698
+ denominatorField: "guestsCount"
699
+ }
700
+ },
701
+ salesPerGuestLW: {
702
+ type: "money",
703
+ columnKey: "salesPerGuestLw",
704
+ footerCalculation: {
705
+ type: "average",
706
+ numeratorField: "salesAmountNetLastWeek",
707
+ denominatorField: "guestsCountLastWeek"
708
+ }
709
+ },
710
+ salesPerGuestLY: {
711
+ type: "money",
712
+ columnKey: "salesPerGuestLy",
713
+ footerCalculation: {
714
+ type: "average",
715
+ numeratorField: "salesAmountNetLastYear",
716
+ denominatorField: "guestsCountLastYear"
717
+ }
718
+ }
719
+ };
720
+ var COLUMN_GROUPS = [
721
+ {
722
+ id: "sales",
723
+ headerTranslationKey: "table.groups.sales",
724
+ baseFields: ["salesAmountNet"],
725
+ lastWeekFields: ["salesVarLW", "salesVarLWPct"],
726
+ lastYearFields: ["salesVarLY", "salesVarLYPct"]
727
+ },
728
+ {
729
+ id: "guests",
730
+ headerTranslationKey: "table.groups.guests",
731
+ baseFields: ["guestsCount"],
732
+ lastWeekFields: ["guestsVarLW", "guestsVarLWPct"],
733
+ lastYearFields: ["guestsVarLY", "guestsVarLYPct"]
734
+ },
735
+ {
736
+ id: "salesPerGuest",
737
+ headerTranslationKey: "table.groups.sales-per-guest",
738
+ baseFields: ["salesPerGuestTY"],
739
+ lastWeekFields: ["salesPerGuestLW"],
740
+ lastYearFields: ["salesPerGuestLY"]
741
+ }
742
+ ];
743
+ var SALES_SUMMARY_AVAILABLE_COLUMNS = [
744
+ "salesAmountNet",
745
+ "salesVarLW",
746
+ "salesVarLWPct",
747
+ "salesVarLY",
748
+ "salesVarLYPct",
749
+ "guestsCount",
750
+ "guestsVarLW",
751
+ "guestsVarLWPct",
752
+ "guestsVarLY",
753
+ "guestsVarLYPct",
754
+ "salesPerGuestTY",
755
+ "salesPerGuestLW",
756
+ "salesPerGuestLY"
757
+ ];
758
+ var SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS = [
759
+ "salesAmountNet",
760
+ "guestsCount",
761
+ "salesPerGuestTY"
762
+ ];
763
+ var salesSummaryConfig = {
764
+ fields: FIELDS,
765
+ availableColumns: SALES_SUMMARY_AVAILABLE_COLUMNS,
766
+ defaultVisibleColumns: SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS,
767
+ columnGroups: COLUMN_GROUPS
768
+ };
769
+
770
+ // src/reports/ticketSummary.ts
771
+ var FIELDS2 = {
772
+ ticketId: { type: "string" },
773
+ locationId: { type: "number" },
774
+ orderName: { type: "string" },
775
+ revenueCenterName: { type: "string", columnKey: "revenueCenter" },
776
+ daypartName: { type: "string", columnKey: "daypart" },
777
+ inclusiveTaxesAmount: {
778
+ type: "money",
779
+ columnKey: "inclusiveTax",
780
+ footerCalculation: { type: "sum" }
781
+ },
782
+ locationName: { type: "string", size: 240, columnKey: "locationName" },
783
+ orderNumber: { type: "number", columnKey: "ticketNumber", footerCalculation: { type: "none" } },
784
+ businessDate: { type: "date", columnKey: "date" },
785
+ ticketOpenedAt: { type: "time", columnKey: "ticketOpen" },
786
+ ticketClosedAt: { type: "time", columnKey: "ticketClosed" },
787
+ ticketTime: { type: "number", columnKey: "timeOpenMins", enableSorting: false },
788
+ ticketSubtotal: {
789
+ type: "money",
790
+ columnKey: "subtotal",
791
+ footerCalculation: { type: "sum" }
792
+ },
793
+ discountsAmount: {
794
+ type: "money",
795
+ columnKey: "discountAmount",
796
+ footerCalculation: { type: "sum" }
797
+ },
798
+ surchargesAmount: {
799
+ type: "money",
800
+ columnKey: "ticketFee",
801
+ footerCalculation: { type: "sum" }
802
+ },
803
+ taxesAmount: {
804
+ type: "money",
805
+ columnKey: "taxCollected",
806
+ footerCalculation: { type: "sum" }
807
+ },
808
+ ticketGrandTotal: {
809
+ type: "money",
810
+ columnKey: "grandTotal",
811
+ footerCalculation: { type: "sum" }
812
+ },
813
+ gratuitiesAmount: {
814
+ type: "money",
815
+ columnKey: "autoGratuity",
816
+ footerCalculation: { type: "sum" }
817
+ },
818
+ tipAmount: {
819
+ type: "money",
820
+ columnKey: "tips",
821
+ footerCalculation: { type: "sum" }
822
+ },
823
+ paymentsAmount: {
824
+ type: "money",
825
+ columnKey: "totalCollected",
826
+ footerCalculation: { type: "sum" }
827
+ },
828
+ paymentTypeName: { type: "string", columnKey: "paymentType" },
829
+ guestsCount: {
830
+ type: "number",
831
+ columnKey: "guestCount",
832
+ footerCalculation: { type: "sum" }
833
+ },
834
+ employeeName: { type: "string", columnKey: "employeeName" },
835
+ orderTypeName: { type: "string", columnKey: "orderType" }
836
+ };
837
+ var TICKET_SUMMARY_AVAILABLE_COLUMNS = [
838
+ "locationName",
839
+ "orderNumber",
840
+ "businessDate",
841
+ "ticketOpenedAt",
842
+ "ticketClosedAt",
843
+ "ticketTime",
844
+ "ticketSubtotal",
845
+ "discountsAmount",
846
+ "surchargesAmount",
847
+ "taxesAmount",
848
+ "ticketGrandTotal",
849
+ "gratuitiesAmount",
850
+ "tipAmount",
851
+ "paymentsAmount",
852
+ "paymentTypeName",
853
+ "guestsCount",
854
+ "employeeName",
855
+ "orderTypeName"
856
+ ];
857
+ var TICKET_SUMMARY_DEFAULT_VISIBLE_COLUMNS = TICKET_SUMMARY_AVAILABLE_COLUMNS;
858
+ var ticketSummaryConfig = {
859
+ fields: FIELDS2,
860
+ availableColumns: TICKET_SUMMARY_AVAILABLE_COLUMNS,
861
+ defaultVisibleColumns: TICKET_SUMMARY_DEFAULT_VISIBLE_COLUMNS
862
+ };
863
+
864
+ // src/reports/ticketLive.ts
865
+ var FIELDS3 = {
866
+ locationName: { type: "string", columnKey: "locationName" },
867
+ orderNumber: {
868
+ type: "number",
869
+ columnKey: "ticketNumber",
870
+ footerCalculation: { type: "none" }
871
+ },
872
+ dateOpen: { type: "string", columnKey: "date" },
873
+ timeOpen: { type: "string", columnKey: "ticketOpen" },
874
+ dateClose: { type: "string", columnKey: "dateClose" },
875
+ timeClose: { type: "string", columnKey: "ticketClosed" },
876
+ durationMinutes: { type: "number", columnKey: "timeOpenMins" },
877
+ subtotal: { type: "money", columnKey: "subtotal" },
878
+ discountTotal: { type: "money", columnKey: "discountAmount" },
879
+ surchargeTotal: { type: "money", columnKey: "ticketFee" },
880
+ taxTotal: { type: "money", columnKey: "taxCollected" },
881
+ grandTotal: { type: "money", columnKey: "grandTotal" },
882
+ gratuityTotal: { type: "money", columnKey: "autoGratuity" },
883
+ totalTips: { type: "money", columnKey: "totalTips" },
884
+ paymentsReceived: { type: "money", columnKey: "totalCollected" },
885
+ paymentTypeName: { type: "string", columnKey: "paymentType" },
886
+ guestCount: {
887
+ type: "number",
888
+ columnKey: "guestCount",
889
+ footerCalculation: { type: "sum" }
890
+ },
891
+ customerName: { type: "string", columnKey: "customerName" },
892
+ employeeName: { type: "string", columnKey: "employeeName" },
893
+ orderType: { type: "string", columnKey: "orderType" }
894
+ };
895
+ var TICKET_LIVE_AVAILABLE_COLUMNS = [
896
+ "locationName",
897
+ "orderNumber",
898
+ "dateOpen",
899
+ "timeOpen",
900
+ "timeClose",
901
+ "durationMinutes",
902
+ "subtotal",
903
+ "discountTotal",
904
+ "surchargeTotal",
905
+ "taxTotal",
906
+ "grandTotal",
907
+ "gratuityTotal",
908
+ "totalTips",
909
+ "paymentsReceived",
910
+ "paymentTypeName",
911
+ "guestCount",
912
+ "employeeName",
913
+ "orderType"
914
+ ];
915
+ var TICKET_LIVE_DEFAULT_VISIBLE_COLUMNS = TICKET_LIVE_AVAILABLE_COLUMNS;
916
+ var ticketLiveConfig = {
917
+ fields: FIELDS3,
918
+ availableColumns: TICKET_LIVE_AVAILABLE_COLUMNS,
919
+ defaultVisibleColumns: TICKET_LIVE_DEFAULT_VISIBLE_COLUMNS
920
+ };
921
+
922
+ // src/reports/productMix.ts
923
+ var FIRST_COLUMN_WIDTH2 = 240;
924
+ var FIELDS4 = {
925
+ groupById: { type: "string" },
926
+ groupByName: { type: "string", size: FIRST_COLUMN_WIDTH2 },
927
+ salesAmountGross: { type: "money", columnKey: "grossSales" },
928
+ discountsAmount: { type: "money", columnKey: "discountAmount" },
929
+ inclusiveTaxesAmount: { type: "money", columnKey: "inclusiveTax" },
930
+ salesAmountNet: { type: "money", columnKey: "netSales" },
931
+ itemsQuantity: { type: "number", columnKey: "quantity" },
932
+ avgPrice: {
933
+ type: "fixedNumber",
934
+ columnKey: "averageGrossPrice",
935
+ footerCalculation: {
936
+ type: "average",
937
+ numeratorField: "salesAmountGross",
938
+ denominatorField: "itemsQuantity"
939
+ }
940
+ },
941
+ salesMixPct: { type: "percent", columnKey: "salesMixByPct" }
942
+ };
943
+ var PRODUCT_MIX_AVAILABLE_COLUMNS = [
944
+ "salesAmountGross",
945
+ "discountsAmount",
946
+ "inclusiveTaxesAmount",
947
+ "salesAmountNet",
948
+ "itemsQuantity",
949
+ "avgPrice",
950
+ "salesMixPct"
951
+ ];
952
+ var PRODUCT_MIX_DEFAULT_VISIBLE_COLUMNS = PRODUCT_MIX_AVAILABLE_COLUMNS;
953
+ var PRODUCT_MIX_CHART_FIELDS = [
954
+ "salesAmountGross",
955
+ "itemsQuantity",
956
+ "avgPrice",
957
+ "discountsAmount",
958
+ "inclusiveTaxesAmount",
959
+ "salesAmountNet",
960
+ "salesMixPct"
961
+ ];
962
+ var productMixConfig = {
963
+ fields: FIELDS4,
964
+ availableColumns: PRODUCT_MIX_AVAILABLE_COLUMNS,
965
+ defaultVisibleColumns: PRODUCT_MIX_DEFAULT_VISIBLE_COLUMNS
966
+ };
967
+
968
+ // src/reports/modifierMix.ts
969
+ var FIRST_COLUMN_WIDTH3 = 240;
970
+ var FIELDS5 = {
971
+ groupById: { type: "string", filteringAvailable: false },
972
+ groupByName: { type: "string", size: FIRST_COLUMN_WIDTH3, filteringAvailable: false },
973
+ groupById2: { type: "string", filteringAvailable: false },
974
+ groupByName2: { type: "string", size: FIRST_COLUMN_WIDTH3, filteringAvailable: false },
975
+ modifiersSales: { type: "money", columnKey: "totalModifierSales" },
976
+ modifiersQuantity: { type: "number", columnKey: "modifierQuantity" },
977
+ itemsQuantity: {
978
+ type: "number",
979
+ columnKey: "quantity",
980
+ filteringAvailable: false
981
+ },
982
+ avgGross: {
983
+ type: "money",
984
+ columnKey: "averageGrossPrice",
985
+ footerCalculation: {
986
+ type: "average",
987
+ numeratorField: "modifiersSales",
988
+ denominatorField: "modifiersQuantity"
989
+ }
990
+ },
991
+ attachRate: {
992
+ type: "percent",
993
+ columnKey: "attachRate",
994
+ footerCalculation: {
995
+ type: "average",
996
+ numeratorField: "modifiersQuantity",
997
+ denominatorField: "itemsQuantity"
998
+ }
999
+ },
1000
+ modifiersSalesComp: { type: "money", filteringAvailable: false },
1001
+ modifiersQuantityComp: { type: "number", filteringAvailable: false },
1002
+ itemsQuantityComp: { type: "number", filteringAvailable: false },
1003
+ attachRateComp: { type: "percent", filteringAvailable: false },
1004
+ modifiersSalesVar: { type: "money", filteringAvailable: false },
1005
+ modifiersSalesVarPct: {
1006
+ type: "percent",
1007
+ filteringAvailable: false,
1008
+ footerCalculation: {
1009
+ type: "percentChange",
1010
+ numeratorField: "modifiersSales",
1011
+ denominatorField: "modifiersSalesComp"
1012
+ }
1013
+ },
1014
+ modifiersQuantityVar: { type: "number", filteringAvailable: false },
1015
+ modifiersQuantityVarPct: {
1016
+ type: "percent",
1017
+ filteringAvailable: false,
1018
+ footerCalculation: {
1019
+ type: "percentChange",
1020
+ numeratorField: "modifiersQuantity",
1021
+ denominatorField: "modifiersQuantityComp"
1022
+ }
1023
+ },
1024
+ attachRateVar: { type: "percent", filteringAvailable: false },
1025
+ attachRateVarPct: {
1026
+ type: "percent",
1027
+ filteringAvailable: false,
1028
+ footerCalculation: {
1029
+ type: "percentChange",
1030
+ numeratorField: "attachRate",
1031
+ denominatorField: "attachRateComp"
1032
+ }
1033
+ }
1034
+ };
1035
+ var MODIFIER_MIX_AVAILABLE_COLUMNS = [
1036
+ "modifiersSales",
1037
+ "modifiersQuantity",
1038
+ "avgGross",
1039
+ "attachRate"
1040
+ ];
1041
+ var MODIFIER_MIX_DEFAULT_VISIBLE_COLUMNS = MODIFIER_MIX_AVAILABLE_COLUMNS;
1042
+ var modifierMixConfig = {
1043
+ fields: FIELDS5,
1044
+ availableColumns: MODIFIER_MIX_AVAILABLE_COLUMNS,
1045
+ defaultVisibleColumns: MODIFIER_MIX_DEFAULT_VISIBLE_COLUMNS
1046
+ };
1047
+
1048
+ // src/reports/itemTax.ts
1049
+ var FIELDS6 = {
1050
+ locationId: { type: "number", filteringAvailable: false },
1051
+ taxIsFlat: { type: "boolean", filteringAvailable: false },
1052
+ merchantId: { type: "string", columnKey: "locationMid", filteringAvailable: false },
1053
+ locationName: { type: "string", columnKey: "locationName", filteringAvailable: false },
1054
+ locationCity: { type: "string", columnKey: "locationCity", filteringAvailable: false },
1055
+ locationState: { type: "string", columnKey: "locationState", filteringAvailable: false },
1056
+ itemName: { type: "string", columnKey: "itemName", filteringAvailable: false },
1057
+ itemPrice: { type: "money", columnKey: "itemPrice" },
1058
+ departmentName: { type: "string", columnKey: "department", filteringAvailable: false },
1059
+ revenueClassName: { type: "string", columnKey: "revenueClass", filteringAvailable: false },
1060
+ orderTypeName: { type: "string", columnKey: "orderType", filteringAvailable: false },
1061
+ taxName: { type: "string", columnKey: "taxName", filteringAvailable: false },
1062
+ taxValue: { type: "money", columnKey: "taxableSales" },
1063
+ taxRate: { type: "number", columnKey: "taxRate" },
1064
+ recordsCount: { type: "number", columnKey: "quantity" },
1065
+ taxableSales: { type: "money", columnKey: "taxableSales" },
1066
+ totalCollected: { type: "money", columnKey: "totalCollected" },
1067
+ itemTax: { type: "money", columnKey: "taxCollected" },
1068
+ taxCollected: { type: "money", columnKey: "taxCollected" }
1069
+ };
1070
+ var ITEM_TAX_AVAILABLE_COLUMNS = [
1071
+ "merchantId",
1072
+ "locationName",
1073
+ "locationCity",
1074
+ "locationState",
1075
+ "itemName",
1076
+ "departmentName",
1077
+ "revenueClassName",
1078
+ "orderTypeName",
1079
+ "recordsCount",
1080
+ "itemPrice",
1081
+ "taxName",
1082
+ "taxRate",
1083
+ "taxableSales",
1084
+ "taxCollected"
1085
+ ];
1086
+ var ITEM_TAX_DEFAULT_VISIBLE_COLUMNS = ITEM_TAX_AVAILABLE_COLUMNS;
1087
+ var itemTaxConfig = {
1088
+ fields: FIELDS6,
1089
+ availableColumns: ITEM_TAX_AVAILABLE_COLUMNS,
1090
+ defaultVisibleColumns: ITEM_TAX_DEFAULT_VISIBLE_COLUMNS
1091
+ };
1092
+ export {
1093
+ COLUMN_REGISTRY,
1094
+ ITEM_TAX_AVAILABLE_COLUMNS,
1095
+ ITEM_TAX_DEFAULT_VISIBLE_COLUMNS,
1096
+ MODIFIER_MIX_AVAILABLE_COLUMNS,
1097
+ MODIFIER_MIX_DEFAULT_VISIBLE_COLUMNS,
1098
+ PRODUCT_MIX_AVAILABLE_COLUMNS,
1099
+ PRODUCT_MIX_CHART_FIELDS,
1100
+ PRODUCT_MIX_DEFAULT_VISIBLE_COLUMNS,
1101
+ SALES_SUMMARY_AVAILABLE_COLUMNS,
1102
+ SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS,
1103
+ TICKET_LIVE_AVAILABLE_COLUMNS,
1104
+ TICKET_LIVE_DEFAULT_VISIBLE_COLUMNS,
1105
+ TICKET_SUMMARY_AVAILABLE_COLUMNS,
1106
+ TICKET_SUMMARY_DEFAULT_VISIBLE_COLUMNS,
1107
+ calculateReportTotals,
1108
+ getColumnAlignment,
1109
+ getColumnMetadata,
1110
+ isNumericType,
1111
+ itemTaxConfig,
1112
+ modifierMixConfig,
1113
+ productMixConfig,
1114
+ salesSummaryConfig,
1115
+ ticketLiveConfig,
1116
+ ticketSummaryConfig
1117
+ };