@harbortouch/skytab-analytics-report-utils 0.41.0 → 0.41.2

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.
@@ -79,11 +79,11 @@ var FIELDS2 = {
79
79
  salesAmountGross: { type: "money", columnKey: "grossSales" },
80
80
  salesAmountGrossLastWeek: { type: "money" },
81
81
  salesAmountGrossLastYear: { type: "money" },
82
- grossVarLW: { type: "money", columnKey: "salesVarLw" },
83
- grossVarLY: { type: "money", columnKey: "salesVarLy" },
82
+ grossVarLW: { type: "money", columnKey: "grossSalesVarLw" },
83
+ grossVarLY: { type: "money", columnKey: "grossSalesVarLy" },
84
84
  grossVarLWPct: {
85
85
  type: "percent",
86
- columnKey: "salesVarLwPct",
86
+ columnKey: "grossSalesVarLwPct",
87
87
  footerCalculation: {
88
88
  type: "variancePercent",
89
89
  numeratorField: "grossVarLW",
@@ -92,7 +92,7 @@ var FIELDS2 = {
92
92
  },
93
93
  grossVarLYPct: {
94
94
  type: "percent",
95
- columnKey: "salesVarLyPct",
95
+ columnKey: "grossSalesVarLyPct",
96
96
  footerCalculation: {
97
97
  type: "variancePercent",
98
98
  numeratorField: "grossVarLY",
@@ -102,11 +102,11 @@ var FIELDS2 = {
102
102
  taxesAmount: { type: "money", columnKey: "taxCollected" },
103
103
  taxesAmountLastWeek: { type: "money" },
104
104
  taxesAmountLastYear: { type: "money" },
105
- taxesVarLW: { type: "money", columnKey: "salesVarLw" },
106
- taxesVarLY: { type: "money", columnKey: "salesVarLy" },
105
+ taxesVarLW: { type: "money", columnKey: "taxesVarLw" },
106
+ taxesVarLY: { type: "money", columnKey: "taxesVarLy" },
107
107
  taxesVarLWPct: {
108
108
  type: "percent",
109
- columnKey: "salesVarLwPct",
109
+ columnKey: "taxesVarLwPct",
110
110
  footerCalculation: {
111
111
  type: "variancePercent",
112
112
  numeratorField: "taxesVarLW",
@@ -115,7 +115,7 @@ var FIELDS2 = {
115
115
  },
116
116
  taxesVarLYPct: {
117
117
  type: "percent",
118
- columnKey: "salesVarLyPct",
118
+ columnKey: "taxesVarLyPct",
119
119
  footerCalculation: {
120
120
  type: "variancePercent",
121
121
  numeratorField: "taxesVarLY",
@@ -389,6 +389,18 @@ var enUS = {
389
389
  "common.report-col.gross-sales": false,
390
390
  "common.report-col.gross-sales.short": false,
391
391
  "common.report-col.gross-sales.info": false,
392
+ "common.report-col.gross-sales-var-lw": false,
393
+ "common.report-col.gross-sales-var-lw.short": false,
394
+ "common.report-col.gross-sales-var-lw.info": false,
395
+ "common.report-col.gross-sales-var-lw-pct": false,
396
+ "common.report-col.gross-sales-var-lw-pct.short": false,
397
+ "common.report-col.gross-sales-var-lw-pct.info": false,
398
+ "common.report-col.gross-sales-var-ly": false,
399
+ "common.report-col.gross-sales-var-ly.short": false,
400
+ "common.report-col.gross-sales-var-ly.info": false,
401
+ "common.report-col.gross-sales-var-ly-pct": false,
402
+ "common.report-col.gross-sales-var-ly-pct.short": false,
403
+ "common.report-col.gross-sales-var-ly-pct.info": false,
392
404
  "common.report-col.gross-tips": false,
393
405
  "common.report-col.gross-tips.short": false,
394
406
  "common.report-col.gross-tips.info": false,
@@ -566,6 +578,18 @@ var enUS = {
566
578
  "common.report-col.tax-collected": false,
567
579
  "common.report-col.tax-collected.short": false,
568
580
  "common.report-col.tax-collected.info": false,
581
+ "common.report-col.taxes-var-lw": false,
582
+ "common.report-col.taxes-var-lw.short": false,
583
+ "common.report-col.taxes-var-lw.info": false,
584
+ "common.report-col.taxes-var-lw-pct": false,
585
+ "common.report-col.taxes-var-lw-pct.short": false,
586
+ "common.report-col.taxes-var-lw-pct.info": false,
587
+ "common.report-col.taxes-var-ly": false,
588
+ "common.report-col.taxes-var-ly.short": false,
589
+ "common.report-col.taxes-var-ly.info": false,
590
+ "common.report-col.taxes-var-ly-pct": false,
591
+ "common.report-col.taxes-var-ly-pct.short": false,
592
+ "common.report-col.taxes-var-ly-pct.info": false,
569
593
  "common.report-col.tax-name": false,
570
594
  "common.report-col.tax-name.short": false,
571
595
  "common.report-col.tax-name.info": false,
@@ -763,6 +787,7 @@ var enUS = {
763
787
  "analytics.field.daypart_id": false,
764
788
  "analytics.field.timeslot_id": false,
765
789
  "analytics.field.employee_id": false,
790
+ "analytics.field.employee_name": false,
766
791
  "analytics.field.payroll_id": false,
767
792
  "analytics.field.intraday_period_group": false,
768
793
  "analytics.field.item_id": false,
@@ -920,6 +945,18 @@ var enUS2 = {
920
945
  "common.report-col.gross-sales": false,
921
946
  "common.report-col.gross-sales.short": false,
922
947
  "common.report-col.gross-sales.info": false,
948
+ "common.report-col.gross-sales-var-lw": false,
949
+ "common.report-col.gross-sales-var-lw.short": false,
950
+ "common.report-col.gross-sales-var-lw.info": false,
951
+ "common.report-col.gross-sales-var-lw-pct": false,
952
+ "common.report-col.gross-sales-var-lw-pct.short": false,
953
+ "common.report-col.gross-sales-var-lw-pct.info": false,
954
+ "common.report-col.gross-sales-var-ly": false,
955
+ "common.report-col.gross-sales-var-ly.short": false,
956
+ "common.report-col.gross-sales-var-ly.info": false,
957
+ "common.report-col.gross-sales-var-ly-pct": false,
958
+ "common.report-col.gross-sales-var-ly-pct.short": false,
959
+ "common.report-col.gross-sales-var-ly-pct.info": false,
923
960
  "common.report-col.gross-tips": false,
924
961
  "common.report-col.gross-tips.short": false,
925
962
  "common.report-col.gross-tips.info": false,
@@ -1097,6 +1134,18 @@ var enUS2 = {
1097
1134
  "common.report-col.tax-collected": false,
1098
1135
  "common.report-col.tax-collected.short": false,
1099
1136
  "common.report-col.tax-collected.info": false,
1137
+ "common.report-col.taxes-var-lw": false,
1138
+ "common.report-col.taxes-var-lw.short": false,
1139
+ "common.report-col.taxes-var-lw.info": false,
1140
+ "common.report-col.taxes-var-lw-pct": false,
1141
+ "common.report-col.taxes-var-lw-pct.short": false,
1142
+ "common.report-col.taxes-var-lw-pct.info": false,
1143
+ "common.report-col.taxes-var-ly": false,
1144
+ "common.report-col.taxes-var-ly.short": false,
1145
+ "common.report-col.taxes-var-ly.info": false,
1146
+ "common.report-col.taxes-var-ly-pct": false,
1147
+ "common.report-col.taxes-var-ly-pct.short": false,
1148
+ "common.report-col.taxes-var-ly-pct.info": false,
1100
1149
  "common.report-col.tax-name": false,
1101
1150
  "common.report-col.tax-name.short": false,
1102
1151
  "common.report-col.tax-name.info": false,
@@ -1294,6 +1343,7 @@ var enUS2 = {
1294
1343
  "analytics.field.daypart_id": false,
1295
1344
  "analytics.field.timeslot_id": false,
1296
1345
  "analytics.field.employee_id": false,
1346
+ "analytics.field.employee_name": false,
1297
1347
  "analytics.field.payroll_id": false,
1298
1348
  "analytics.field.intraday_period_group": false,
1299
1349
  "analytics.field.item_id": false,
@@ -1451,6 +1501,18 @@ var enUS3 = {
1451
1501
  "common.report-col.gross-sales": "Gross Sales",
1452
1502
  "common.report-col.gross-sales.short": "Gross Sales",
1453
1503
  "common.report-col.gross-sales.info": "Total item sales before refunds, tax, or tips",
1504
+ "common.report-col.gross-sales-var-lw": "Gross Sales \xB1 LW",
1505
+ "common.report-col.gross-sales-var-lw.short": "\xB1 LW",
1506
+ "common.report-col.gross-sales-var-lw.info": "Change in gross sales compared to last week",
1507
+ "common.report-col.gross-sales-var-lw-pct": "Gross Sales \xB1 LW %",
1508
+ "common.report-col.gross-sales-var-lw-pct.short": "\xB1 LW %",
1509
+ "common.report-col.gross-sales-var-lw-pct.info": "Percentage change in gross sales compared to last week",
1510
+ "common.report-col.gross-sales-var-ly": "Gross Sales \xB1 LY",
1511
+ "common.report-col.gross-sales-var-ly.short": "\xB1 LY",
1512
+ "common.report-col.gross-sales-var-ly.info": "Change in gross sales compared to last year",
1513
+ "common.report-col.gross-sales-var-ly-pct": "Gross Sales \xB1 LY %",
1514
+ "common.report-col.gross-sales-var-ly-pct.short": "\xB1 LY %",
1515
+ "common.report-col.gross-sales-var-ly-pct.info": "Percentage change in gross sales compared to last year",
1454
1516
  "common.report-col.gross-tips": "Gross Tips",
1455
1517
  "common.report-col.gross-tips.short": "Gross Tips",
1456
1518
  "common.report-col.gross-tips.info": "Total tips before any deductions or sharing",
@@ -1586,19 +1648,19 @@ var enUS3 = {
1586
1648
  "common.report-col.revenue-class": "Revenue Class",
1587
1649
  "common.report-col.revenue-class.short": "Rev Class",
1588
1650
  "common.report-col.revenue-class.info": "Category used to group similar types of revenue",
1589
- "common.report-col.sales-var-lw": "Sales \xB1 LW",
1651
+ "common.report-col.sales-var-lw": "Net Sales \xB1 LW",
1590
1652
  "common.report-col.sales-var-lw.short": "\xB1 LW",
1591
1653
  "common.report-col.sales-var-lw.info": "Change in sales compared to last week",
1592
- "common.report-col.sales-var-lw-pct": "Sales \xB1 LW %",
1654
+ "common.report-col.sales-var-lw-pct": "Net Sales \xB1 LW %",
1593
1655
  "common.report-col.sales-var-lw-pct.short": "\xB1 LW %",
1594
1656
  "common.report-col.sales-var-lw-pct.info": "Percentage change in sales compared to last week",
1595
- "common.report-col.sales-var-ly": "Sales \xB1 LY",
1657
+ "common.report-col.sales-var-ly": "Net Sales \xB1 LY",
1596
1658
  "common.report-col.sales-var-ly.short": "\xB1 LY",
1597
1659
  "common.report-col.sales-var-ly.info": "Change in sales compared to last year",
1598
- "common.report-col.sales-var-ly-pct": "Sales \xB1 LY %",
1660
+ "common.report-col.sales-var-ly-pct": "Net Sales \xB1 LY %",
1599
1661
  "common.report-col.sales-var-ly-pct.short": "\xB1 LY %",
1600
1662
  "common.report-col.sales-var-ly-pct.info": "Percentage change in sales compared to last year",
1601
- "common.report-col.sales-mix-by-pct": "Sales Mix By %",
1663
+ "common.report-col.sales-mix-by-pct": "Net Sales Mix By %",
1602
1664
  "common.report-col.sales-mix-by-pct.short": "Sales Mix %",
1603
1665
  "common.report-col.sales-mix-by-pct.info": "Percentage of total sales contributed by this item or category",
1604
1666
  "common.report-col.sales-per-guest": "Sales/Guest",
@@ -1628,6 +1690,18 @@ var enUS3 = {
1628
1690
  "common.report-col.tax-collected": "Tax Collected",
1629
1691
  "common.report-col.tax-collected.short": "Tax",
1630
1692
  "common.report-col.tax-collected.info": "Total taxes charged to customers",
1693
+ "common.report-col.taxes-var-lw": "Tax \xB1 LW",
1694
+ "common.report-col.taxes-var-lw.short": "\xB1 LW",
1695
+ "common.report-col.taxes-var-lw.info": "Change in tax collected compared to last week",
1696
+ "common.report-col.taxes-var-lw-pct": "Tax \xB1 LW %",
1697
+ "common.report-col.taxes-var-lw-pct.short": "\xB1 LW %",
1698
+ "common.report-col.taxes-var-lw-pct.info": "Percentage change in tax collected compared to last week",
1699
+ "common.report-col.taxes-var-ly": "Tax \xB1 LY",
1700
+ "common.report-col.taxes-var-ly.short": "\xB1 LY",
1701
+ "common.report-col.taxes-var-ly.info": "Change in tax collected compared to last year",
1702
+ "common.report-col.taxes-var-ly-pct": "Tax \xB1 LY %",
1703
+ "common.report-col.taxes-var-ly-pct.short": "\xB1 LY %",
1704
+ "common.report-col.taxes-var-ly-pct.info": "Percentage change in tax collected compared to last year",
1631
1705
  "common.report-col.tax-name": "Tax Name",
1632
1706
  "common.report-col.tax-name.short": "Tax Name",
1633
1707
  "common.report-col.tax-name.info": "Name of the applied tax",
@@ -2815,6 +2889,7 @@ var REPORT_DEFAULT_NAME_MAP = {
2815
2889
  "daily-sales-live": "Daily Sales Live"
2816
2890
  };
2817
2891
  var getReportConfig = (reportType) => REPORT_CONFIG_MAP[reportType];
2892
+ var getReportName = (reportType) => REPORT_DEFAULT_NAME_MAP[reportType];
2818
2893
  var getFixedColumns = (config, parameters) => {
2819
2894
  const visibleColumns = new Set(config.defaultVisibleColumns ?? []);
2820
2895
  const fixedCols = config.availableColumns.filter((col) => !visibleColumns.has(col));
@@ -3069,6 +3144,26 @@ var COLUMN_REGISTRY = {
3069
3144
  shortTitleKey: "common.report-col.gross-sales.short",
3070
3145
  infoTextKey: "common.report-col.gross-sales.info"
3071
3146
  },
3147
+ grossSalesVarLw: {
3148
+ titleKey: "common.report-col.gross-sales-var-lw",
3149
+ shortTitleKey: "common.report-col.gross-sales-var-lw.short",
3150
+ infoTextKey: "common.report-col.gross-sales-var-lw.info"
3151
+ },
3152
+ grossSalesVarLy: {
3153
+ titleKey: "common.report-col.gross-sales-var-ly",
3154
+ shortTitleKey: "common.report-col.gross-sales-var-ly.short",
3155
+ infoTextKey: "common.report-col.gross-sales-var-ly.info"
3156
+ },
3157
+ grossSalesVarLwPct: {
3158
+ titleKey: "common.report-col.gross-sales-var-lw-pct",
3159
+ shortTitleKey: "common.report-col.gross-sales-var-lw-pct.short",
3160
+ infoTextKey: "common.report-col.gross-sales-var-lw-pct.info"
3161
+ },
3162
+ grossSalesVarLyPct: {
3163
+ titleKey: "common.report-col.gross-sales-var-ly-pct",
3164
+ shortTitleKey: "common.report-col.gross-sales-var-ly-pct.short",
3165
+ infoTextKey: "common.report-col.gross-sales-var-ly-pct.info"
3166
+ },
3072
3167
  grossTips: {
3073
3168
  titleKey: "common.report-col.gross-tips",
3074
3169
  shortTitleKey: "common.report-col.gross-tips.short",
@@ -3329,6 +3424,26 @@ var COLUMN_REGISTRY = {
3329
3424
  shortTitleKey: "common.report-col.tax-collected.short",
3330
3425
  infoTextKey: "common.report-col.tax-collected.info"
3331
3426
  },
3427
+ taxesVarLw: {
3428
+ titleKey: "common.report-col.taxes-var-lw",
3429
+ shortTitleKey: "common.report-col.taxes-var-lw.short",
3430
+ infoTextKey: "common.report-col.taxes-var-lw.info"
3431
+ },
3432
+ taxesVarLy: {
3433
+ titleKey: "common.report-col.taxes-var-ly",
3434
+ shortTitleKey: "common.report-col.taxes-var-ly.short",
3435
+ infoTextKey: "common.report-col.taxes-var-ly.info"
3436
+ },
3437
+ taxesVarLwPct: {
3438
+ titleKey: "common.report-col.taxes-var-lw-pct",
3439
+ shortTitleKey: "common.report-col.taxes-var-lw-pct.short",
3440
+ infoTextKey: "common.report-col.taxes-var-lw-pct.info"
3441
+ },
3442
+ taxesVarLyPct: {
3443
+ titleKey: "common.report-col.taxes-var-ly-pct",
3444
+ shortTitleKey: "common.report-col.taxes-var-ly-pct.short",
3445
+ infoTextKey: "common.report-col.taxes-var-ly-pct.info"
3446
+ },
3332
3447
  taxName: {
3333
3448
  titleKey: "common.report-col.tax-name",
3334
3449
  shortTitleKey: "common.report-col.tax-name.short",
@@ -3878,6 +3993,7 @@ export {
3878
3993
  dailySalesTrendsOrderTypeConfig,
3879
3994
  Report,
3880
3995
  getReportConfig,
3996
+ getReportName,
3881
3997
  getFixedColumns,
3882
3998
  getReportExportFileName,
3883
3999
  COLUMN_REGISTRY,
@@ -161,6 +161,18 @@ var enUS = {
161
161
  "common.report-col.gross-sales": "Gross Sales",
162
162
  "common.report-col.gross-sales.short": "Gross Sales",
163
163
  "common.report-col.gross-sales.info": "Total item sales before refunds, tax, or tips",
164
+ "common.report-col.gross-sales-var-lw": "Gross Sales \xB1 LW",
165
+ "common.report-col.gross-sales-var-lw.short": "\xB1 LW",
166
+ "common.report-col.gross-sales-var-lw.info": "Change in gross sales compared to last week",
167
+ "common.report-col.gross-sales-var-lw-pct": "Gross Sales \xB1 LW %",
168
+ "common.report-col.gross-sales-var-lw-pct.short": "\xB1 LW %",
169
+ "common.report-col.gross-sales-var-lw-pct.info": "Percentage change in gross sales compared to last week",
170
+ "common.report-col.gross-sales-var-ly": "Gross Sales \xB1 LY",
171
+ "common.report-col.gross-sales-var-ly.short": "\xB1 LY",
172
+ "common.report-col.gross-sales-var-ly.info": "Change in gross sales compared to last year",
173
+ "common.report-col.gross-sales-var-ly-pct": "Gross Sales \xB1 LY %",
174
+ "common.report-col.gross-sales-var-ly-pct.short": "\xB1 LY %",
175
+ "common.report-col.gross-sales-var-ly-pct.info": "Percentage change in gross sales compared to last year",
164
176
  "common.report-col.gross-tips": "Gross Tips",
165
177
  "common.report-col.gross-tips.short": "Gross Tips",
166
178
  "common.report-col.gross-tips.info": "Total tips before any deductions or sharing",
@@ -296,19 +308,19 @@ var enUS = {
296
308
  "common.report-col.revenue-class": "Revenue Class",
297
309
  "common.report-col.revenue-class.short": "Rev Class",
298
310
  "common.report-col.revenue-class.info": "Category used to group similar types of revenue",
299
- "common.report-col.sales-var-lw": "Sales \xB1 LW",
311
+ "common.report-col.sales-var-lw": "Net Sales \xB1 LW",
300
312
  "common.report-col.sales-var-lw.short": "\xB1 LW",
301
313
  "common.report-col.sales-var-lw.info": "Change in sales compared to last week",
302
- "common.report-col.sales-var-lw-pct": "Sales \xB1 LW %",
314
+ "common.report-col.sales-var-lw-pct": "Net Sales \xB1 LW %",
303
315
  "common.report-col.sales-var-lw-pct.short": "\xB1 LW %",
304
316
  "common.report-col.sales-var-lw-pct.info": "Percentage change in sales compared to last week",
305
- "common.report-col.sales-var-ly": "Sales \xB1 LY",
317
+ "common.report-col.sales-var-ly": "Net Sales \xB1 LY",
306
318
  "common.report-col.sales-var-ly.short": "\xB1 LY",
307
319
  "common.report-col.sales-var-ly.info": "Change in sales compared to last year",
308
- "common.report-col.sales-var-ly-pct": "Sales \xB1 LY %",
320
+ "common.report-col.sales-var-ly-pct": "Net Sales \xB1 LY %",
309
321
  "common.report-col.sales-var-ly-pct.short": "\xB1 LY %",
310
322
  "common.report-col.sales-var-ly-pct.info": "Percentage change in sales compared to last year",
311
- "common.report-col.sales-mix-by-pct": "Sales Mix By %",
323
+ "common.report-col.sales-mix-by-pct": "Net Sales Mix By %",
312
324
  "common.report-col.sales-mix-by-pct.short": "Sales Mix %",
313
325
  "common.report-col.sales-mix-by-pct.info": "Percentage of total sales contributed by this item or category",
314
326
  "common.report-col.sales-per-guest": "Sales/Guest",
@@ -338,6 +350,18 @@ var enUS = {
338
350
  "common.report-col.tax-collected": "Tax Collected",
339
351
  "common.report-col.tax-collected.short": "Tax",
340
352
  "common.report-col.tax-collected.info": "Total taxes charged to customers",
353
+ "common.report-col.taxes-var-lw": "Tax \xB1 LW",
354
+ "common.report-col.taxes-var-lw.short": "\xB1 LW",
355
+ "common.report-col.taxes-var-lw.info": "Change in tax collected compared to last week",
356
+ "common.report-col.taxes-var-lw-pct": "Tax \xB1 LW %",
357
+ "common.report-col.taxes-var-lw-pct.short": "\xB1 LW %",
358
+ "common.report-col.taxes-var-lw-pct.info": "Percentage change in tax collected compared to last week",
359
+ "common.report-col.taxes-var-ly": "Tax \xB1 LY",
360
+ "common.report-col.taxes-var-ly.short": "\xB1 LY",
361
+ "common.report-col.taxes-var-ly.info": "Change in tax collected compared to last year",
362
+ "common.report-col.taxes-var-ly-pct": "Tax \xB1 LY %",
363
+ "common.report-col.taxes-var-ly-pct.short": "\xB1 LY %",
364
+ "common.report-col.taxes-var-ly-pct.info": "Percentage change in tax collected compared to last year",
341
365
  "common.report-col.tax-name": "Tax Name",
342
366
  "common.report-col.tax-name.short": "Tax Name",
343
367
  "common.report-col.tax-name.info": "Name of the applied tax",
@@ -693,6 +717,18 @@ var enUS2 = {
693
717
  "common.report-col.gross-sales": false,
694
718
  "common.report-col.gross-sales.short": false,
695
719
  "common.report-col.gross-sales.info": false,
720
+ "common.report-col.gross-sales-var-lw": false,
721
+ "common.report-col.gross-sales-var-lw.short": false,
722
+ "common.report-col.gross-sales-var-lw.info": false,
723
+ "common.report-col.gross-sales-var-lw-pct": false,
724
+ "common.report-col.gross-sales-var-lw-pct.short": false,
725
+ "common.report-col.gross-sales-var-lw-pct.info": false,
726
+ "common.report-col.gross-sales-var-ly": false,
727
+ "common.report-col.gross-sales-var-ly.short": false,
728
+ "common.report-col.gross-sales-var-ly.info": false,
729
+ "common.report-col.gross-sales-var-ly-pct": false,
730
+ "common.report-col.gross-sales-var-ly-pct.short": false,
731
+ "common.report-col.gross-sales-var-ly-pct.info": false,
696
732
  "common.report-col.gross-tips": false,
697
733
  "common.report-col.gross-tips.short": false,
698
734
  "common.report-col.gross-tips.info": false,
@@ -870,6 +906,18 @@ var enUS2 = {
870
906
  "common.report-col.tax-collected": false,
871
907
  "common.report-col.tax-collected.short": false,
872
908
  "common.report-col.tax-collected.info": false,
909
+ "common.report-col.taxes-var-lw": false,
910
+ "common.report-col.taxes-var-lw.short": false,
911
+ "common.report-col.taxes-var-lw.info": false,
912
+ "common.report-col.taxes-var-lw-pct": false,
913
+ "common.report-col.taxes-var-lw-pct.short": false,
914
+ "common.report-col.taxes-var-lw-pct.info": false,
915
+ "common.report-col.taxes-var-ly": false,
916
+ "common.report-col.taxes-var-ly.short": false,
917
+ "common.report-col.taxes-var-ly.info": false,
918
+ "common.report-col.taxes-var-ly-pct": false,
919
+ "common.report-col.taxes-var-ly-pct.short": false,
920
+ "common.report-col.taxes-var-ly-pct.info": false,
873
921
  "common.report-col.tax-name": false,
874
922
  "common.report-col.tax-name.short": false,
875
923
  "common.report-col.tax-name.info": false,
@@ -1067,6 +1115,7 @@ var enUS2 = {
1067
1115
  "analytics.field.daypart_id": false,
1068
1116
  "analytics.field.timeslot_id": false,
1069
1117
  "analytics.field.employee_id": false,
1118
+ "analytics.field.employee_name": false,
1070
1119
  "analytics.field.payroll_id": false,
1071
1120
  "analytics.field.intraday_period_group": false,
1072
1121
  "analytics.field.item_id": false,
@@ -1224,6 +1273,18 @@ var enUS3 = {
1224
1273
  "common.report-col.gross-sales": false,
1225
1274
  "common.report-col.gross-sales.short": false,
1226
1275
  "common.report-col.gross-sales.info": false,
1276
+ "common.report-col.gross-sales-var-lw": false,
1277
+ "common.report-col.gross-sales-var-lw.short": false,
1278
+ "common.report-col.gross-sales-var-lw.info": false,
1279
+ "common.report-col.gross-sales-var-lw-pct": false,
1280
+ "common.report-col.gross-sales-var-lw-pct.short": false,
1281
+ "common.report-col.gross-sales-var-lw-pct.info": false,
1282
+ "common.report-col.gross-sales-var-ly": false,
1283
+ "common.report-col.gross-sales-var-ly.short": false,
1284
+ "common.report-col.gross-sales-var-ly.info": false,
1285
+ "common.report-col.gross-sales-var-ly-pct": false,
1286
+ "common.report-col.gross-sales-var-ly-pct.short": false,
1287
+ "common.report-col.gross-sales-var-ly-pct.info": false,
1227
1288
  "common.report-col.gross-tips": false,
1228
1289
  "common.report-col.gross-tips.short": false,
1229
1290
  "common.report-col.gross-tips.info": false,
@@ -1401,6 +1462,18 @@ var enUS3 = {
1401
1462
  "common.report-col.tax-collected": false,
1402
1463
  "common.report-col.tax-collected.short": false,
1403
1464
  "common.report-col.tax-collected.info": false,
1465
+ "common.report-col.taxes-var-lw": false,
1466
+ "common.report-col.taxes-var-lw.short": false,
1467
+ "common.report-col.taxes-var-lw.info": false,
1468
+ "common.report-col.taxes-var-lw-pct": false,
1469
+ "common.report-col.taxes-var-lw-pct.short": false,
1470
+ "common.report-col.taxes-var-lw-pct.info": false,
1471
+ "common.report-col.taxes-var-ly": false,
1472
+ "common.report-col.taxes-var-ly.short": false,
1473
+ "common.report-col.taxes-var-ly.info": false,
1474
+ "common.report-col.taxes-var-ly-pct": false,
1475
+ "common.report-col.taxes-var-ly-pct.short": false,
1476
+ "common.report-col.taxes-var-ly-pct.info": false,
1404
1477
  "common.report-col.tax-name": false,
1405
1478
  "common.report-col.tax-name.short": false,
1406
1479
  "common.report-col.tax-name.info": false,
@@ -1598,6 +1671,7 @@ var enUS3 = {
1598
1671
  "analytics.field.daypart_id": false,
1599
1672
  "analytics.field.timeslot_id": false,
1600
1673
  "analytics.field.employee_id": false,
1674
+ "analytics.field.employee_name": false,
1601
1675
  "analytics.field.payroll_id": false,
1602
1676
  "analytics.field.intraday_period_group": false,
1603
1677
  "analytics.field.item_id": false,
@@ -1858,11 +1932,11 @@ var FIELDS2 = {
1858
1932
  salesAmountGross: { type: "money", columnKey: "grossSales" },
1859
1933
  salesAmountGrossLastWeek: { type: "money" },
1860
1934
  salesAmountGrossLastYear: { type: "money" },
1861
- grossVarLW: { type: "money", columnKey: "salesVarLw" },
1862
- grossVarLY: { type: "money", columnKey: "salesVarLy" },
1935
+ grossVarLW: { type: "money", columnKey: "grossSalesVarLw" },
1936
+ grossVarLY: { type: "money", columnKey: "grossSalesVarLy" },
1863
1937
  grossVarLWPct: {
1864
1938
  type: "percent",
1865
- columnKey: "salesVarLwPct",
1939
+ columnKey: "grossSalesVarLwPct",
1866
1940
  footerCalculation: {
1867
1941
  type: "variancePercent",
1868
1942
  numeratorField: "grossVarLW",
@@ -1871,7 +1945,7 @@ var FIELDS2 = {
1871
1945
  },
1872
1946
  grossVarLYPct: {
1873
1947
  type: "percent",
1874
- columnKey: "salesVarLyPct",
1948
+ columnKey: "grossSalesVarLyPct",
1875
1949
  footerCalculation: {
1876
1950
  type: "variancePercent",
1877
1951
  numeratorField: "grossVarLY",
@@ -1881,11 +1955,11 @@ var FIELDS2 = {
1881
1955
  taxesAmount: { type: "money", columnKey: "taxCollected" },
1882
1956
  taxesAmountLastWeek: { type: "money" },
1883
1957
  taxesAmountLastYear: { type: "money" },
1884
- taxesVarLW: { type: "money", columnKey: "salesVarLw" },
1885
- taxesVarLY: { type: "money", columnKey: "salesVarLy" },
1958
+ taxesVarLW: { type: "money", columnKey: "taxesVarLw" },
1959
+ taxesVarLY: { type: "money", columnKey: "taxesVarLy" },
1886
1960
  taxesVarLWPct: {
1887
1961
  type: "percent",
1888
- columnKey: "salesVarLwPct",
1962
+ columnKey: "taxesVarLwPct",
1889
1963
  footerCalculation: {
1890
1964
  type: "variancePercent",
1891
1965
  numeratorField: "taxesVarLW",
@@ -1894,7 +1968,7 @@ var FIELDS2 = {
1894
1968
  },
1895
1969
  taxesVarLYPct: {
1896
1970
  type: "percent",
1897
- columnKey: "salesVarLyPct",
1971
+ columnKey: "taxesVarLyPct",
1898
1972
  footerCalculation: {
1899
1973
  type: "variancePercent",
1900
1974
  numeratorField: "taxesVarLY",
@@ -2950,7 +3024,23 @@ var REPORT_CONFIG_MAP = {
2950
3024
  "daily-sales": DAILY_SALES_SECTION_CONFIGS,
2951
3025
  "daily-sales-live": DAILY_SALES_SECTION_CONFIGS
2952
3026
  };
3027
+ var REPORT_DEFAULT_NAME_MAP = {
3028
+ "sales-summary": "Sales",
3029
+ "ticket-analytics": "Tickets",
3030
+ "ticket-live": "Tickets Live",
3031
+ "product-mix": "Product Mix",
3032
+ "modifier-mix": "Modifier Mix",
3033
+ "item-tax": "Sales Tax by Item",
3034
+ "employee-timecard": "Employee Timecard",
3035
+ "employee-tip": "Employee Tip",
3036
+ "tip-cashout-reconciliation": "Tip & Cashout Reconciliation",
3037
+ payroll: "Payroll",
3038
+ "sales-by-item": "Sales by Item",
3039
+ "daily-sales": "Daily Sales",
3040
+ "daily-sales-live": "Daily Sales Live"
3041
+ };
2953
3042
  var getReportConfig = (reportType) => REPORT_CONFIG_MAP[reportType];
3043
+ var getReportName = (reportType) => REPORT_DEFAULT_NAME_MAP[reportType];
2954
3044
  var getFixedColumns = (config, parameters) => {
2955
3045
  const visibleColumns = new Set(config.defaultVisibleColumns ?? []);
2956
3046
  const fixedCols = config.availableColumns.filter((col) => !visibleColumns.has(col));
@@ -3189,6 +3279,26 @@ var COLUMN_REGISTRY = {
3189
3279
  shortTitleKey: "common.report-col.gross-sales.short",
3190
3280
  infoTextKey: "common.report-col.gross-sales.info"
3191
3281
  },
3282
+ grossSalesVarLw: {
3283
+ titleKey: "common.report-col.gross-sales-var-lw",
3284
+ shortTitleKey: "common.report-col.gross-sales-var-lw.short",
3285
+ infoTextKey: "common.report-col.gross-sales-var-lw.info"
3286
+ },
3287
+ grossSalesVarLy: {
3288
+ titleKey: "common.report-col.gross-sales-var-ly",
3289
+ shortTitleKey: "common.report-col.gross-sales-var-ly.short",
3290
+ infoTextKey: "common.report-col.gross-sales-var-ly.info"
3291
+ },
3292
+ grossSalesVarLwPct: {
3293
+ titleKey: "common.report-col.gross-sales-var-lw-pct",
3294
+ shortTitleKey: "common.report-col.gross-sales-var-lw-pct.short",
3295
+ infoTextKey: "common.report-col.gross-sales-var-lw-pct.info"
3296
+ },
3297
+ grossSalesVarLyPct: {
3298
+ titleKey: "common.report-col.gross-sales-var-ly-pct",
3299
+ shortTitleKey: "common.report-col.gross-sales-var-ly-pct.short",
3300
+ infoTextKey: "common.report-col.gross-sales-var-ly-pct.info"
3301
+ },
3192
3302
  grossTips: {
3193
3303
  titleKey: "common.report-col.gross-tips",
3194
3304
  shortTitleKey: "common.report-col.gross-tips.short",
@@ -3449,6 +3559,26 @@ var COLUMN_REGISTRY = {
3449
3559
  shortTitleKey: "common.report-col.tax-collected.short",
3450
3560
  infoTextKey: "common.report-col.tax-collected.info"
3451
3561
  },
3562
+ taxesVarLw: {
3563
+ titleKey: "common.report-col.taxes-var-lw",
3564
+ shortTitleKey: "common.report-col.taxes-var-lw.short",
3565
+ infoTextKey: "common.report-col.taxes-var-lw.info"
3566
+ },
3567
+ taxesVarLy: {
3568
+ titleKey: "common.report-col.taxes-var-ly",
3569
+ shortTitleKey: "common.report-col.taxes-var-ly.short",
3570
+ infoTextKey: "common.report-col.taxes-var-ly.info"
3571
+ },
3572
+ taxesVarLwPct: {
3573
+ titleKey: "common.report-col.taxes-var-lw-pct",
3574
+ shortTitleKey: "common.report-col.taxes-var-lw-pct.short",
3575
+ infoTextKey: "common.report-col.taxes-var-lw-pct.info"
3576
+ },
3577
+ taxesVarLyPct: {
3578
+ titleKey: "common.report-col.taxes-var-ly-pct",
3579
+ shortTitleKey: "common.report-col.taxes-var-ly-pct.short",
3580
+ infoTextKey: "common.report-col.taxes-var-ly-pct.info"
3581
+ },
3452
3582
  taxName: {
3453
3583
  titleKey: "common.report-col.tax-name",
3454
3584
  shortTitleKey: "common.report-col.tax-name.short",
@@ -4016,13 +4146,14 @@ var ExportBuilder = class {
4016
4146
  if (!rawConfig) {
4017
4147
  throw new Error("Missing report config");
4018
4148
  }
4019
- const metadataFilters = this.buildReportMetadataFilters(parameters, name, metadata);
4149
+ const resolvedName = name ?? getReportName(this.reportType);
4150
+ const metadataFilters = this.buildReportMetadataFilters(parameters, resolvedName, metadata);
4020
4151
  const resolvedAppliedFilters = appliedFilters ?? [];
4021
4152
  let sections;
4022
4153
  if (Array.isArray(rawConfig)) {
4023
4154
  const sectionParameters = { ...parameters, cols: void 0 };
4024
4155
  sections = [
4025
- { title: name, filters: metadataFilters, appliedFilters: resolvedAppliedFilters },
4156
+ { title: resolvedName, filters: metadataFilters, appliedFilters: resolvedAppliedFilters },
4026
4157
  ...rawConfig.map((config) => ({
4027
4158
  title: this.getConfigSectionName(config),
4028
4159
  ...this.renderTableContent(config, reportData, sectionParameters)
@@ -4031,7 +4162,7 @@ var ExportBuilder = class {
4031
4162
  } else {
4032
4163
  sections = [
4033
4164
  {
4034
- title: name,
4165
+ title: resolvedName,
4035
4166
  filters: metadataFilters,
4036
4167
  appliedFilters: resolvedAppliedFilters,
4037
4168
  ...this.renderTableContent(rawConfig, reportData, parameters)
@@ -1,4 +1,4 @@
1
- import { R as ReportType, A as AnalyticsField } from '../report-EBViO5sS.cjs';
1
+ import { R as ReportType, A as AnalyticsField } from '../report-pbGeYM8Q.cjs';
2
2
  import { R as ReportMetadata, E as ExportFilter, a as ExportSection } from '../types-MalWTEdo.cjs';
3
3
 
4
4
  type ReportDocumentSection = ExportSection;
@@ -46,7 +46,7 @@ declare class ExportBuilder {
46
46
  private getDataForConfig;
47
47
  private formatMaybeDate;
48
48
  private buildReportMetadataFilters;
49
- getContent(reportData: ReportData, parameters: ReportParameters, name: string, metadata: ReportMetadata, appliedFilters?: ExportFilter[]): ExportSection[];
49
+ getContent(reportData: ReportData, parameters: ReportParameters, name: string | undefined, metadata: ReportMetadata, appliedFilters?: ExportFilter[]): ExportSection[];
50
50
  }
51
51
 
52
52
  export { ExportBuilder, ExportFilter, type ReportData, type ReportDocumentSection, type ReportLocation, ReportMetadata, type ReportParameters, ReportType, type SingleReportData };
@@ -1,4 +1,4 @@
1
- import { R as ReportType, A as AnalyticsField } from '../report-EBViO5sS.js';
1
+ import { R as ReportType, A as AnalyticsField } from '../report-pbGeYM8Q.js';
2
2
  import { R as ReportMetadata, E as ExportFilter, a as ExportSection } from '../types-MalWTEdo.js';
3
3
 
4
4
  type ReportDocumentSection = ExportSection;
@@ -46,7 +46,7 @@ declare class ExportBuilder {
46
46
  private getDataForConfig;
47
47
  private formatMaybeDate;
48
48
  private buildReportMetadataFilters;
49
- getContent(reportData: ReportData, parameters: ReportParameters, name: string, metadata: ReportMetadata, appliedFilters?: ExportFilter[]): ExportSection[];
49
+ getContent(reportData: ReportData, parameters: ReportParameters, name: string | undefined, metadata: ReportMetadata, appliedFilters?: ExportFilter[]): ExportSection[];
50
50
  }
51
51
 
52
52
  export { ExportBuilder, ExportFilter, type ReportData, type ReportDocumentSection, type ReportLocation, ReportMetadata, type ReportParameters, ReportType, type SingleReportData };
@@ -6,8 +6,9 @@ import {
6
6
  getFixedColumns,
7
7
  getReportConfig,
8
8
  getReportFormattingLocaleOptions,
9
+ getReportName,
9
10
  resolveTranslate
10
- } from "../chunk-7GHXVTY6.js";
11
+ } from "../chunk-DDHOYPIA.js";
11
12
 
12
13
  // src/exporters/exportBuilder.ts
13
14
  import { format, isValid, parseISO } from "date-fns";
@@ -205,13 +206,14 @@ var ExportBuilder = class {
205
206
  if (!rawConfig) {
206
207
  throw new Error("Missing report config");
207
208
  }
208
- const metadataFilters = this.buildReportMetadataFilters(parameters, name, metadata);
209
+ const resolvedName = name ?? getReportName(this.reportType);
210
+ const metadataFilters = this.buildReportMetadataFilters(parameters, resolvedName, metadata);
209
211
  const resolvedAppliedFilters = appliedFilters ?? [];
210
212
  let sections;
211
213
  if (Array.isArray(rawConfig)) {
212
214
  const sectionParameters = { ...parameters, cols: void 0 };
213
215
  sections = [
214
- { title: name, filters: metadataFilters, appliedFilters: resolvedAppliedFilters },
216
+ { title: resolvedName, filters: metadataFilters, appliedFilters: resolvedAppliedFilters },
215
217
  ...rawConfig.map((config) => ({
216
218
  title: this.getConfigSectionName(config),
217
219
  ...this.renderTableContent(config, reportData, sectionParameters)
@@ -220,7 +222,7 @@ var ExportBuilder = class {
220
222
  } else {
221
223
  sections = [
222
224
  {
223
- title: name,
225
+ title: resolvedName,
224
226
  filters: metadataFilters,
225
227
  appliedFilters: resolvedAppliedFilters,
226
228
  ...this.renderTableContent(rawConfig, reportData, parameters)