@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
package/dist/index.cjs
CHANGED
|
@@ -62,6 +62,7 @@ __export(index_exports, {
|
|
|
62
62
|
isNumericType: () => isNumericType,
|
|
63
63
|
itemTaxConfig: () => itemTaxConfig,
|
|
64
64
|
modifierMixConfig: () => modifierMixConfig,
|
|
65
|
+
payrollConfig: () => payrollConfig,
|
|
65
66
|
productMixConfig: () => productMixConfig,
|
|
66
67
|
resolveTranslate: () => resolveTranslate,
|
|
67
68
|
salesByItemDetailConfig: () => salesByItemDetailConfig,
|
|
@@ -150,9 +151,52 @@ var FIELDS2 = {
|
|
|
150
151
|
},
|
|
151
152
|
salesAmountNetLastWeek: { type: "money" },
|
|
152
153
|
salesAmountNetLastYear: { type: "money" },
|
|
153
|
-
salesAmountGross: { type: "money" },
|
|
154
|
+
salesAmountGross: { type: "money", columnKey: "grossSales" },
|
|
154
155
|
salesAmountGrossLastWeek: { type: "money" },
|
|
155
156
|
salesAmountGrossLastYear: { type: "money" },
|
|
157
|
+
grossVarLW: { type: "money", columnKey: "salesVarLw" },
|
|
158
|
+
grossVarLY: { type: "money", columnKey: "salesVarLy" },
|
|
159
|
+
grossVarLWPct: {
|
|
160
|
+
type: "percent",
|
|
161
|
+
columnKey: "salesVarLwPct",
|
|
162
|
+
footerCalculation: {
|
|
163
|
+
type: "variancePercent",
|
|
164
|
+
numeratorField: "grossVarLW",
|
|
165
|
+
denominatorField: "salesAmountGross"
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
grossVarLYPct: {
|
|
169
|
+
type: "percent",
|
|
170
|
+
columnKey: "salesVarLyPct",
|
|
171
|
+
footerCalculation: {
|
|
172
|
+
type: "variancePercent",
|
|
173
|
+
numeratorField: "grossVarLY",
|
|
174
|
+
denominatorField: "salesAmountGross"
|
|
175
|
+
}
|
|
176
|
+
},
|
|
177
|
+
taxesAmount: { type: "money", columnKey: "taxCollected" },
|
|
178
|
+
taxesAmountLastWeek: { type: "money" },
|
|
179
|
+
taxesAmountLastYear: { type: "money" },
|
|
180
|
+
taxesVarLW: { type: "money", columnKey: "salesVarLw" },
|
|
181
|
+
taxesVarLY: { type: "money", columnKey: "salesVarLy" },
|
|
182
|
+
taxesVarLWPct: {
|
|
183
|
+
type: "percent",
|
|
184
|
+
columnKey: "salesVarLwPct",
|
|
185
|
+
footerCalculation: {
|
|
186
|
+
type: "variancePercent",
|
|
187
|
+
numeratorField: "taxesVarLW",
|
|
188
|
+
denominatorField: "taxesAmount"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
taxesVarLYPct: {
|
|
192
|
+
type: "percent",
|
|
193
|
+
columnKey: "salesVarLyPct",
|
|
194
|
+
footerCalculation: {
|
|
195
|
+
type: "variancePercent",
|
|
196
|
+
numeratorField: "taxesVarLY",
|
|
197
|
+
denominatorField: "taxesAmount"
|
|
198
|
+
}
|
|
199
|
+
},
|
|
156
200
|
ticketsCount: { type: "number" },
|
|
157
201
|
ticketsCountLastWeek: { type: "number" },
|
|
158
202
|
ticketsCountLastYear: { type: "number" },
|
|
@@ -214,11 +258,25 @@ var FIELDS2 = {
|
|
|
214
258
|
var COLUMN_GROUPS = [
|
|
215
259
|
{
|
|
216
260
|
id: "sales",
|
|
217
|
-
headerTranslationKey: "table.groups.sales",
|
|
261
|
+
headerTranslationKey: "table.groups.net-sales",
|
|
218
262
|
baseFields: ["salesAmountNet"],
|
|
219
263
|
lastWeekFields: ["salesVarLW", "salesVarLWPct"],
|
|
220
264
|
lastYearFields: ["salesVarLY", "salesVarLYPct"]
|
|
221
265
|
},
|
|
266
|
+
{
|
|
267
|
+
id: "grossSales",
|
|
268
|
+
headerTranslationKey: "table.groups.gross-sales",
|
|
269
|
+
baseFields: ["salesAmountGross"],
|
|
270
|
+
lastWeekFields: ["grossVarLW", "grossVarLWPct"],
|
|
271
|
+
lastYearFields: ["grossVarLY", "grossVarLYPct"]
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
id: "taxes",
|
|
275
|
+
headerTranslationKey: "table.groups.taxes",
|
|
276
|
+
baseFields: ["taxesAmount"],
|
|
277
|
+
lastWeekFields: ["taxesVarLW", "taxesVarLWPct"],
|
|
278
|
+
lastYearFields: ["taxesVarLY", "taxesVarLYPct"]
|
|
279
|
+
},
|
|
222
280
|
{
|
|
223
281
|
id: "guests",
|
|
224
282
|
headerTranslationKey: "table.groups.guests",
|
|
@@ -240,6 +298,16 @@ var SALES_SUMMARY_DEFAULT_VISIBLE_COLUMNS = [
|
|
|
240
298
|
"salesVarLWPct",
|
|
241
299
|
"salesVarLY",
|
|
242
300
|
"salesVarLYPct",
|
|
301
|
+
"salesAmountGross",
|
|
302
|
+
"grossVarLW",
|
|
303
|
+
"grossVarLWPct",
|
|
304
|
+
"grossVarLY",
|
|
305
|
+
"grossVarLYPct",
|
|
306
|
+
"taxesAmount",
|
|
307
|
+
"taxesVarLW",
|
|
308
|
+
"taxesVarLWPct",
|
|
309
|
+
"taxesVarLY",
|
|
310
|
+
"taxesVarLYPct",
|
|
243
311
|
"guestsCount",
|
|
244
312
|
"guestsVarLW",
|
|
245
313
|
"guestsVarLWPct",
|
|
@@ -1051,6 +1119,33 @@ var enUS = {
|
|
|
1051
1119
|
"common.report-col.type": false,
|
|
1052
1120
|
"common.report-col.type.short": false,
|
|
1053
1121
|
"common.report-col.type.info": false,
|
|
1122
|
+
"common.report-col.paid-normal-hours": false,
|
|
1123
|
+
"common.report-col.paid-normal-hours.short": false,
|
|
1124
|
+
"common.report-col.paid-normal-hours.info": false,
|
|
1125
|
+
"common.report-col.normal-pay": false,
|
|
1126
|
+
"common.report-col.normal-pay.short": false,
|
|
1127
|
+
"common.report-col.normal-pay.info": false,
|
|
1128
|
+
"common.report-col.overtime-pay": false,
|
|
1129
|
+
"common.report-col.overtime-pay.short": false,
|
|
1130
|
+
"common.report-col.overtime-pay.info": false,
|
|
1131
|
+
"common.report-col.double-overtime-pay": false,
|
|
1132
|
+
"common.report-col.double-overtime-pay.short": false,
|
|
1133
|
+
"common.report-col.double-overtime-pay.info": false,
|
|
1134
|
+
"common.report-col.gratuity": false,
|
|
1135
|
+
"common.report-col.gratuity.short": false,
|
|
1136
|
+
"common.report-col.gratuity.info": false,
|
|
1137
|
+
"common.report-col.tip-paid-status": false,
|
|
1138
|
+
"common.report-col.tip-paid-status.short": false,
|
|
1139
|
+
"common.report-col.tip-paid-status.info": false,
|
|
1140
|
+
"common.report-col.total-payments": false,
|
|
1141
|
+
"common.report-col.total-payments.short": false,
|
|
1142
|
+
"common.report-col.total-payments.info": false,
|
|
1143
|
+
"common.report-col.minimum-wage-adjustment": false,
|
|
1144
|
+
"common.report-col.minimum-wage-adjustment.short": false,
|
|
1145
|
+
"common.report-col.minimum-wage-adjustment.info": false,
|
|
1146
|
+
"common.report-col.total-pay": false,
|
|
1147
|
+
"common.report-col.total-pay.short": false,
|
|
1148
|
+
"common.report-col.total-pay.info": false,
|
|
1054
1149
|
"common.report-section.revenue-class": false,
|
|
1055
1150
|
"common.report-section.payments": false,
|
|
1056
1151
|
"common.report-section.cash": false,
|
|
@@ -1095,6 +1190,8 @@ var enUS = {
|
|
|
1095
1190
|
"table.total": false,
|
|
1096
1191
|
"table.groups.sales": false,
|
|
1097
1192
|
"table.groups.net-sales": false,
|
|
1193
|
+
"table.groups.taxes": false,
|
|
1194
|
+
"table.groups.gross-sales": false,
|
|
1098
1195
|
"table.groups.guests": false,
|
|
1099
1196
|
"table.groups.sales-per-guest": false,
|
|
1100
1197
|
"employee-timecard.status.active": false,
|
|
@@ -1546,6 +1643,33 @@ var enUS2 = {
|
|
|
1546
1643
|
"common.report-col.type": false,
|
|
1547
1644
|
"common.report-col.type.short": false,
|
|
1548
1645
|
"common.report-col.type.info": false,
|
|
1646
|
+
"common.report-col.paid-normal-hours": false,
|
|
1647
|
+
"common.report-col.paid-normal-hours.short": false,
|
|
1648
|
+
"common.report-col.paid-normal-hours.info": false,
|
|
1649
|
+
"common.report-col.normal-pay": false,
|
|
1650
|
+
"common.report-col.normal-pay.short": false,
|
|
1651
|
+
"common.report-col.normal-pay.info": false,
|
|
1652
|
+
"common.report-col.overtime-pay": false,
|
|
1653
|
+
"common.report-col.overtime-pay.short": false,
|
|
1654
|
+
"common.report-col.overtime-pay.info": false,
|
|
1655
|
+
"common.report-col.double-overtime-pay": false,
|
|
1656
|
+
"common.report-col.double-overtime-pay.short": false,
|
|
1657
|
+
"common.report-col.double-overtime-pay.info": false,
|
|
1658
|
+
"common.report-col.gratuity": false,
|
|
1659
|
+
"common.report-col.gratuity.short": false,
|
|
1660
|
+
"common.report-col.gratuity.info": false,
|
|
1661
|
+
"common.report-col.tip-paid-status": false,
|
|
1662
|
+
"common.report-col.tip-paid-status.short": false,
|
|
1663
|
+
"common.report-col.tip-paid-status.info": false,
|
|
1664
|
+
"common.report-col.total-payments": false,
|
|
1665
|
+
"common.report-col.total-payments.short": false,
|
|
1666
|
+
"common.report-col.total-payments.info": false,
|
|
1667
|
+
"common.report-col.minimum-wage-adjustment": false,
|
|
1668
|
+
"common.report-col.minimum-wage-adjustment.short": false,
|
|
1669
|
+
"common.report-col.minimum-wage-adjustment.info": false,
|
|
1670
|
+
"common.report-col.total-pay": false,
|
|
1671
|
+
"common.report-col.total-pay.short": false,
|
|
1672
|
+
"common.report-col.total-pay.info": false,
|
|
1549
1673
|
"common.report-section.revenue-class": false,
|
|
1550
1674
|
"common.report-section.payments": false,
|
|
1551
1675
|
"common.report-section.cash": false,
|
|
@@ -1590,6 +1714,8 @@ var enUS2 = {
|
|
|
1590
1714
|
"table.total": false,
|
|
1591
1715
|
"table.groups.sales": false,
|
|
1592
1716
|
"table.groups.net-sales": false,
|
|
1717
|
+
"table.groups.taxes": false,
|
|
1718
|
+
"table.groups.gross-sales": false,
|
|
1593
1719
|
"table.groups.guests": false,
|
|
1594
1720
|
"table.groups.sales-per-guest": false,
|
|
1595
1721
|
"employee-timecard.status.active": false,
|
|
@@ -2041,6 +2167,33 @@ var enUS3 = {
|
|
|
2041
2167
|
"common.report-col.type": "Type",
|
|
2042
2168
|
"common.report-col.type.short": "Type",
|
|
2043
2169
|
"common.report-col.type.info": " ",
|
|
2170
|
+
"common.report-col.paid-normal-hours": "Paid Normal Hours",
|
|
2171
|
+
"common.report-col.paid-normal-hours.short": "Norm Hrs",
|
|
2172
|
+
"common.report-col.paid-normal-hours.info": "Total regular hours paid for the period",
|
|
2173
|
+
"common.report-col.normal-pay": "Normal Pay",
|
|
2174
|
+
"common.report-col.normal-pay.short": "Norm Pay",
|
|
2175
|
+
"common.report-col.normal-pay.info": "Wages earned for regular hours worked",
|
|
2176
|
+
"common.report-col.overtime-pay": "Overtime Pay",
|
|
2177
|
+
"common.report-col.overtime-pay.short": "OT Pay",
|
|
2178
|
+
"common.report-col.overtime-pay.info": "Wages earned for overtime hours worked",
|
|
2179
|
+
"common.report-col.double-overtime-pay": "Double Overtime Pay",
|
|
2180
|
+
"common.report-col.double-overtime-pay.short": "DT Pay",
|
|
2181
|
+
"common.report-col.double-overtime-pay.info": "Wages earned for double-overtime hours worked",
|
|
2182
|
+
"common.report-col.gratuity": "Gratuity",
|
|
2183
|
+
"common.report-col.gratuity.short": "Gratuity",
|
|
2184
|
+
"common.report-col.gratuity.info": "Gratuity amounts included in the payroll period",
|
|
2185
|
+
"common.report-col.tip-paid-status": "Tip Paid Status",
|
|
2186
|
+
"common.report-col.tip-paid-status.short": "Tip Status",
|
|
2187
|
+
"common.report-col.tip-paid-status.info": "Indicates whether tips were paid out daily or deferred to payroll",
|
|
2188
|
+
"common.report-col.total-payments": "Total Payments",
|
|
2189
|
+
"common.report-col.total-payments.short": "Total Pmts",
|
|
2190
|
+
"common.report-col.total-payments.info": "Total payments collected for the payroll period",
|
|
2191
|
+
"common.report-col.minimum-wage-adjustment": "Minimum Wage Adjustment",
|
|
2192
|
+
"common.report-col.minimum-wage-adjustment.short": "Min Wage Adj",
|
|
2193
|
+
"common.report-col.minimum-wage-adjustment.info": "Adjustment applied to meet minimum wage requirements",
|
|
2194
|
+
"common.report-col.total-pay": "Total Pay",
|
|
2195
|
+
"common.report-col.total-pay.short": "Total Pay",
|
|
2196
|
+
"common.report-col.total-pay.info": "Total compensation including wages, overtime, and adjustments",
|
|
2044
2197
|
"common.report-section.revenue-class": "Sales by Revenue Class",
|
|
2045
2198
|
"common.report-section.payments": "Payments",
|
|
2046
2199
|
"common.report-section.cash": "Expected Closeout Cash",
|
|
@@ -2085,8 +2238,10 @@ var enUS3 = {
|
|
|
2085
2238
|
"table.total": "Total",
|
|
2086
2239
|
"table.groups.sales": "Sales",
|
|
2087
2240
|
"table.groups.net-sales": "Net Sales",
|
|
2241
|
+
"table.groups.taxes": "Tax",
|
|
2242
|
+
"table.groups.gross-sales": "Gross Sales",
|
|
2088
2243
|
"table.groups.guests": "Guests",
|
|
2089
|
-
"table.groups.sales-per-guest": "Sales
|
|
2244
|
+
"table.groups.sales-per-guest": "Sales/Guest",
|
|
2090
2245
|
"employee-timecard.status.active": "Active",
|
|
2091
2246
|
"employee-timecard.status.inactive": "Inactive",
|
|
2092
2247
|
"employee-timecard.job.break-suffix": " * break"
|
|
@@ -2312,8 +2467,68 @@ var tipCashoutReconciliationConfig = {
|
|
|
2312
2467
|
hasFooter: true
|
|
2313
2468
|
};
|
|
2314
2469
|
|
|
2315
|
-
// src/reports/
|
|
2470
|
+
// src/reports/payroll.ts
|
|
2316
2471
|
var FIELDS11 = {
|
|
2472
|
+
groupById: { type: "string" },
|
|
2473
|
+
groupByName: { type: "string" },
|
|
2474
|
+
rowType: { type: "string" },
|
|
2475
|
+
locationName: { type: "string", size: 220, columnKey: "locationName" },
|
|
2476
|
+
employeeName: { type: "string", size: 220, columnKey: "employeeName" },
|
|
2477
|
+
empId: {
|
|
2478
|
+
type: "string",
|
|
2479
|
+
size: 160,
|
|
2480
|
+
columnKey: "employeeId",
|
|
2481
|
+
footerCalculation: { type: "label", label: "table.total" }
|
|
2482
|
+
},
|
|
2483
|
+
payrollId: { type: "string", size: 160, columnKey: "payrollId" },
|
|
2484
|
+
jobName: { type: "string", size: 160, columnKey: "employeeJob" },
|
|
2485
|
+
paidNormalHours: { type: "number", columnKey: "paidNormalHours", footerCalculation: { type: "sum" } },
|
|
2486
|
+
normalPay: { type: "money", columnKey: "normalPay", footerCalculation: { type: "sum" } },
|
|
2487
|
+
overtimePay: { type: "money", columnKey: "overtimePay", footerCalculation: { type: "sum" } },
|
|
2488
|
+
doubleOvertimePay: { type: "money", columnKey: "doubleOvertimePay", footerCalculation: { type: "sum" } },
|
|
2489
|
+
grossTips: { type: "money", columnKey: "grossTips", footerCalculation: { type: "sum" } },
|
|
2490
|
+
gratuity: { type: "money", columnKey: "gratuity", footerCalculation: { type: "sum" } },
|
|
2491
|
+
totalTips: { type: "money", columnKey: "totalTips", footerCalculation: { type: "sum" } },
|
|
2492
|
+
tipReduction: { type: "money", columnKey: "tipReduction", footerCalculation: { type: "sum" } },
|
|
2493
|
+
tipShare: { type: "money", columnKey: "tipShare", footerCalculation: { type: "sum" } },
|
|
2494
|
+
netTips: { type: "money", columnKey: "netTips", footerCalculation: { type: "sum" } },
|
|
2495
|
+
declaredTips: { type: "money", columnKey: "declaredTips", footerCalculation: { type: "sum" } },
|
|
2496
|
+
tipPaidStatus: { type: "string", size: 160, columnKey: "tipPaidStatus" },
|
|
2497
|
+
totalPayments: { type: "money", columnKey: "totalPayments", footerCalculation: { type: "sum" } },
|
|
2498
|
+
minimumWageAdjustment: { type: "money", columnKey: "minimumWageAdjustment", footerCalculation: { type: "sum" } },
|
|
2499
|
+
totalPay: { type: "money", columnKey: "totalPay", footerCalculation: { type: "sum" } }
|
|
2500
|
+
};
|
|
2501
|
+
var VISIBLE_COLUMNS3 = [
|
|
2502
|
+
"employeeName",
|
|
2503
|
+
"payrollId",
|
|
2504
|
+
"locationName",
|
|
2505
|
+
"jobName",
|
|
2506
|
+
"paidNormalHours",
|
|
2507
|
+
"normalPay",
|
|
2508
|
+
"overtimePay",
|
|
2509
|
+
"doubleOvertimePay",
|
|
2510
|
+
"grossTips",
|
|
2511
|
+
"gratuity",
|
|
2512
|
+
"totalTips",
|
|
2513
|
+
"tipReduction",
|
|
2514
|
+
"tipShare",
|
|
2515
|
+
"netTips",
|
|
2516
|
+
"declaredTips",
|
|
2517
|
+
"tipPaidStatus",
|
|
2518
|
+
"totalPayments",
|
|
2519
|
+
"minimumWageAdjustment",
|
|
2520
|
+
"totalPay"
|
|
2521
|
+
];
|
|
2522
|
+
var AVAILABLE_COLUMNS3 = ["groupById", "groupByName", "rowType", "empId", ...VISIBLE_COLUMNS3];
|
|
2523
|
+
var payrollConfig = {
|
|
2524
|
+
fields: FIELDS11,
|
|
2525
|
+
availableColumns: AVAILABLE_COLUMNS3,
|
|
2526
|
+
defaultVisibleColumns: VISIBLE_COLUMNS3,
|
|
2527
|
+
hasFooter: true
|
|
2528
|
+
};
|
|
2529
|
+
|
|
2530
|
+
// src/reports/dailySales/dailySales.ts
|
|
2531
|
+
var FIELDS12 = {
|
|
2317
2532
|
groupById: { type: "string" },
|
|
2318
2533
|
groupByName: {
|
|
2319
2534
|
type: "string",
|
|
@@ -2338,7 +2553,7 @@ var DAILY_SALES_AVAILABLE_COLUMNS = [
|
|
|
2338
2553
|
"salesMixPct"
|
|
2339
2554
|
];
|
|
2340
2555
|
var dailySalesConfig = {
|
|
2341
|
-
fields:
|
|
2556
|
+
fields: FIELDS12,
|
|
2342
2557
|
availableColumns: DAILY_SALES_AVAILABLE_COLUMNS,
|
|
2343
2558
|
defaultVisibleColumns: DAILY_SALES_AVAILABLE_COLUMNS,
|
|
2344
2559
|
hasFooter: true,
|
|
@@ -2348,7 +2563,7 @@ var dailySalesConfig = {
|
|
|
2348
2563
|
};
|
|
2349
2564
|
|
|
2350
2565
|
// src/reports/dailySales/dailySalesCache.ts
|
|
2351
|
-
var
|
|
2566
|
+
var FIELDS13 = {
|
|
2352
2567
|
name: {
|
|
2353
2568
|
type: "string",
|
|
2354
2569
|
columnKey: "type",
|
|
@@ -2358,7 +2573,7 @@ var FIELDS12 = {
|
|
|
2358
2573
|
amount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } }
|
|
2359
2574
|
};
|
|
2360
2575
|
var dailySalesCacheConfig = {
|
|
2361
|
-
fields:
|
|
2576
|
+
fields: FIELDS13,
|
|
2362
2577
|
availableColumns: ["name", "amount"],
|
|
2363
2578
|
defaultVisibleColumns: ["name", "amount"],
|
|
2364
2579
|
hasFooter: true,
|
|
@@ -2367,7 +2582,7 @@ var dailySalesCacheConfig = {
|
|
|
2367
2582
|
};
|
|
2368
2583
|
|
|
2369
2584
|
// src/reports/dailySales/dailySalesDiscounts.ts
|
|
2370
|
-
var
|
|
2585
|
+
var FIELDS14 = {
|
|
2371
2586
|
discountName: {
|
|
2372
2587
|
type: "string",
|
|
2373
2588
|
columnKey: "discountName",
|
|
@@ -2385,7 +2600,7 @@ var DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS = [
|
|
|
2385
2600
|
"discountsAmount"
|
|
2386
2601
|
];
|
|
2387
2602
|
var dailySalesDiscountsConfig = {
|
|
2388
|
-
fields:
|
|
2603
|
+
fields: FIELDS14,
|
|
2389
2604
|
availableColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
|
|
2390
2605
|
defaultVisibleColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
|
|
2391
2606
|
hasFooter: true,
|
|
@@ -2394,7 +2609,7 @@ var dailySalesDiscountsConfig = {
|
|
|
2394
2609
|
};
|
|
2395
2610
|
|
|
2396
2611
|
// src/reports/dailySales/dailySalesPayments.ts
|
|
2397
|
-
var
|
|
2612
|
+
var FIELDS15 = {
|
|
2398
2613
|
paymentTypeName: {
|
|
2399
2614
|
type: "string",
|
|
2400
2615
|
size: FIRST_COLUMN_WIDTH,
|
|
@@ -2414,7 +2629,7 @@ var DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS = [
|
|
|
2414
2629
|
"totalSales"
|
|
2415
2630
|
];
|
|
2416
2631
|
var dailySalesPaymentsConfig = {
|
|
2417
|
-
fields:
|
|
2632
|
+
fields: FIELDS15,
|
|
2418
2633
|
availableColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
|
|
2419
2634
|
defaultVisibleColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
|
|
2420
2635
|
hasFooter: true,
|
|
@@ -2423,7 +2638,7 @@ var dailySalesPaymentsConfig = {
|
|
|
2423
2638
|
};
|
|
2424
2639
|
|
|
2425
2640
|
// src/reports/dailySales/dailySalesRefundsVoids.ts
|
|
2426
|
-
var
|
|
2641
|
+
var FIELDS16 = {
|
|
2427
2642
|
description: {
|
|
2428
2643
|
type: "string",
|
|
2429
2644
|
columnKey: "refundVoidDescription",
|
|
@@ -2441,7 +2656,7 @@ var DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS = [
|
|
|
2441
2656
|
"pctSales"
|
|
2442
2657
|
];
|
|
2443
2658
|
var dailySalesRefundsVoidsConfig = {
|
|
2444
|
-
fields:
|
|
2659
|
+
fields: FIELDS16,
|
|
2445
2660
|
availableColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
|
|
2446
2661
|
defaultVisibleColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
|
|
2447
2662
|
hasFooter: true,
|
|
@@ -2450,7 +2665,7 @@ var dailySalesRefundsVoidsConfig = {
|
|
|
2450
2665
|
};
|
|
2451
2666
|
|
|
2452
2667
|
// src/reports/dailySales/dailySalesTaxes.ts
|
|
2453
|
-
var
|
|
2668
|
+
var FIELDS17 = {
|
|
2454
2669
|
taxName: {
|
|
2455
2670
|
type: "string",
|
|
2456
2671
|
columnKey: "taxName",
|
|
@@ -2468,7 +2683,7 @@ var DAILY_SALES_TAXES_AVAILABLE_COLUMNS = [
|
|
|
2468
2683
|
"exemptSales"
|
|
2469
2684
|
];
|
|
2470
2685
|
var dailySalesTaxesConfig = {
|
|
2471
|
-
fields:
|
|
2686
|
+
fields: FIELDS17,
|
|
2472
2687
|
availableColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
|
|
2473
2688
|
defaultVisibleColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
|
|
2474
2689
|
hasFooter: true,
|
|
@@ -2477,7 +2692,7 @@ var dailySalesTaxesConfig = {
|
|
|
2477
2692
|
};
|
|
2478
2693
|
|
|
2479
2694
|
// src/reports/dailySales/dailySalesTrendsDayPart.ts
|
|
2480
|
-
var
|
|
2695
|
+
var FIELDS18 = {
|
|
2481
2696
|
groupById: { type: "string" },
|
|
2482
2697
|
groupByName: {
|
|
2483
2698
|
type: "string",
|
|
@@ -2516,7 +2731,7 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS = [
|
|
|
2516
2731
|
"salesAmountNet"
|
|
2517
2732
|
];
|
|
2518
2733
|
var dailySalesTrendsDayPartConfig = {
|
|
2519
|
-
fields:
|
|
2734
|
+
fields: FIELDS18,
|
|
2520
2735
|
availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
2521
2736
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
2522
2737
|
hasFooter: true,
|
|
@@ -2525,7 +2740,7 @@ var dailySalesTrendsDayPartConfig = {
|
|
|
2525
2740
|
};
|
|
2526
2741
|
|
|
2527
2742
|
// src/reports/dailySales/dailySalesTrendsOrderType.ts
|
|
2528
|
-
var
|
|
2743
|
+
var FIELDS19 = {
|
|
2529
2744
|
groupById: { type: "string" },
|
|
2530
2745
|
groupByName: {
|
|
2531
2746
|
columnKey: "orderType",
|
|
@@ -2564,7 +2779,7 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2 = [
|
|
|
2564
2779
|
"salesAmountNet"
|
|
2565
2780
|
];
|
|
2566
2781
|
var dailySalesTrendsOrderTypeConfig = {
|
|
2567
|
-
fields:
|
|
2782
|
+
fields: FIELDS19,
|
|
2568
2783
|
availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
|
|
2569
2784
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
|
|
2570
2785
|
hasFooter: true,
|
|
@@ -2583,6 +2798,7 @@ var Report = {
|
|
|
2583
2798
|
EMPLOYEE_TIMECARD: "employee-timecard",
|
|
2584
2799
|
EMPLOYEE_TIP: "employee-tip",
|
|
2585
2800
|
TIP_CASHOUT_RECONCILIATION: "tip-cashout-reconciliation",
|
|
2801
|
+
PAYROLL: "payroll",
|
|
2586
2802
|
SALES_BY_ITEM: "sales-by-item",
|
|
2587
2803
|
DAILY_SALES: "daily-sales",
|
|
2588
2804
|
DAILY_SALES_LIVE: "daily-sales-live"
|
|
@@ -2607,6 +2823,7 @@ var REPORT_CONFIG_MAP = {
|
|
|
2607
2823
|
"employee-timecard": employeeTimecardConfig,
|
|
2608
2824
|
"employee-tip": employeeTipConfig,
|
|
2609
2825
|
"tip-cashout-reconciliation": tipCashoutReconciliationConfig,
|
|
2826
|
+
payroll: payrollConfig,
|
|
2610
2827
|
"sales-by-item": salesByItemDetailConfig,
|
|
2611
2828
|
"daily-sales": DAILY_SALES_SECTION_CONFIGS,
|
|
2612
2829
|
"daily-sales-live": DAILY_SALES_SECTION_CONFIGS
|
|
@@ -2621,6 +2838,7 @@ var REPORT_DEFAULT_NAME_MAP = {
|
|
|
2621
2838
|
"employee-timecard": "Employee Timecard",
|
|
2622
2839
|
"employee-tip": "Employee Tip",
|
|
2623
2840
|
"tip-cashout-reconciliation": "Tip & Cashout Reconciliation",
|
|
2841
|
+
payroll: "Payroll",
|
|
2624
2842
|
"sales-by-item": "Sales by Item",
|
|
2625
2843
|
"daily-sales": "Daily Sales",
|
|
2626
2844
|
"daily-sales-live": "Daily Sales Live"
|
|
@@ -3389,6 +3607,51 @@ var COLUMN_REGISTRY = {
|
|
|
3389
3607
|
titleKey: "common.report-col.type",
|
|
3390
3608
|
shortTitleKey: "common.report-col.type.short",
|
|
3391
3609
|
infoTextKey: "common.report-col.type.info"
|
|
3610
|
+
},
|
|
3611
|
+
paidNormalHours: {
|
|
3612
|
+
titleKey: "common.report-col.paid-normal-hours",
|
|
3613
|
+
shortTitleKey: "common.report-col.paid-normal-hours.short",
|
|
3614
|
+
infoTextKey: "common.report-col.paid-normal-hours.info"
|
|
3615
|
+
},
|
|
3616
|
+
normalPay: {
|
|
3617
|
+
titleKey: "common.report-col.normal-pay",
|
|
3618
|
+
shortTitleKey: "common.report-col.normal-pay.short",
|
|
3619
|
+
infoTextKey: "common.report-col.normal-pay.info"
|
|
3620
|
+
},
|
|
3621
|
+
overtimePay: {
|
|
3622
|
+
titleKey: "common.report-col.overtime-pay",
|
|
3623
|
+
shortTitleKey: "common.report-col.overtime-pay.short",
|
|
3624
|
+
infoTextKey: "common.report-col.overtime-pay.info"
|
|
3625
|
+
},
|
|
3626
|
+
doubleOvertimePay: {
|
|
3627
|
+
titleKey: "common.report-col.double-overtime-pay",
|
|
3628
|
+
shortTitleKey: "common.report-col.double-overtime-pay.short",
|
|
3629
|
+
infoTextKey: "common.report-col.double-overtime-pay.info"
|
|
3630
|
+
},
|
|
3631
|
+
gratuity: {
|
|
3632
|
+
titleKey: "common.report-col.gratuity",
|
|
3633
|
+
shortTitleKey: "common.report-col.gratuity.short",
|
|
3634
|
+
infoTextKey: "common.report-col.gratuity.info"
|
|
3635
|
+
},
|
|
3636
|
+
tipPaidStatus: {
|
|
3637
|
+
titleKey: "common.report-col.tip-paid-status",
|
|
3638
|
+
shortTitleKey: "common.report-col.tip-paid-status.short",
|
|
3639
|
+
infoTextKey: "common.report-col.tip-paid-status.info"
|
|
3640
|
+
},
|
|
3641
|
+
totalPayments: {
|
|
3642
|
+
titleKey: "common.report-col.total-payments",
|
|
3643
|
+
shortTitleKey: "common.report-col.total-payments.short",
|
|
3644
|
+
infoTextKey: "common.report-col.total-payments.info"
|
|
3645
|
+
},
|
|
3646
|
+
minimumWageAdjustment: {
|
|
3647
|
+
titleKey: "common.report-col.minimum-wage-adjustment",
|
|
3648
|
+
shortTitleKey: "common.report-col.minimum-wage-adjustment.short",
|
|
3649
|
+
infoTextKey: "common.report-col.minimum-wage-adjustment.info"
|
|
3650
|
+
},
|
|
3651
|
+
totalPay: {
|
|
3652
|
+
titleKey: "common.report-col.total-pay",
|
|
3653
|
+
shortTitleKey: "common.report-col.total-pay.short",
|
|
3654
|
+
infoTextKey: "common.report-col.total-pay.info"
|
|
3392
3655
|
}
|
|
3393
3656
|
};
|
|
3394
3657
|
function getColumnMetadata(key) {
|
|
@@ -3396,6 +3659,9 @@ function getColumnMetadata(key) {
|
|
|
3396
3659
|
}
|
|
3397
3660
|
function getColumnExportHeaderLabel(colTitle, groupTitle) {
|
|
3398
3661
|
if (groupTitle) {
|
|
3662
|
+
if (groupTitle === colTitle) {
|
|
3663
|
+
return colTitle;
|
|
3664
|
+
}
|
|
3399
3665
|
return `${groupTitle}: ${colTitle}`;
|
|
3400
3666
|
}
|
|
3401
3667
|
return colTitle;
|
|
@@ -3844,6 +4110,7 @@ var formatFieldValue = (value, type, localeOptions, fullRecord, fieldConfig = DE
|
|
|
3844
4110
|
isNumericType,
|
|
3845
4111
|
itemTaxConfig,
|
|
3846
4112
|
modifierMixConfig,
|
|
4113
|
+
payrollConfig,
|
|
3847
4114
|
productMixConfig,
|
|
3848
4115
|
resolveTranslate,
|
|
3849
4116
|
salesByItemDetailConfig,
|