@harbortouch/skytab-analytics-report-utils 0.35.0 → 0.37.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.
@@ -977,6 +977,33 @@ var enUS = {
977
977
  "common.report-col.type": false,
978
978
  "common.report-col.type.short": false,
979
979
  "common.report-col.type.info": false,
980
+ "common.report-col.paid-normal-hours": false,
981
+ "common.report-col.paid-normal-hours.short": false,
982
+ "common.report-col.paid-normal-hours.info": false,
983
+ "common.report-col.normal-pay": false,
984
+ "common.report-col.normal-pay.short": false,
985
+ "common.report-col.normal-pay.info": false,
986
+ "common.report-col.overtime-pay": false,
987
+ "common.report-col.overtime-pay.short": false,
988
+ "common.report-col.overtime-pay.info": false,
989
+ "common.report-col.double-overtime-pay": false,
990
+ "common.report-col.double-overtime-pay.short": false,
991
+ "common.report-col.double-overtime-pay.info": false,
992
+ "common.report-col.gratuity": false,
993
+ "common.report-col.gratuity.short": false,
994
+ "common.report-col.gratuity.info": false,
995
+ "common.report-col.tip-paid-status": false,
996
+ "common.report-col.tip-paid-status.short": false,
997
+ "common.report-col.tip-paid-status.info": false,
998
+ "common.report-col.total-payments": false,
999
+ "common.report-col.total-payments.short": false,
1000
+ "common.report-col.total-payments.info": false,
1001
+ "common.report-col.minimum-wage-adjustment": false,
1002
+ "common.report-col.minimum-wage-adjustment.short": false,
1003
+ "common.report-col.minimum-wage-adjustment.info": false,
1004
+ "common.report-col.total-pay": false,
1005
+ "common.report-col.total-pay.short": false,
1006
+ "common.report-col.total-pay.info": false,
980
1007
  "common.report-section.revenue-class": false,
981
1008
  "common.report-section.payments": false,
982
1009
  "common.report-section.cash": false,
@@ -1472,6 +1499,33 @@ var enUS2 = {
1472
1499
  "common.report-col.type": false,
1473
1500
  "common.report-col.type.short": false,
1474
1501
  "common.report-col.type.info": false,
1502
+ "common.report-col.paid-normal-hours": false,
1503
+ "common.report-col.paid-normal-hours.short": false,
1504
+ "common.report-col.paid-normal-hours.info": false,
1505
+ "common.report-col.normal-pay": false,
1506
+ "common.report-col.normal-pay.short": false,
1507
+ "common.report-col.normal-pay.info": false,
1508
+ "common.report-col.overtime-pay": false,
1509
+ "common.report-col.overtime-pay.short": false,
1510
+ "common.report-col.overtime-pay.info": false,
1511
+ "common.report-col.double-overtime-pay": false,
1512
+ "common.report-col.double-overtime-pay.short": false,
1513
+ "common.report-col.double-overtime-pay.info": false,
1514
+ "common.report-col.gratuity": false,
1515
+ "common.report-col.gratuity.short": false,
1516
+ "common.report-col.gratuity.info": false,
1517
+ "common.report-col.tip-paid-status": false,
1518
+ "common.report-col.tip-paid-status.short": false,
1519
+ "common.report-col.tip-paid-status.info": false,
1520
+ "common.report-col.total-payments": false,
1521
+ "common.report-col.total-payments.short": false,
1522
+ "common.report-col.total-payments.info": false,
1523
+ "common.report-col.minimum-wage-adjustment": false,
1524
+ "common.report-col.minimum-wage-adjustment.short": false,
1525
+ "common.report-col.minimum-wage-adjustment.info": false,
1526
+ "common.report-col.total-pay": false,
1527
+ "common.report-col.total-pay.short": false,
1528
+ "common.report-col.total-pay.info": false,
1475
1529
  "common.report-section.revenue-class": false,
1476
1530
  "common.report-section.payments": false,
1477
1531
  "common.report-section.cash": false,
@@ -1967,6 +2021,33 @@ var enUS3 = {
1967
2021
  "common.report-col.type": "Type",
1968
2022
  "common.report-col.type.short": "Type",
1969
2023
  "common.report-col.type.info": " ",
2024
+ "common.report-col.paid-normal-hours": "Paid Normal Hours",
2025
+ "common.report-col.paid-normal-hours.short": "Norm Hrs",
2026
+ "common.report-col.paid-normal-hours.info": "Total regular hours paid for the period",
2027
+ "common.report-col.normal-pay": "Normal Pay",
2028
+ "common.report-col.normal-pay.short": "Norm Pay",
2029
+ "common.report-col.normal-pay.info": "Wages earned for regular hours worked",
2030
+ "common.report-col.overtime-pay": "Overtime Pay",
2031
+ "common.report-col.overtime-pay.short": "OT Pay",
2032
+ "common.report-col.overtime-pay.info": "Wages earned for overtime hours worked",
2033
+ "common.report-col.double-overtime-pay": "Double Overtime Pay",
2034
+ "common.report-col.double-overtime-pay.short": "DT Pay",
2035
+ "common.report-col.double-overtime-pay.info": "Wages earned for double-overtime hours worked",
2036
+ "common.report-col.gratuity": "Gratuity",
2037
+ "common.report-col.gratuity.short": "Gratuity",
2038
+ "common.report-col.gratuity.info": "Gratuity amounts included in the payroll period",
2039
+ "common.report-col.tip-paid-status": "Tip Paid Status",
2040
+ "common.report-col.tip-paid-status.short": "Tip Status",
2041
+ "common.report-col.tip-paid-status.info": "Indicates whether tips were paid out daily or deferred to payroll",
2042
+ "common.report-col.total-payments": "Total Payments",
2043
+ "common.report-col.total-payments.short": "Total Pmts",
2044
+ "common.report-col.total-payments.info": "Total payments collected for the payroll period",
2045
+ "common.report-col.minimum-wage-adjustment": "Minimum Wage Adjustment",
2046
+ "common.report-col.minimum-wage-adjustment.short": "Min Wage Adj",
2047
+ "common.report-col.minimum-wage-adjustment.info": "Adjustment applied to meet minimum wage requirements",
2048
+ "common.report-col.total-pay": "Total Pay",
2049
+ "common.report-col.total-pay.short": "Total Pay",
2050
+ "common.report-col.total-pay.info": "Total compensation including wages, overtime, and adjustments",
1970
2051
  "common.report-section.revenue-class": "Sales by Revenue Class",
1971
2052
  "common.report-section.payments": "Payments",
1972
2053
  "common.report-section.cash": "Expected Closeout Cash",
@@ -2238,8 +2319,68 @@ var tipCashoutReconciliationConfig = {
2238
2319
  hasFooter: true
2239
2320
  };
2240
2321
 
2241
- // src/reports/dailySales/dailySales.ts
2322
+ // src/reports/payroll.ts
2242
2323
  var FIELDS11 = {
2324
+ groupById: { type: "string" },
2325
+ groupByName: { type: "string" },
2326
+ rowType: { type: "string" },
2327
+ locationName: { type: "string", size: 220, columnKey: "locationName" },
2328
+ employeeName: { type: "string", size: 220, columnKey: "employeeName" },
2329
+ empId: {
2330
+ type: "string",
2331
+ size: 160,
2332
+ columnKey: "employeeId",
2333
+ footerCalculation: { type: "label", label: "table.total" }
2334
+ },
2335
+ payrollId: { type: "string", size: 160, columnKey: "payrollId" },
2336
+ jobName: { type: "string", size: 160, columnKey: "employeeJob" },
2337
+ paidNormalHours: { type: "number", columnKey: "paidNormalHours", footerCalculation: { type: "sum" } },
2338
+ normalPay: { type: "money", columnKey: "normalPay", footerCalculation: { type: "sum" } },
2339
+ overtimePay: { type: "money", columnKey: "overtimePay", footerCalculation: { type: "sum" } },
2340
+ doubleOvertimePay: { type: "money", columnKey: "doubleOvertimePay", footerCalculation: { type: "sum" } },
2341
+ grossTips: { type: "money", columnKey: "grossTips", footerCalculation: { type: "sum" } },
2342
+ gratuity: { type: "money", columnKey: "gratuity", footerCalculation: { type: "sum" } },
2343
+ totalTips: { type: "money", columnKey: "totalTips", footerCalculation: { type: "sum" } },
2344
+ tipReduction: { type: "money", columnKey: "tipReduction", footerCalculation: { type: "sum" } },
2345
+ tipShare: { type: "money", columnKey: "tipShare", footerCalculation: { type: "sum" } },
2346
+ netTips: { type: "money", columnKey: "netTips", footerCalculation: { type: "sum" } },
2347
+ declaredTips: { type: "money", columnKey: "declaredTips", footerCalculation: { type: "sum" } },
2348
+ tipPaidStatus: { type: "string", size: 160, columnKey: "tipPaidStatus" },
2349
+ totalPayments: { type: "money", columnKey: "totalPayments", footerCalculation: { type: "sum" } },
2350
+ minimumWageAdjustment: { type: "money", columnKey: "minimumWageAdjustment", footerCalculation: { type: "sum" } },
2351
+ totalPay: { type: "money", columnKey: "totalPay", footerCalculation: { type: "sum" } }
2352
+ };
2353
+ var VISIBLE_COLUMNS3 = [
2354
+ "employeeName",
2355
+ "payrollId",
2356
+ "locationName",
2357
+ "jobName",
2358
+ "paidNormalHours",
2359
+ "normalPay",
2360
+ "overtimePay",
2361
+ "doubleOvertimePay",
2362
+ "grossTips",
2363
+ "gratuity",
2364
+ "totalTips",
2365
+ "tipReduction",
2366
+ "tipShare",
2367
+ "netTips",
2368
+ "declaredTips",
2369
+ "tipPaidStatus",
2370
+ "totalPayments",
2371
+ "minimumWageAdjustment",
2372
+ "totalPay"
2373
+ ];
2374
+ var AVAILABLE_COLUMNS3 = ["groupById", "groupByName", "rowType", "empId", ...VISIBLE_COLUMNS3];
2375
+ var payrollConfig = {
2376
+ fields: FIELDS11,
2377
+ availableColumns: AVAILABLE_COLUMNS3,
2378
+ defaultVisibleColumns: VISIBLE_COLUMNS3,
2379
+ hasFooter: true
2380
+ };
2381
+
2382
+ // src/reports/dailySales/dailySales.ts
2383
+ var FIELDS12 = {
2243
2384
  groupById: { type: "string" },
2244
2385
  groupByName: {
2245
2386
  type: "string",
@@ -2264,7 +2405,7 @@ var DAILY_SALES_AVAILABLE_COLUMNS = [
2264
2405
  "salesMixPct"
2265
2406
  ];
2266
2407
  var dailySalesConfig = {
2267
- fields: FIELDS11,
2408
+ fields: FIELDS12,
2268
2409
  availableColumns: DAILY_SALES_AVAILABLE_COLUMNS,
2269
2410
  defaultVisibleColumns: DAILY_SALES_AVAILABLE_COLUMNS,
2270
2411
  hasFooter: true,
@@ -2274,7 +2415,7 @@ var dailySalesConfig = {
2274
2415
  };
2275
2416
 
2276
2417
  // src/reports/dailySales/dailySalesCache.ts
2277
- var FIELDS12 = {
2418
+ var FIELDS13 = {
2278
2419
  name: {
2279
2420
  type: "string",
2280
2421
  columnKey: "type",
@@ -2284,7 +2425,7 @@ var FIELDS12 = {
2284
2425
  amount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } }
2285
2426
  };
2286
2427
  var dailySalesCacheConfig = {
2287
- fields: FIELDS12,
2428
+ fields: FIELDS13,
2288
2429
  availableColumns: ["name", "amount"],
2289
2430
  defaultVisibleColumns: ["name", "amount"],
2290
2431
  hasFooter: true,
@@ -2293,7 +2434,7 @@ var dailySalesCacheConfig = {
2293
2434
  };
2294
2435
 
2295
2436
  // src/reports/dailySales/dailySalesDiscounts.ts
2296
- var FIELDS13 = {
2437
+ var FIELDS14 = {
2297
2438
  discountName: {
2298
2439
  type: "string",
2299
2440
  columnKey: "discountName",
@@ -2311,7 +2452,7 @@ var DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS = [
2311
2452
  "discountsAmount"
2312
2453
  ];
2313
2454
  var dailySalesDiscountsConfig = {
2314
- fields: FIELDS13,
2455
+ fields: FIELDS14,
2315
2456
  availableColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
2316
2457
  defaultVisibleColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
2317
2458
  hasFooter: true,
@@ -2320,7 +2461,7 @@ var dailySalesDiscountsConfig = {
2320
2461
  };
2321
2462
 
2322
2463
  // src/reports/dailySales/dailySalesPayments.ts
2323
- var FIELDS14 = {
2464
+ var FIELDS15 = {
2324
2465
  paymentTypeName: {
2325
2466
  type: "string",
2326
2467
  size: FIRST_COLUMN_WIDTH,
@@ -2340,7 +2481,7 @@ var DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS = [
2340
2481
  "totalSales"
2341
2482
  ];
2342
2483
  var dailySalesPaymentsConfig = {
2343
- fields: FIELDS14,
2484
+ fields: FIELDS15,
2344
2485
  availableColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
2345
2486
  defaultVisibleColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
2346
2487
  hasFooter: true,
@@ -2349,7 +2490,7 @@ var dailySalesPaymentsConfig = {
2349
2490
  };
2350
2491
 
2351
2492
  // src/reports/dailySales/dailySalesRefundsVoids.ts
2352
- var FIELDS15 = {
2493
+ var FIELDS16 = {
2353
2494
  description: {
2354
2495
  type: "string",
2355
2496
  columnKey: "refundVoidDescription",
@@ -2367,7 +2508,7 @@ var DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS = [
2367
2508
  "pctSales"
2368
2509
  ];
2369
2510
  var dailySalesRefundsVoidsConfig = {
2370
- fields: FIELDS15,
2511
+ fields: FIELDS16,
2371
2512
  availableColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
2372
2513
  defaultVisibleColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
2373
2514
  hasFooter: true,
@@ -2376,7 +2517,7 @@ var dailySalesRefundsVoidsConfig = {
2376
2517
  };
2377
2518
 
2378
2519
  // src/reports/dailySales/dailySalesTaxes.ts
2379
- var FIELDS16 = {
2520
+ var FIELDS17 = {
2380
2521
  taxName: {
2381
2522
  type: "string",
2382
2523
  columnKey: "taxName",
@@ -2394,7 +2535,7 @@ var DAILY_SALES_TAXES_AVAILABLE_COLUMNS = [
2394
2535
  "exemptSales"
2395
2536
  ];
2396
2537
  var dailySalesTaxesConfig = {
2397
- fields: FIELDS16,
2538
+ fields: FIELDS17,
2398
2539
  availableColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
2399
2540
  defaultVisibleColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
2400
2541
  hasFooter: true,
@@ -2403,7 +2544,7 @@ var dailySalesTaxesConfig = {
2403
2544
  };
2404
2545
 
2405
2546
  // src/reports/dailySales/dailySalesTrendsDayPart.ts
2406
- var FIELDS17 = {
2547
+ var FIELDS18 = {
2407
2548
  groupById: { type: "string" },
2408
2549
  groupByName: {
2409
2550
  type: "string",
@@ -2442,17 +2583,16 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS = [
2442
2583
  "salesAmountNet"
2443
2584
  ];
2444
2585
  var dailySalesTrendsDayPartConfig = {
2445
- fields: FIELDS17,
2586
+ fields: FIELDS18,
2446
2587
  availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
2447
2588
  defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
2448
2589
  hasFooter: true,
2449
2590
  dataAccessKey: "trendsByDayPart",
2450
- sectionName: "common.report-section.sales-by-day-part",
2451
- extraFooterFields: ["salesAmountNet"]
2591
+ sectionName: "common.report-section.sales-by-day-part"
2452
2592
  };
2453
2593
 
2454
2594
  // src/reports/dailySales/dailySalesTrendsOrderType.ts
2455
- var FIELDS18 = {
2595
+ var FIELDS19 = {
2456
2596
  groupById: { type: "string" },
2457
2597
  groupByName: {
2458
2598
  columnKey: "orderType",
@@ -2491,13 +2631,12 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2 = [
2491
2631
  "salesAmountNet"
2492
2632
  ];
2493
2633
  var dailySalesTrendsOrderTypeConfig = {
2494
- fields: FIELDS18,
2634
+ fields: FIELDS19,
2495
2635
  availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
2496
2636
  defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
2497
2637
  hasFooter: true,
2498
2638
  dataAccessKey: "trendsByOrderType",
2499
- sectionName: "common.report-section.sales-by-order-type",
2500
- extraFooterFields: ["salesAmountNet"]
2639
+ sectionName: "common.report-section.sales-by-order-type"
2501
2640
  };
2502
2641
 
2503
2642
  // src/report.ts
@@ -2511,6 +2650,7 @@ var Report = {
2511
2650
  EMPLOYEE_TIMECARD: "employee-timecard",
2512
2651
  EMPLOYEE_TIP: "employee-tip",
2513
2652
  TIP_CASHOUT_RECONCILIATION: "tip-cashout-reconciliation",
2653
+ PAYROLL: "payroll",
2514
2654
  SALES_BY_ITEM: "sales-by-item",
2515
2655
  DAILY_SALES: "daily-sales",
2516
2656
  DAILY_SALES_LIVE: "daily-sales-live"
@@ -2535,6 +2675,7 @@ var REPORT_CONFIG_MAP = {
2535
2675
  "employee-timecard": employeeTimecardConfig,
2536
2676
  "employee-tip": employeeTipConfig,
2537
2677
  "tip-cashout-reconciliation": tipCashoutReconciliationConfig,
2678
+ payroll: payrollConfig,
2538
2679
  "sales-by-item": salesByItemDetailConfig,
2539
2680
  "daily-sales": DAILY_SALES_SECTION_CONFIGS,
2540
2681
  "daily-sales-live": DAILY_SALES_SECTION_CONFIGS
@@ -2549,6 +2690,7 @@ var REPORT_DEFAULT_NAME_MAP = {
2549
2690
  "employee-timecard": "Employee Timecard",
2550
2691
  "employee-tip": "Employee Tip",
2551
2692
  "tip-cashout-reconciliation": "Tip & Cashout Reconciliation",
2693
+ payroll: "Payroll",
2552
2694
  "sales-by-item": "Sales by Item",
2553
2695
  "daily-sales": "Daily Sales",
2554
2696
  "daily-sales-live": "Daily Sales Live"
@@ -3317,6 +3459,51 @@ var COLUMN_REGISTRY = {
3317
3459
  titleKey: "common.report-col.type",
3318
3460
  shortTitleKey: "common.report-col.type.short",
3319
3461
  infoTextKey: "common.report-col.type.info"
3462
+ },
3463
+ paidNormalHours: {
3464
+ titleKey: "common.report-col.paid-normal-hours",
3465
+ shortTitleKey: "common.report-col.paid-normal-hours.short",
3466
+ infoTextKey: "common.report-col.paid-normal-hours.info"
3467
+ },
3468
+ normalPay: {
3469
+ titleKey: "common.report-col.normal-pay",
3470
+ shortTitleKey: "common.report-col.normal-pay.short",
3471
+ infoTextKey: "common.report-col.normal-pay.info"
3472
+ },
3473
+ overtimePay: {
3474
+ titleKey: "common.report-col.overtime-pay",
3475
+ shortTitleKey: "common.report-col.overtime-pay.short",
3476
+ infoTextKey: "common.report-col.overtime-pay.info"
3477
+ },
3478
+ doubleOvertimePay: {
3479
+ titleKey: "common.report-col.double-overtime-pay",
3480
+ shortTitleKey: "common.report-col.double-overtime-pay.short",
3481
+ infoTextKey: "common.report-col.double-overtime-pay.info"
3482
+ },
3483
+ gratuity: {
3484
+ titleKey: "common.report-col.gratuity",
3485
+ shortTitleKey: "common.report-col.gratuity.short",
3486
+ infoTextKey: "common.report-col.gratuity.info"
3487
+ },
3488
+ tipPaidStatus: {
3489
+ titleKey: "common.report-col.tip-paid-status",
3490
+ shortTitleKey: "common.report-col.tip-paid-status.short",
3491
+ infoTextKey: "common.report-col.tip-paid-status.info"
3492
+ },
3493
+ totalPayments: {
3494
+ titleKey: "common.report-col.total-payments",
3495
+ shortTitleKey: "common.report-col.total-payments.short",
3496
+ infoTextKey: "common.report-col.total-payments.info"
3497
+ },
3498
+ minimumWageAdjustment: {
3499
+ titleKey: "common.report-col.minimum-wage-adjustment",
3500
+ shortTitleKey: "common.report-col.minimum-wage-adjustment.short",
3501
+ infoTextKey: "common.report-col.minimum-wage-adjustment.info"
3502
+ },
3503
+ totalPay: {
3504
+ titleKey: "common.report-col.total-pay",
3505
+ shortTitleKey: "common.report-col.total-pay.short",
3506
+ infoTextKey: "common.report-col.total-pay.info"
3320
3507
  }
3321
3508
  };
3322
3509
  function getColumnMetadata(key) {
@@ -3553,6 +3740,7 @@ export {
3553
3740
  employeeTimecardConfig,
3554
3741
  employeeTipConfig,
3555
3742
  tipCashoutReconciliationConfig,
3743
+ payrollConfig,
3556
3744
  dailySalesConfig,
3557
3745
  dailySalesCacheConfig,
3558
3746
  dailySalesDiscountsConfig,