@harbortouch/skytab-analytics-report-utils 0.36.0 → 0.38.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/{chunk-DAG6MUSD.js → chunk-RO4P4NNB.js} +285 -19
- package/dist/exporters/exportBuilder.cjs +282 -19
- package/dist/exporters/exportBuilder.d.cts +1 -1
- package/dist/exporters/exportBuilder.d.ts +1 -1
- package/dist/exporters/exportBuilder.js +1 -1
- package/dist/index.cjs +286 -19
- package/dist/index.d.cts +14 -6
- package/dist/index.d.ts +14 -6
- package/dist/index.js +3 -1
- package/dist/{report-DOgRgflg.d.cts → report-ZRoya9wR.d.cts} +82 -7
- package/dist/{report-DOgRgflg.d.ts → report-ZRoya9wR.d.ts} +82 -7
- package/package.json +1 -1
|
@@ -467,6 +467,33 @@ var enUS = {
|
|
|
467
467
|
"common.report-col.type": "Type",
|
|
468
468
|
"common.report-col.type.short": "Type",
|
|
469
469
|
"common.report-col.type.info": " ",
|
|
470
|
+
"common.report-col.paid-normal-hours": "Paid Normal Hours",
|
|
471
|
+
"common.report-col.paid-normal-hours.short": "Norm Hrs",
|
|
472
|
+
"common.report-col.paid-normal-hours.info": "Total regular hours paid for the period",
|
|
473
|
+
"common.report-col.normal-pay": "Normal Pay",
|
|
474
|
+
"common.report-col.normal-pay.short": "Norm Pay",
|
|
475
|
+
"common.report-col.normal-pay.info": "Wages earned for regular hours worked",
|
|
476
|
+
"common.report-col.overtime-pay": "Overtime Pay",
|
|
477
|
+
"common.report-col.overtime-pay.short": "OT Pay",
|
|
478
|
+
"common.report-col.overtime-pay.info": "Wages earned for overtime hours worked",
|
|
479
|
+
"common.report-col.double-overtime-pay": "Double Overtime Pay",
|
|
480
|
+
"common.report-col.double-overtime-pay.short": "DT Pay",
|
|
481
|
+
"common.report-col.double-overtime-pay.info": "Wages earned for double-overtime hours worked",
|
|
482
|
+
"common.report-col.gratuity": "Gratuity",
|
|
483
|
+
"common.report-col.gratuity.short": "Gratuity",
|
|
484
|
+
"common.report-col.gratuity.info": "Gratuity amounts included in the payroll period",
|
|
485
|
+
"common.report-col.tip-paid-status": "Tip Paid Status",
|
|
486
|
+
"common.report-col.tip-paid-status.short": "Tip Status",
|
|
487
|
+
"common.report-col.tip-paid-status.info": "Indicates whether tips were paid out daily or deferred to payroll",
|
|
488
|
+
"common.report-col.total-payments": "Total Payments",
|
|
489
|
+
"common.report-col.total-payments.short": "Total Pmts",
|
|
490
|
+
"common.report-col.total-payments.info": "Total payments collected for the payroll period",
|
|
491
|
+
"common.report-col.minimum-wage-adjustment": "Minimum Wage Adjustment",
|
|
492
|
+
"common.report-col.minimum-wage-adjustment.short": "Min Wage Adj",
|
|
493
|
+
"common.report-col.minimum-wage-adjustment.info": "Adjustment applied to meet minimum wage requirements",
|
|
494
|
+
"common.report-col.total-pay": "Total Pay",
|
|
495
|
+
"common.report-col.total-pay.short": "Total Pay",
|
|
496
|
+
"common.report-col.total-pay.info": "Total compensation including wages, overtime, and adjustments",
|
|
470
497
|
"common.report-section.revenue-class": "Sales by Revenue Class",
|
|
471
498
|
"common.report-section.payments": "Payments",
|
|
472
499
|
"common.report-section.cash": "Expected Closeout Cash",
|
|
@@ -511,8 +538,10 @@ var enUS = {
|
|
|
511
538
|
"table.total": "Total",
|
|
512
539
|
"table.groups.sales": "Sales",
|
|
513
540
|
"table.groups.net-sales": "Net Sales",
|
|
541
|
+
"table.groups.taxes": "Tax",
|
|
542
|
+
"table.groups.gross-sales": "Gross Sales",
|
|
514
543
|
"table.groups.guests": "Guests",
|
|
515
|
-
"table.groups.sales-per-guest": "Sales
|
|
544
|
+
"table.groups.sales-per-guest": "Sales/Guest",
|
|
516
545
|
"employee-timecard.status.active": "Active",
|
|
517
546
|
"employee-timecard.status.inactive": "Inactive",
|
|
518
547
|
"employee-timecard.job.break-suffix": " * break"
|
|
@@ -962,6 +991,33 @@ var enUS2 = {
|
|
|
962
991
|
"common.report-col.type": false,
|
|
963
992
|
"common.report-col.type.short": false,
|
|
964
993
|
"common.report-col.type.info": false,
|
|
994
|
+
"common.report-col.paid-normal-hours": false,
|
|
995
|
+
"common.report-col.paid-normal-hours.short": false,
|
|
996
|
+
"common.report-col.paid-normal-hours.info": false,
|
|
997
|
+
"common.report-col.normal-pay": false,
|
|
998
|
+
"common.report-col.normal-pay.short": false,
|
|
999
|
+
"common.report-col.normal-pay.info": false,
|
|
1000
|
+
"common.report-col.overtime-pay": false,
|
|
1001
|
+
"common.report-col.overtime-pay.short": false,
|
|
1002
|
+
"common.report-col.overtime-pay.info": false,
|
|
1003
|
+
"common.report-col.double-overtime-pay": false,
|
|
1004
|
+
"common.report-col.double-overtime-pay.short": false,
|
|
1005
|
+
"common.report-col.double-overtime-pay.info": false,
|
|
1006
|
+
"common.report-col.gratuity": false,
|
|
1007
|
+
"common.report-col.gratuity.short": false,
|
|
1008
|
+
"common.report-col.gratuity.info": false,
|
|
1009
|
+
"common.report-col.tip-paid-status": false,
|
|
1010
|
+
"common.report-col.tip-paid-status.short": false,
|
|
1011
|
+
"common.report-col.tip-paid-status.info": false,
|
|
1012
|
+
"common.report-col.total-payments": false,
|
|
1013
|
+
"common.report-col.total-payments.short": false,
|
|
1014
|
+
"common.report-col.total-payments.info": false,
|
|
1015
|
+
"common.report-col.minimum-wage-adjustment": false,
|
|
1016
|
+
"common.report-col.minimum-wage-adjustment.short": false,
|
|
1017
|
+
"common.report-col.minimum-wage-adjustment.info": false,
|
|
1018
|
+
"common.report-col.total-pay": false,
|
|
1019
|
+
"common.report-col.total-pay.short": false,
|
|
1020
|
+
"common.report-col.total-pay.info": false,
|
|
965
1021
|
"common.report-section.revenue-class": false,
|
|
966
1022
|
"common.report-section.payments": false,
|
|
967
1023
|
"common.report-section.cash": false,
|
|
@@ -1006,6 +1062,8 @@ var enUS2 = {
|
|
|
1006
1062
|
"table.total": false,
|
|
1007
1063
|
"table.groups.sales": false,
|
|
1008
1064
|
"table.groups.net-sales": false,
|
|
1065
|
+
"table.groups.taxes": false,
|
|
1066
|
+
"table.groups.gross-sales": false,
|
|
1009
1067
|
"table.groups.guests": false,
|
|
1010
1068
|
"table.groups.sales-per-guest": false,
|
|
1011
1069
|
"employee-timecard.status.active": false,
|
|
@@ -1457,6 +1515,33 @@ var enUS3 = {
|
|
|
1457
1515
|
"common.report-col.type": false,
|
|
1458
1516
|
"common.report-col.type.short": false,
|
|
1459
1517
|
"common.report-col.type.info": false,
|
|
1518
|
+
"common.report-col.paid-normal-hours": false,
|
|
1519
|
+
"common.report-col.paid-normal-hours.short": false,
|
|
1520
|
+
"common.report-col.paid-normal-hours.info": false,
|
|
1521
|
+
"common.report-col.normal-pay": false,
|
|
1522
|
+
"common.report-col.normal-pay.short": false,
|
|
1523
|
+
"common.report-col.normal-pay.info": false,
|
|
1524
|
+
"common.report-col.overtime-pay": false,
|
|
1525
|
+
"common.report-col.overtime-pay.short": false,
|
|
1526
|
+
"common.report-col.overtime-pay.info": false,
|
|
1527
|
+
"common.report-col.double-overtime-pay": false,
|
|
1528
|
+
"common.report-col.double-overtime-pay.short": false,
|
|
1529
|
+
"common.report-col.double-overtime-pay.info": false,
|
|
1530
|
+
"common.report-col.gratuity": false,
|
|
1531
|
+
"common.report-col.gratuity.short": false,
|
|
1532
|
+
"common.report-col.gratuity.info": false,
|
|
1533
|
+
"common.report-col.tip-paid-status": false,
|
|
1534
|
+
"common.report-col.tip-paid-status.short": false,
|
|
1535
|
+
"common.report-col.tip-paid-status.info": false,
|
|
1536
|
+
"common.report-col.total-payments": false,
|
|
1537
|
+
"common.report-col.total-payments.short": false,
|
|
1538
|
+
"common.report-col.total-payments.info": false,
|
|
1539
|
+
"common.report-col.minimum-wage-adjustment": false,
|
|
1540
|
+
"common.report-col.minimum-wage-adjustment.short": false,
|
|
1541
|
+
"common.report-col.minimum-wage-adjustment.info": false,
|
|
1542
|
+
"common.report-col.total-pay": false,
|
|
1543
|
+
"common.report-col.total-pay.short": false,
|
|
1544
|
+
"common.report-col.total-pay.info": false,
|
|
1460
1545
|
"common.report-section.revenue-class": false,
|
|
1461
1546
|
"common.report-section.payments": false,
|
|
1462
1547
|
"common.report-section.cash": false,
|
|
@@ -1501,6 +1586,8 @@ var enUS3 = {
|
|
|
1501
1586
|
"table.total": false,
|
|
1502
1587
|
"table.groups.sales": false,
|
|
1503
1588
|
"table.groups.net-sales": false,
|
|
1589
|
+
"table.groups.taxes": false,
|
|
1590
|
+
"table.groups.gross-sales": false,
|
|
1504
1591
|
"table.groups.guests": false,
|
|
1505
1592
|
"table.groups.sales-per-guest": false,
|
|
1506
1593
|
"employee-timecard.status.active": false,
|
|
@@ -1746,9 +1833,52 @@ var FIELDS2 = {
|
|
|
1746
1833
|
},
|
|
1747
1834
|
salesAmountNetLastWeek: { type: "money" },
|
|
1748
1835
|
salesAmountNetLastYear: { type: "money" },
|
|
1749
|
-
salesAmountGross: { type: "money" },
|
|
1836
|
+
salesAmountGross: { type: "money", columnKey: "grossSales" },
|
|
1750
1837
|
salesAmountGrossLastWeek: { type: "money" },
|
|
1751
1838
|
salesAmountGrossLastYear: { type: "money" },
|
|
1839
|
+
grossVarLW: { type: "money", columnKey: "salesVarLw" },
|
|
1840
|
+
grossVarLY: { type: "money", columnKey: "salesVarLy" },
|
|
1841
|
+
grossVarLWPct: {
|
|
1842
|
+
type: "percent",
|
|
1843
|
+
columnKey: "salesVarLwPct",
|
|
1844
|
+
footerCalculation: {
|
|
1845
|
+
type: "variancePercent",
|
|
1846
|
+
numeratorField: "grossVarLW",
|
|
1847
|
+
denominatorField: "salesAmountGross"
|
|
1848
|
+
}
|
|
1849
|
+
},
|
|
1850
|
+
grossVarLYPct: {
|
|
1851
|
+
type: "percent",
|
|
1852
|
+
columnKey: "salesVarLyPct",
|
|
1853
|
+
footerCalculation: {
|
|
1854
|
+
type: "variancePercent",
|
|
1855
|
+
numeratorField: "grossVarLY",
|
|
1856
|
+
denominatorField: "salesAmountGross"
|
|
1857
|
+
}
|
|
1858
|
+
},
|
|
1859
|
+
taxesAmount: { type: "money", columnKey: "taxCollected" },
|
|
1860
|
+
taxesAmountLastWeek: { type: "money" },
|
|
1861
|
+
taxesAmountLastYear: { type: "money" },
|
|
1862
|
+
taxesVarLW: { type: "money", columnKey: "salesVarLw" },
|
|
1863
|
+
taxesVarLY: { type: "money", columnKey: "salesVarLy" },
|
|
1864
|
+
taxesVarLWPct: {
|
|
1865
|
+
type: "percent",
|
|
1866
|
+
columnKey: "salesVarLwPct",
|
|
1867
|
+
footerCalculation: {
|
|
1868
|
+
type: "variancePercent",
|
|
1869
|
+
numeratorField: "taxesVarLW",
|
|
1870
|
+
denominatorField: "taxesAmount"
|
|
1871
|
+
}
|
|
1872
|
+
},
|
|
1873
|
+
taxesVarLYPct: {
|
|
1874
|
+
type: "percent",
|
|
1875
|
+
columnKey: "salesVarLyPct",
|
|
1876
|
+
footerCalculation: {
|
|
1877
|
+
type: "variancePercent",
|
|
1878
|
+
numeratorField: "taxesVarLY",
|
|
1879
|
+
denominatorField: "taxesAmount"
|
|
1880
|
+
}
|
|
1881
|
+
},
|
|
1752
1882
|
ticketsCount: { type: "number" },
|
|
1753
1883
|
ticketsCountLastWeek: { type: "number" },
|
|
1754
1884
|
ticketsCountLastYear: { type: "number" },
|
|
@@ -1810,11 +1940,25 @@ var FIELDS2 = {
|
|
|
1810
1940
|
var COLUMN_GROUPS = [
|
|
1811
1941
|
{
|
|
1812
1942
|
id: "sales",
|
|
1813
|
-
headerTranslationKey: "table.groups.sales",
|
|
1943
|
+
headerTranslationKey: "table.groups.net-sales",
|
|
1814
1944
|
baseFields: ["salesAmountNet"],
|
|
1815
1945
|
lastWeekFields: ["salesVarLW", "salesVarLWPct"],
|
|
1816
1946
|
lastYearFields: ["salesVarLY", "salesVarLYPct"]
|
|
1817
1947
|
},
|
|
1948
|
+
{
|
|
1949
|
+
id: "grossSales",
|
|
1950
|
+
headerTranslationKey: "table.groups.gross-sales",
|
|
1951
|
+
baseFields: ["salesAmountGross"],
|
|
1952
|
+
lastWeekFields: ["grossVarLW", "grossVarLWPct"],
|
|
1953
|
+
lastYearFields: ["grossVarLY", "grossVarLYPct"]
|
|
1954
|
+
},
|
|
1955
|
+
{
|
|
1956
|
+
id: "taxes",
|
|
1957
|
+
headerTranslationKey: "table.groups.taxes",
|
|
1958
|
+
baseFields: ["taxesAmount"],
|
|
1959
|
+
lastWeekFields: ["taxesVarLW", "taxesVarLWPct"],
|
|
1960
|
+
lastYearFields: ["taxesVarLY", "taxesVarLYPct"]
|
|
1961
|
+
},
|
|
1818
1962
|
{
|
|
1819
1963
|
id: "guests",
|
|
1820
1964
|
headerTranslationKey: "table.groups.guests",
|
|
@@ -1836,6 +1980,16 @@ var SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS = [
|
|
|
1836
1980
|
"salesVarLWPct",
|
|
1837
1981
|
"salesVarLY",
|
|
1838
1982
|
"salesVarLYPct",
|
|
1983
|
+
"salesAmountGross",
|
|
1984
|
+
"grossVarLW",
|
|
1985
|
+
"grossVarLWPct",
|
|
1986
|
+
"grossVarLY",
|
|
1987
|
+
"grossVarLYPct",
|
|
1988
|
+
"taxesAmount",
|
|
1989
|
+
"taxesVarLW",
|
|
1990
|
+
"taxesVarLWPct",
|
|
1991
|
+
"taxesVarLY",
|
|
1992
|
+
"taxesVarLYPct",
|
|
1839
1993
|
"guestsCount",
|
|
1840
1994
|
"guestsVarLW",
|
|
1841
1995
|
"guestsVarLWPct",
|
|
@@ -2404,8 +2558,68 @@ var tipCashoutReconciliationConfig = {
|
|
|
2404
2558
|
hasFooter: true
|
|
2405
2559
|
};
|
|
2406
2560
|
|
|
2407
|
-
// src/reports/
|
|
2561
|
+
// src/reports/payroll.ts
|
|
2408
2562
|
var FIELDS11 = {
|
|
2563
|
+
groupById: { type: "string" },
|
|
2564
|
+
groupByName: { type: "string" },
|
|
2565
|
+
rowType: { type: "string" },
|
|
2566
|
+
locationName: { type: "string", size: 220, columnKey: "locationName" },
|
|
2567
|
+
employeeName: { type: "string", size: 220, columnKey: "employeeName" },
|
|
2568
|
+
empId: {
|
|
2569
|
+
type: "string",
|
|
2570
|
+
size: 160,
|
|
2571
|
+
columnKey: "employeeId",
|
|
2572
|
+
footerCalculation: { type: "label", label: "table.total" }
|
|
2573
|
+
},
|
|
2574
|
+
payrollId: { type: "string", size: 160, columnKey: "payrollId" },
|
|
2575
|
+
jobName: { type: "string", size: 160, columnKey: "employeeJob" },
|
|
2576
|
+
paidNormalHours: { type: "number", columnKey: "paidNormalHours", footerCalculation: { type: "sum" } },
|
|
2577
|
+
normalPay: { type: "money", columnKey: "normalPay", footerCalculation: { type: "sum" } },
|
|
2578
|
+
overtimePay: { type: "money", columnKey: "overtimePay", footerCalculation: { type: "sum" } },
|
|
2579
|
+
doubleOvertimePay: { type: "money", columnKey: "doubleOvertimePay", footerCalculation: { type: "sum" } },
|
|
2580
|
+
grossTips: { type: "money", columnKey: "grossTips", footerCalculation: { type: "sum" } },
|
|
2581
|
+
gratuity: { type: "money", columnKey: "gratuity", footerCalculation: { type: "sum" } },
|
|
2582
|
+
totalTips: { type: "money", columnKey: "totalTips", footerCalculation: { type: "sum" } },
|
|
2583
|
+
tipReduction: { type: "money", columnKey: "tipReduction", footerCalculation: { type: "sum" } },
|
|
2584
|
+
tipShare: { type: "money", columnKey: "tipShare", footerCalculation: { type: "sum" } },
|
|
2585
|
+
netTips: { type: "money", columnKey: "netTips", footerCalculation: { type: "sum" } },
|
|
2586
|
+
declaredTips: { type: "money", columnKey: "declaredTips", footerCalculation: { type: "sum" } },
|
|
2587
|
+
tipPaidStatus: { type: "string", size: 160, columnKey: "tipPaidStatus" },
|
|
2588
|
+
totalPayments: { type: "money", columnKey: "totalPayments", footerCalculation: { type: "sum" } },
|
|
2589
|
+
minimumWageAdjustment: { type: "money", columnKey: "minimumWageAdjustment", footerCalculation: { type: "sum" } },
|
|
2590
|
+
totalPay: { type: "money", columnKey: "totalPay", footerCalculation: { type: "sum" } }
|
|
2591
|
+
};
|
|
2592
|
+
var VISIBLE_COLUMNS3 = [
|
|
2593
|
+
"employeeName",
|
|
2594
|
+
"payrollId",
|
|
2595
|
+
"locationName",
|
|
2596
|
+
"jobName",
|
|
2597
|
+
"paidNormalHours",
|
|
2598
|
+
"normalPay",
|
|
2599
|
+
"overtimePay",
|
|
2600
|
+
"doubleOvertimePay",
|
|
2601
|
+
"grossTips",
|
|
2602
|
+
"gratuity",
|
|
2603
|
+
"totalTips",
|
|
2604
|
+
"tipReduction",
|
|
2605
|
+
"tipShare",
|
|
2606
|
+
"netTips",
|
|
2607
|
+
"declaredTips",
|
|
2608
|
+
"tipPaidStatus",
|
|
2609
|
+
"totalPayments",
|
|
2610
|
+
"minimumWageAdjustment",
|
|
2611
|
+
"totalPay"
|
|
2612
|
+
];
|
|
2613
|
+
var AVAILABLE_COLUMNS3 = ["groupById", "groupByName", "rowType", "empId", ...VISIBLE_COLUMNS3];
|
|
2614
|
+
var payrollConfig = {
|
|
2615
|
+
fields: FIELDS11,
|
|
2616
|
+
availableColumns: AVAILABLE_COLUMNS3,
|
|
2617
|
+
defaultVisibleColumns: VISIBLE_COLUMNS3,
|
|
2618
|
+
hasFooter: true
|
|
2619
|
+
};
|
|
2620
|
+
|
|
2621
|
+
// src/reports/dailySales/dailySales.ts
|
|
2622
|
+
var FIELDS12 = {
|
|
2409
2623
|
groupById: { type: "string" },
|
|
2410
2624
|
groupByName: {
|
|
2411
2625
|
type: "string",
|
|
@@ -2430,7 +2644,7 @@ var DAILY_SALES_AVAILABLE_COLUMNS = [
|
|
|
2430
2644
|
"salesMixPct"
|
|
2431
2645
|
];
|
|
2432
2646
|
var dailySalesConfig = {
|
|
2433
|
-
fields:
|
|
2647
|
+
fields: FIELDS12,
|
|
2434
2648
|
availableColumns: DAILY_SALES_AVAILABLE_COLUMNS,
|
|
2435
2649
|
defaultVisibleColumns: DAILY_SALES_AVAILABLE_COLUMNS,
|
|
2436
2650
|
hasFooter: true,
|
|
@@ -2440,7 +2654,7 @@ var dailySalesConfig = {
|
|
|
2440
2654
|
};
|
|
2441
2655
|
|
|
2442
2656
|
// src/reports/dailySales/dailySalesCache.ts
|
|
2443
|
-
var
|
|
2657
|
+
var FIELDS13 = {
|
|
2444
2658
|
name: {
|
|
2445
2659
|
type: "string",
|
|
2446
2660
|
columnKey: "type",
|
|
@@ -2450,7 +2664,7 @@ var FIELDS12 = {
|
|
|
2450
2664
|
amount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } }
|
|
2451
2665
|
};
|
|
2452
2666
|
var dailySalesCacheConfig = {
|
|
2453
|
-
fields:
|
|
2667
|
+
fields: FIELDS13,
|
|
2454
2668
|
availableColumns: ["name", "amount"],
|
|
2455
2669
|
defaultVisibleColumns: ["name", "amount"],
|
|
2456
2670
|
hasFooter: true,
|
|
@@ -2459,7 +2673,7 @@ var dailySalesCacheConfig = {
|
|
|
2459
2673
|
};
|
|
2460
2674
|
|
|
2461
2675
|
// src/reports/dailySales/dailySalesDiscounts.ts
|
|
2462
|
-
var
|
|
2676
|
+
var FIELDS14 = {
|
|
2463
2677
|
discountName: {
|
|
2464
2678
|
type: "string",
|
|
2465
2679
|
columnKey: "discountName",
|
|
@@ -2477,7 +2691,7 @@ var DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS = [
|
|
|
2477
2691
|
"discountsAmount"
|
|
2478
2692
|
];
|
|
2479
2693
|
var dailySalesDiscountsConfig = {
|
|
2480
|
-
fields:
|
|
2694
|
+
fields: FIELDS14,
|
|
2481
2695
|
availableColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
|
|
2482
2696
|
defaultVisibleColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
|
|
2483
2697
|
hasFooter: true,
|
|
@@ -2486,7 +2700,7 @@ var dailySalesDiscountsConfig = {
|
|
|
2486
2700
|
};
|
|
2487
2701
|
|
|
2488
2702
|
// src/reports/dailySales/dailySalesPayments.ts
|
|
2489
|
-
var
|
|
2703
|
+
var FIELDS15 = {
|
|
2490
2704
|
paymentTypeName: {
|
|
2491
2705
|
type: "string",
|
|
2492
2706
|
size: FIRST_COLUMN_WIDTH,
|
|
@@ -2506,7 +2720,7 @@ var DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS = [
|
|
|
2506
2720
|
"totalSales"
|
|
2507
2721
|
];
|
|
2508
2722
|
var dailySalesPaymentsConfig = {
|
|
2509
|
-
fields:
|
|
2723
|
+
fields: FIELDS15,
|
|
2510
2724
|
availableColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
|
|
2511
2725
|
defaultVisibleColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
|
|
2512
2726
|
hasFooter: true,
|
|
@@ -2515,7 +2729,7 @@ var dailySalesPaymentsConfig = {
|
|
|
2515
2729
|
};
|
|
2516
2730
|
|
|
2517
2731
|
// src/reports/dailySales/dailySalesRefundsVoids.ts
|
|
2518
|
-
var
|
|
2732
|
+
var FIELDS16 = {
|
|
2519
2733
|
description: {
|
|
2520
2734
|
type: "string",
|
|
2521
2735
|
columnKey: "refundVoidDescription",
|
|
@@ -2533,7 +2747,7 @@ var DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS = [
|
|
|
2533
2747
|
"pctSales"
|
|
2534
2748
|
];
|
|
2535
2749
|
var dailySalesRefundsVoidsConfig = {
|
|
2536
|
-
fields:
|
|
2750
|
+
fields: FIELDS16,
|
|
2537
2751
|
availableColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
|
|
2538
2752
|
defaultVisibleColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
|
|
2539
2753
|
hasFooter: true,
|
|
@@ -2542,7 +2756,7 @@ var dailySalesRefundsVoidsConfig = {
|
|
|
2542
2756
|
};
|
|
2543
2757
|
|
|
2544
2758
|
// src/reports/dailySales/dailySalesTaxes.ts
|
|
2545
|
-
var
|
|
2759
|
+
var FIELDS17 = {
|
|
2546
2760
|
taxName: {
|
|
2547
2761
|
type: "string",
|
|
2548
2762
|
columnKey: "taxName",
|
|
@@ -2560,7 +2774,7 @@ var DAILY_SALES_TAXES_AVAILABLE_COLUMNS = [
|
|
|
2560
2774
|
"exemptSales"
|
|
2561
2775
|
];
|
|
2562
2776
|
var dailySalesTaxesConfig = {
|
|
2563
|
-
fields:
|
|
2777
|
+
fields: FIELDS17,
|
|
2564
2778
|
availableColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
|
|
2565
2779
|
defaultVisibleColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
|
|
2566
2780
|
hasFooter: true,
|
|
@@ -2569,7 +2783,7 @@ var dailySalesTaxesConfig = {
|
|
|
2569
2783
|
};
|
|
2570
2784
|
|
|
2571
2785
|
// src/reports/dailySales/dailySalesTrendsDayPart.ts
|
|
2572
|
-
var
|
|
2786
|
+
var FIELDS18 = {
|
|
2573
2787
|
groupById: { type: "string" },
|
|
2574
2788
|
groupByName: {
|
|
2575
2789
|
type: "string",
|
|
@@ -2608,7 +2822,7 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS = [
|
|
|
2608
2822
|
"salesAmountNet"
|
|
2609
2823
|
];
|
|
2610
2824
|
var dailySalesTrendsDayPartConfig = {
|
|
2611
|
-
fields:
|
|
2825
|
+
fields: FIELDS18,
|
|
2612
2826
|
availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
2613
2827
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
2614
2828
|
hasFooter: true,
|
|
@@ -2617,7 +2831,7 @@ var dailySalesTrendsDayPartConfig = {
|
|
|
2617
2831
|
};
|
|
2618
2832
|
|
|
2619
2833
|
// src/reports/dailySales/dailySalesTrendsOrderType.ts
|
|
2620
|
-
var
|
|
2834
|
+
var FIELDS19 = {
|
|
2621
2835
|
groupById: { type: "string" },
|
|
2622
2836
|
groupByName: {
|
|
2623
2837
|
columnKey: "orderType",
|
|
@@ -2656,7 +2870,7 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2 = [
|
|
|
2656
2870
|
"salesAmountNet"
|
|
2657
2871
|
];
|
|
2658
2872
|
var dailySalesTrendsOrderTypeConfig = {
|
|
2659
|
-
fields:
|
|
2873
|
+
fields: FIELDS19,
|
|
2660
2874
|
availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
|
|
2661
2875
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
|
|
2662
2876
|
hasFooter: true,
|
|
@@ -2685,6 +2899,7 @@ var REPORT_CONFIG_MAP = {
|
|
|
2685
2899
|
"employee-timecard": employeeTimecardConfig,
|
|
2686
2900
|
"employee-tip": employeeTipConfig,
|
|
2687
2901
|
"tip-cashout-reconciliation": tipCashoutReconciliationConfig,
|
|
2902
|
+
payroll: payrollConfig,
|
|
2688
2903
|
"sales-by-item": salesByItemDetailConfig,
|
|
2689
2904
|
"daily-sales": DAILY_SALES_SECTION_CONFIGS,
|
|
2690
2905
|
"daily-sales-live": DAILY_SALES_SECTION_CONFIGS
|
|
@@ -3437,6 +3652,51 @@ var COLUMN_REGISTRY = {
|
|
|
3437
3652
|
titleKey: "common.report-col.type",
|
|
3438
3653
|
shortTitleKey: "common.report-col.type.short",
|
|
3439
3654
|
infoTextKey: "common.report-col.type.info"
|
|
3655
|
+
},
|
|
3656
|
+
paidNormalHours: {
|
|
3657
|
+
titleKey: "common.report-col.paid-normal-hours",
|
|
3658
|
+
shortTitleKey: "common.report-col.paid-normal-hours.short",
|
|
3659
|
+
infoTextKey: "common.report-col.paid-normal-hours.info"
|
|
3660
|
+
},
|
|
3661
|
+
normalPay: {
|
|
3662
|
+
titleKey: "common.report-col.normal-pay",
|
|
3663
|
+
shortTitleKey: "common.report-col.normal-pay.short",
|
|
3664
|
+
infoTextKey: "common.report-col.normal-pay.info"
|
|
3665
|
+
},
|
|
3666
|
+
overtimePay: {
|
|
3667
|
+
titleKey: "common.report-col.overtime-pay",
|
|
3668
|
+
shortTitleKey: "common.report-col.overtime-pay.short",
|
|
3669
|
+
infoTextKey: "common.report-col.overtime-pay.info"
|
|
3670
|
+
},
|
|
3671
|
+
doubleOvertimePay: {
|
|
3672
|
+
titleKey: "common.report-col.double-overtime-pay",
|
|
3673
|
+
shortTitleKey: "common.report-col.double-overtime-pay.short",
|
|
3674
|
+
infoTextKey: "common.report-col.double-overtime-pay.info"
|
|
3675
|
+
},
|
|
3676
|
+
gratuity: {
|
|
3677
|
+
titleKey: "common.report-col.gratuity",
|
|
3678
|
+
shortTitleKey: "common.report-col.gratuity.short",
|
|
3679
|
+
infoTextKey: "common.report-col.gratuity.info"
|
|
3680
|
+
},
|
|
3681
|
+
tipPaidStatus: {
|
|
3682
|
+
titleKey: "common.report-col.tip-paid-status",
|
|
3683
|
+
shortTitleKey: "common.report-col.tip-paid-status.short",
|
|
3684
|
+
infoTextKey: "common.report-col.tip-paid-status.info"
|
|
3685
|
+
},
|
|
3686
|
+
totalPayments: {
|
|
3687
|
+
titleKey: "common.report-col.total-payments",
|
|
3688
|
+
shortTitleKey: "common.report-col.total-payments.short",
|
|
3689
|
+
infoTextKey: "common.report-col.total-payments.info"
|
|
3690
|
+
},
|
|
3691
|
+
minimumWageAdjustment: {
|
|
3692
|
+
titleKey: "common.report-col.minimum-wage-adjustment",
|
|
3693
|
+
shortTitleKey: "common.report-col.minimum-wage-adjustment.short",
|
|
3694
|
+
infoTextKey: "common.report-col.minimum-wage-adjustment.info"
|
|
3695
|
+
},
|
|
3696
|
+
totalPay: {
|
|
3697
|
+
titleKey: "common.report-col.total-pay",
|
|
3698
|
+
shortTitleKey: "common.report-col.total-pay.short",
|
|
3699
|
+
infoTextKey: "common.report-col.total-pay.info"
|
|
3440
3700
|
}
|
|
3441
3701
|
};
|
|
3442
3702
|
function getColumnMetadata(key) {
|
|
@@ -3444,6 +3704,9 @@ function getColumnMetadata(key) {
|
|
|
3444
3704
|
}
|
|
3445
3705
|
function getColumnExportHeaderLabel(colTitle, groupTitle) {
|
|
3446
3706
|
if (groupTitle) {
|
|
3707
|
+
if (groupTitle === colTitle) {
|
|
3708
|
+
return colTitle;
|
|
3709
|
+
}
|
|
3447
3710
|
return `${groupTitle}: ${colTitle}`;
|
|
3448
3711
|
}
|
|
3449
3712
|
return colTitle;
|