@harbortouch/skytab-analytics-report-utils 0.41.1 → 0.41.3

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,
@@ -921,6 +945,18 @@ var enUS2 = {
921
945
  "common.report-col.gross-sales": false,
922
946
  "common.report-col.gross-sales.short": false,
923
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,
924
960
  "common.report-col.gross-tips": false,
925
961
  "common.report-col.gross-tips.short": false,
926
962
  "common.report-col.gross-tips.info": false,
@@ -1098,6 +1134,18 @@ var enUS2 = {
1098
1134
  "common.report-col.tax-collected": false,
1099
1135
  "common.report-col.tax-collected.short": false,
1100
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,
1101
1149
  "common.report-col.tax-name": false,
1102
1150
  "common.report-col.tax-name.short": false,
1103
1151
  "common.report-col.tax-name.info": false,
@@ -1453,6 +1501,18 @@ var enUS3 = {
1453
1501
  "common.report-col.gross-sales": "Gross Sales",
1454
1502
  "common.report-col.gross-sales.short": "Gross Sales",
1455
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",
1456
1516
  "common.report-col.gross-tips": "Gross Tips",
1457
1517
  "common.report-col.gross-tips.short": "Gross Tips",
1458
1518
  "common.report-col.gross-tips.info": "Total tips before any deductions or sharing",
@@ -1588,19 +1648,19 @@ var enUS3 = {
1588
1648
  "common.report-col.revenue-class": "Revenue Class",
1589
1649
  "common.report-col.revenue-class.short": "Rev Class",
1590
1650
  "common.report-col.revenue-class.info": "Category used to group similar types of revenue",
1591
- "common.report-col.sales-var-lw": "Sales \xB1 LW",
1651
+ "common.report-col.sales-var-lw": "Net Sales \xB1 LW",
1592
1652
  "common.report-col.sales-var-lw.short": "\xB1 LW",
1593
1653
  "common.report-col.sales-var-lw.info": "Change in sales compared to last week",
1594
- "common.report-col.sales-var-lw-pct": "Sales \xB1 LW %",
1654
+ "common.report-col.sales-var-lw-pct": "Net Sales \xB1 LW %",
1595
1655
  "common.report-col.sales-var-lw-pct.short": "\xB1 LW %",
1596
1656
  "common.report-col.sales-var-lw-pct.info": "Percentage change in sales compared to last week",
1597
- "common.report-col.sales-var-ly": "Sales \xB1 LY",
1657
+ "common.report-col.sales-var-ly": "Net Sales \xB1 LY",
1598
1658
  "common.report-col.sales-var-ly.short": "\xB1 LY",
1599
1659
  "common.report-col.sales-var-ly.info": "Change in sales compared to last year",
1600
- "common.report-col.sales-var-ly-pct": "Sales \xB1 LY %",
1660
+ "common.report-col.sales-var-ly-pct": "Net Sales \xB1 LY %",
1601
1661
  "common.report-col.sales-var-ly-pct.short": "\xB1 LY %",
1602
1662
  "common.report-col.sales-var-ly-pct.info": "Percentage change in sales compared to last year",
1603
- "common.report-col.sales-mix-by-pct": "Sales Mix By %",
1663
+ "common.report-col.sales-mix-by-pct": "Net Sales Mix By %",
1604
1664
  "common.report-col.sales-mix-by-pct.short": "Sales Mix %",
1605
1665
  "common.report-col.sales-mix-by-pct.info": "Percentage of total sales contributed by this item or category",
1606
1666
  "common.report-col.sales-per-guest": "Sales/Guest",
@@ -1630,6 +1690,18 @@ var enUS3 = {
1630
1690
  "common.report-col.tax-collected": "Tax Collected",
1631
1691
  "common.report-col.tax-collected.short": "Tax",
1632
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",
1633
1705
  "common.report-col.tax-name": "Tax Name",
1634
1706
  "common.report-col.tax-name.short": "Tax Name",
1635
1707
  "common.report-col.tax-name.info": "Name of the applied tax",
@@ -3072,6 +3144,26 @@ var COLUMN_REGISTRY = {
3072
3144
  shortTitleKey: "common.report-col.gross-sales.short",
3073
3145
  infoTextKey: "common.report-col.gross-sales.info"
3074
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
+ },
3075
3167
  grossTips: {
3076
3168
  titleKey: "common.report-col.gross-tips",
3077
3169
  shortTitleKey: "common.report-col.gross-tips.short",
@@ -3332,6 +3424,26 @@ var COLUMN_REGISTRY = {
3332
3424
  shortTitleKey: "common.report-col.tax-collected.short",
3333
3425
  infoTextKey: "common.report-col.tax-collected.info"
3334
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
+ },
3335
3447
  taxName: {
3336
3448
  titleKey: "common.report-col.tax-name",
3337
3449
  shortTitleKey: "common.report-col.tax-name.short",
@@ -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,
@@ -1225,6 +1273,18 @@ var enUS3 = {
1225
1273
  "common.report-col.gross-sales": false,
1226
1274
  "common.report-col.gross-sales.short": false,
1227
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,
1228
1288
  "common.report-col.gross-tips": false,
1229
1289
  "common.report-col.gross-tips.short": false,
1230
1290
  "common.report-col.gross-tips.info": false,
@@ -1402,6 +1462,18 @@ var enUS3 = {
1402
1462
  "common.report-col.tax-collected": false,
1403
1463
  "common.report-col.tax-collected.short": false,
1404
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,
1405
1477
  "common.report-col.tax-name": false,
1406
1478
  "common.report-col.tax-name.short": false,
1407
1479
  "common.report-col.tax-name.info": false,
@@ -1860,11 +1932,11 @@ var FIELDS2 = {
1860
1932
  salesAmountGross: { type: "money", columnKey: "grossSales" },
1861
1933
  salesAmountGrossLastWeek: { type: "money" },
1862
1934
  salesAmountGrossLastYear: { type: "money" },
1863
- grossVarLW: { type: "money", columnKey: "salesVarLw" },
1864
- grossVarLY: { type: "money", columnKey: "salesVarLy" },
1935
+ grossVarLW: { type: "money", columnKey: "grossSalesVarLw" },
1936
+ grossVarLY: { type: "money", columnKey: "grossSalesVarLy" },
1865
1937
  grossVarLWPct: {
1866
1938
  type: "percent",
1867
- columnKey: "salesVarLwPct",
1939
+ columnKey: "grossSalesVarLwPct",
1868
1940
  footerCalculation: {
1869
1941
  type: "variancePercent",
1870
1942
  numeratorField: "grossVarLW",
@@ -1873,7 +1945,7 @@ var FIELDS2 = {
1873
1945
  },
1874
1946
  grossVarLYPct: {
1875
1947
  type: "percent",
1876
- columnKey: "salesVarLyPct",
1948
+ columnKey: "grossSalesVarLyPct",
1877
1949
  footerCalculation: {
1878
1950
  type: "variancePercent",
1879
1951
  numeratorField: "grossVarLY",
@@ -1883,11 +1955,11 @@ var FIELDS2 = {
1883
1955
  taxesAmount: { type: "money", columnKey: "taxCollected" },
1884
1956
  taxesAmountLastWeek: { type: "money" },
1885
1957
  taxesAmountLastYear: { type: "money" },
1886
- taxesVarLW: { type: "money", columnKey: "salesVarLw" },
1887
- taxesVarLY: { type: "money", columnKey: "salesVarLy" },
1958
+ taxesVarLW: { type: "money", columnKey: "taxesVarLw" },
1959
+ taxesVarLY: { type: "money", columnKey: "taxesVarLy" },
1888
1960
  taxesVarLWPct: {
1889
1961
  type: "percent",
1890
- columnKey: "salesVarLwPct",
1962
+ columnKey: "taxesVarLwPct",
1891
1963
  footerCalculation: {
1892
1964
  type: "variancePercent",
1893
1965
  numeratorField: "taxesVarLW",
@@ -1896,7 +1968,7 @@ var FIELDS2 = {
1896
1968
  },
1897
1969
  taxesVarLYPct: {
1898
1970
  type: "percent",
1899
- columnKey: "salesVarLyPct",
1971
+ columnKey: "taxesVarLyPct",
1900
1972
  footerCalculation: {
1901
1973
  type: "variancePercent",
1902
1974
  numeratorField: "taxesVarLY",
@@ -3207,6 +3279,26 @@ var COLUMN_REGISTRY = {
3207
3279
  shortTitleKey: "common.report-col.gross-sales.short",
3208
3280
  infoTextKey: "common.report-col.gross-sales.info"
3209
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
+ },
3210
3302
  grossTips: {
3211
3303
  titleKey: "common.report-col.gross-tips",
3212
3304
  shortTitleKey: "common.report-col.gross-tips.short",
@@ -3467,6 +3559,26 @@ var COLUMN_REGISTRY = {
3467
3559
  shortTitleKey: "common.report-col.tax-collected.short",
3468
3560
  infoTextKey: "common.report-col.tax-collected.info"
3469
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
+ },
3470
3582
  taxName: {
3471
3583
  titleKey: "common.report-col.tax-name",
3472
3584
  shortTitleKey: "common.report-col.tax-name.short",
@@ -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;
@@ -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;
@@ -8,7 +8,7 @@ import {
8
8
  getReportFormattingLocaleOptions,
9
9
  getReportName,
10
10
  resolveTranslate
11
- } from "../chunk-AB7DZV3Q.js";
11
+ } from "../chunk-DDHOYPIA.js";
12
12
 
13
13
  // src/exporters/exportBuilder.ts
14
14
  import { format, isValid, parseISO } from "date-fns";
@@ -49,23 +49,21 @@ var sanitizePdfText = (text) => {
49
49
  return "";
50
50
  }
51
51
  const leadingSpaces = /^ */.exec(text)?.[0] ?? "";
52
- return leadingSpaces + text.trimStart().replace(/€/g, "EUR ").replace(
52
+ return leadingSpaces + text.trimStart().replace(
53
53
  /[\u{1F300}-\u{1F9FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]|[\u{1F1E0}-\u{1F1FF}]|[\u{1F600}-\u{1F64F}]|[\u{1F680}-\u{1F6FF}]|[\u{1F900}-\u{1F9FF}]|[\u{1FA00}-\u{1FA6F}]|[\u{1FA70}-\u{1FAFF}]|[\u{FE00}-\u{FE0F}]|[\u{1F004}]|[\u{1F0CF}]|[\u{1F18E}]|[\u{1F191}-\u{1F19A}]|[\u{1F1E6}-\u{1F1FF}]|[\u{1F201}-\u{1F251}]/gu,
54
54
  ""
55
- ).replace(/[\x00-\x1F\x7F-\x9F]/g, " ").replace(/ /g, " ").replace(/[^\x20-\x7E\xA1-\xFF]/g, "").replace(/\s+/g, " ").trim();
55
+ ).replace(/[\x00-\x1F\x7F-\x9F]/g, " ").replace(/ /g, " ").replace(/[^\x20-\x7E\xA1-\xFF€₹₩₪₽]/g, "").replace(/\s+/g, " ").trim();
56
56
  };
57
57
 
58
58
  // src/exporters/pdf/constants.ts
59
- var ZOOM_FACTOR = 1.44;
60
59
  var FONT_REGULAR = "Lato";
61
60
  var FONT_BOLD = "Lato-Bold";
62
61
  var DEFAULT_TEXT_COLOR = "#000000";
63
62
  var HEADER_BACKGROUND_COLOR = "#f9fafb";
64
63
  var ZEBRA_BACKGROUND_COLOR = "#fafbfc";
65
64
  var SEPARATOR_COLOR = "#E4E5E5";
66
- var SECTION_TITLE_FONT_SIZE = 1.17 * 6 * ZOOM_FACTOR;
67
- var DEFAULT_FONT_SIZE = 5 * ZOOM_FACTOR;
68
- var BODY_FONT_SIZE = 6 * ZOOM_FACTOR;
65
+ var SECTION_TITLE_FONT_SIZE = 9;
66
+ var BODY_FONT_SIZE = 9;
69
67
  var TABLE_CELL_PADDING = 4;
70
68
  var DEFAULT_ROW_HEIGHT = 25;
71
69
  var MIN_COLUMN_WIDTH = 35;
@@ -200,8 +198,8 @@ var PdfExporter = class {
200
198
  const columns = table.columns.length > 0 ? table.columns.map((c) => ({ ...c })) : [{ header: "No data", key: "no_data", width: 100 }];
201
199
  const rows = table.rows ?? [];
202
200
  const columnCount = columns.length;
203
- const headerFontSize = columnCount > 13 ? 8 : columnCount > 10 ? 9 : columnCount > 7 ? 10 : 11;
204
- const dataFontSize = columnCount > 13 ? 7 : columnCount > 10 ? 8 : columnCount > 7 ? 9 : 10;
201
+ const headerFontSize = columnCount > 13 ? 6 : columnCount > 10 ? 7 : columnCount > 7 ? 8 : 9;
202
+ const dataFontSize = columnCount > 13 ? 5 : columnCount > 10 ? 6 : columnCount > 7 ? 7 : 8;
205
203
  const headerWidthSlack = 2;
206
204
  const headerMinWidths = /* @__PURE__ */ new Map();
207
205
  columns.forEach((col) => {
@@ -230,6 +228,16 @@ var PdfExporter = class {
230
228
  const headerMin = headerMinWidths.get(c) ?? MIN_COLUMN_WIDTH;
231
229
  c.width = Math.max(Math.floor((c.width ?? MIN_COLUMN_WIDTH) * scale), headerMin, MIN_COLUMN_WIDTH);
232
230
  });
231
+ let excess = columns.reduce((sum, c) => sum + (c.width ?? MIN_COLUMN_WIDTH), 0) - usableWidth;
232
+ for (let i = columns.length - 1; i >= 0 && excess > 0; i--) {
233
+ const col = columns[i];
234
+ const available = (col.width ?? MIN_COLUMN_WIDTH) - MIN_COLUMN_WIDTH;
235
+ const trim = Math.min(excess, available);
236
+ if (trim > 0) {
237
+ col.width = (col.width ?? MIN_COLUMN_WIDTH) - trim;
238
+ excess -= trim;
239
+ }
240
+ }
233
241
  } else if (totalColumnWidth < usableWidth) {
234
242
  const scale = usableWidth / totalColumnWidth;
235
243
  columns.forEach((c) => {
@@ -9,23 +9,21 @@ var sanitizePdfText = (text) => {
9
9
  return "";
10
10
  }
11
11
  const leadingSpaces = /^ */.exec(text)?.[0] ?? "";
12
- return leadingSpaces + text.trimStart().replace(/€/g, "EUR ").replace(
12
+ return leadingSpaces + text.trimStart().replace(
13
13
  /[\u{1F300}-\u{1F9FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]|[\u{1F1E0}-\u{1F1FF}]|[\u{1F600}-\u{1F64F}]|[\u{1F680}-\u{1F6FF}]|[\u{1F900}-\u{1F9FF}]|[\u{1FA00}-\u{1FA6F}]|[\u{1FA70}-\u{1FAFF}]|[\u{FE00}-\u{FE0F}]|[\u{1F004}]|[\u{1F0CF}]|[\u{1F18E}]|[\u{1F191}-\u{1F19A}]|[\u{1F1E6}-\u{1F1FF}]|[\u{1F201}-\u{1F251}]/gu,
14
14
  ""
15
- ).replace(/[\x00-\x1F\x7F-\x9F]/g, " ").replace(/ /g, " ").replace(/[^\x20-\x7E\xA1-\xFF]/g, "").replace(/\s+/g, " ").trim();
15
+ ).replace(/[\x00-\x1F\x7F-\x9F]/g, " ").replace(/ /g, " ").replace(/[^\x20-\x7E\xA1-\xFF€₹₩₪₽]/g, "").replace(/\s+/g, " ").trim();
16
16
  };
17
17
 
18
18
  // src/exporters/pdf/constants.ts
19
- var ZOOM_FACTOR = 1.44;
20
19
  var FONT_REGULAR = "Lato";
21
20
  var FONT_BOLD = "Lato-Bold";
22
21
  var DEFAULT_TEXT_COLOR = "#000000";
23
22
  var HEADER_BACKGROUND_COLOR = "#f9fafb";
24
23
  var ZEBRA_BACKGROUND_COLOR = "#fafbfc";
25
24
  var SEPARATOR_COLOR = "#E4E5E5";
26
- var SECTION_TITLE_FONT_SIZE = 1.17 * 6 * ZOOM_FACTOR;
27
- var DEFAULT_FONT_SIZE = 5 * ZOOM_FACTOR;
28
- var BODY_FONT_SIZE = 6 * ZOOM_FACTOR;
25
+ var SECTION_TITLE_FONT_SIZE = 9;
26
+ var BODY_FONT_SIZE = 9;
29
27
  var TABLE_CELL_PADDING = 4;
30
28
  var DEFAULT_ROW_HEIGHT = 25;
31
29
  var MIN_COLUMN_WIDTH = 35;
@@ -160,8 +158,8 @@ var PdfExporter = class {
160
158
  const columns = table.columns.length > 0 ? table.columns.map((c) => ({ ...c })) : [{ header: "No data", key: "no_data", width: 100 }];
161
159
  const rows = table.rows ?? [];
162
160
  const columnCount = columns.length;
163
- const headerFontSize = columnCount > 13 ? 8 : columnCount > 10 ? 9 : columnCount > 7 ? 10 : 11;
164
- const dataFontSize = columnCount > 13 ? 7 : columnCount > 10 ? 8 : columnCount > 7 ? 9 : 10;
161
+ const headerFontSize = columnCount > 13 ? 6 : columnCount > 10 ? 7 : columnCount > 7 ? 8 : 9;
162
+ const dataFontSize = columnCount > 13 ? 5 : columnCount > 10 ? 6 : columnCount > 7 ? 7 : 8;
165
163
  const headerWidthSlack = 2;
166
164
  const headerMinWidths = /* @__PURE__ */ new Map();
167
165
  columns.forEach((col) => {
@@ -190,6 +188,16 @@ var PdfExporter = class {
190
188
  const headerMin = headerMinWidths.get(c) ?? MIN_COLUMN_WIDTH;
191
189
  c.width = Math.max(Math.floor((c.width ?? MIN_COLUMN_WIDTH) * scale), headerMin, MIN_COLUMN_WIDTH);
192
190
  });
191
+ let excess = columns.reduce((sum, c) => sum + (c.width ?? MIN_COLUMN_WIDTH), 0) - usableWidth;
192
+ for (let i = columns.length - 1; i >= 0 && excess > 0; i--) {
193
+ const col = columns[i];
194
+ const available = (col.width ?? MIN_COLUMN_WIDTH) - MIN_COLUMN_WIDTH;
195
+ const trim = Math.min(excess, available);
196
+ if (trim > 0) {
197
+ col.width = (col.width ?? MIN_COLUMN_WIDTH) - trim;
198
+ excess -= trim;
199
+ }
200
+ }
193
201
  } else if (totalColumnWidth < usableWidth) {
194
202
  const scale = usableWidth / totalColumnWidth;
195
203
  columns.forEach((c) => {