@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.
@@ -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",
@@ -962,6 +989,33 @@ var enUS2 = {
962
989
  "common.report-col.type": false,
963
990
  "common.report-col.type.short": false,
964
991
  "common.report-col.type.info": false,
992
+ "common.report-col.paid-normal-hours": false,
993
+ "common.report-col.paid-normal-hours.short": false,
994
+ "common.report-col.paid-normal-hours.info": false,
995
+ "common.report-col.normal-pay": false,
996
+ "common.report-col.normal-pay.short": false,
997
+ "common.report-col.normal-pay.info": false,
998
+ "common.report-col.overtime-pay": false,
999
+ "common.report-col.overtime-pay.short": false,
1000
+ "common.report-col.overtime-pay.info": false,
1001
+ "common.report-col.double-overtime-pay": false,
1002
+ "common.report-col.double-overtime-pay.short": false,
1003
+ "common.report-col.double-overtime-pay.info": false,
1004
+ "common.report-col.gratuity": false,
1005
+ "common.report-col.gratuity.short": false,
1006
+ "common.report-col.gratuity.info": false,
1007
+ "common.report-col.tip-paid-status": false,
1008
+ "common.report-col.tip-paid-status.short": false,
1009
+ "common.report-col.tip-paid-status.info": false,
1010
+ "common.report-col.total-payments": false,
1011
+ "common.report-col.total-payments.short": false,
1012
+ "common.report-col.total-payments.info": false,
1013
+ "common.report-col.minimum-wage-adjustment": false,
1014
+ "common.report-col.minimum-wage-adjustment.short": false,
1015
+ "common.report-col.minimum-wage-adjustment.info": false,
1016
+ "common.report-col.total-pay": false,
1017
+ "common.report-col.total-pay.short": false,
1018
+ "common.report-col.total-pay.info": false,
965
1019
  "common.report-section.revenue-class": false,
966
1020
  "common.report-section.payments": false,
967
1021
  "common.report-section.cash": false,
@@ -1457,6 +1511,33 @@ var enUS3 = {
1457
1511
  "common.report-col.type": false,
1458
1512
  "common.report-col.type.short": false,
1459
1513
  "common.report-col.type.info": false,
1514
+ "common.report-col.paid-normal-hours": false,
1515
+ "common.report-col.paid-normal-hours.short": false,
1516
+ "common.report-col.paid-normal-hours.info": false,
1517
+ "common.report-col.normal-pay": false,
1518
+ "common.report-col.normal-pay.short": false,
1519
+ "common.report-col.normal-pay.info": false,
1520
+ "common.report-col.overtime-pay": false,
1521
+ "common.report-col.overtime-pay.short": false,
1522
+ "common.report-col.overtime-pay.info": false,
1523
+ "common.report-col.double-overtime-pay": false,
1524
+ "common.report-col.double-overtime-pay.short": false,
1525
+ "common.report-col.double-overtime-pay.info": false,
1526
+ "common.report-col.gratuity": false,
1527
+ "common.report-col.gratuity.short": false,
1528
+ "common.report-col.gratuity.info": false,
1529
+ "common.report-col.tip-paid-status": false,
1530
+ "common.report-col.tip-paid-status.short": false,
1531
+ "common.report-col.tip-paid-status.info": false,
1532
+ "common.report-col.total-payments": false,
1533
+ "common.report-col.total-payments.short": false,
1534
+ "common.report-col.total-payments.info": false,
1535
+ "common.report-col.minimum-wage-adjustment": false,
1536
+ "common.report-col.minimum-wage-adjustment.short": false,
1537
+ "common.report-col.minimum-wage-adjustment.info": false,
1538
+ "common.report-col.total-pay": false,
1539
+ "common.report-col.total-pay.short": false,
1540
+ "common.report-col.total-pay.info": false,
1460
1541
  "common.report-section.revenue-class": false,
1461
1542
  "common.report-section.payments": false,
1462
1543
  "common.report-section.cash": false,
@@ -2404,8 +2485,68 @@ var tipCashoutReconciliationConfig = {
2404
2485
  hasFooter: true
2405
2486
  };
2406
2487
 
2407
- // src/reports/dailySales/dailySales.ts
2488
+ // src/reports/payroll.ts
2408
2489
  var FIELDS11 = {
2490
+ groupById: { type: "string" },
2491
+ groupByName: { type: "string" },
2492
+ rowType: { type: "string" },
2493
+ locationName: { type: "string", size: 220, columnKey: "locationName" },
2494
+ employeeName: { type: "string", size: 220, columnKey: "employeeName" },
2495
+ empId: {
2496
+ type: "string",
2497
+ size: 160,
2498
+ columnKey: "employeeId",
2499
+ footerCalculation: { type: "label", label: "table.total" }
2500
+ },
2501
+ payrollId: { type: "string", size: 160, columnKey: "payrollId" },
2502
+ jobName: { type: "string", size: 160, columnKey: "employeeJob" },
2503
+ paidNormalHours: { type: "number", columnKey: "paidNormalHours", footerCalculation: { type: "sum" } },
2504
+ normalPay: { type: "money", columnKey: "normalPay", footerCalculation: { type: "sum" } },
2505
+ overtimePay: { type: "money", columnKey: "overtimePay", footerCalculation: { type: "sum" } },
2506
+ doubleOvertimePay: { type: "money", columnKey: "doubleOvertimePay", footerCalculation: { type: "sum" } },
2507
+ grossTips: { type: "money", columnKey: "grossTips", footerCalculation: { type: "sum" } },
2508
+ gratuity: { type: "money", columnKey: "gratuity", footerCalculation: { type: "sum" } },
2509
+ totalTips: { type: "money", columnKey: "totalTips", footerCalculation: { type: "sum" } },
2510
+ tipReduction: { type: "money", columnKey: "tipReduction", footerCalculation: { type: "sum" } },
2511
+ tipShare: { type: "money", columnKey: "tipShare", footerCalculation: { type: "sum" } },
2512
+ netTips: { type: "money", columnKey: "netTips", footerCalculation: { type: "sum" } },
2513
+ declaredTips: { type: "money", columnKey: "declaredTips", footerCalculation: { type: "sum" } },
2514
+ tipPaidStatus: { type: "string", size: 160, columnKey: "tipPaidStatus" },
2515
+ totalPayments: { type: "money", columnKey: "totalPayments", footerCalculation: { type: "sum" } },
2516
+ minimumWageAdjustment: { type: "money", columnKey: "minimumWageAdjustment", footerCalculation: { type: "sum" } },
2517
+ totalPay: { type: "money", columnKey: "totalPay", footerCalculation: { type: "sum" } }
2518
+ };
2519
+ var VISIBLE_COLUMNS3 = [
2520
+ "employeeName",
2521
+ "payrollId",
2522
+ "locationName",
2523
+ "jobName",
2524
+ "paidNormalHours",
2525
+ "normalPay",
2526
+ "overtimePay",
2527
+ "doubleOvertimePay",
2528
+ "grossTips",
2529
+ "gratuity",
2530
+ "totalTips",
2531
+ "tipReduction",
2532
+ "tipShare",
2533
+ "netTips",
2534
+ "declaredTips",
2535
+ "tipPaidStatus",
2536
+ "totalPayments",
2537
+ "minimumWageAdjustment",
2538
+ "totalPay"
2539
+ ];
2540
+ var AVAILABLE_COLUMNS3 = ["groupById", "groupByName", "rowType", "empId", ...VISIBLE_COLUMNS3];
2541
+ var payrollConfig = {
2542
+ fields: FIELDS11,
2543
+ availableColumns: AVAILABLE_COLUMNS3,
2544
+ defaultVisibleColumns: VISIBLE_COLUMNS3,
2545
+ hasFooter: true
2546
+ };
2547
+
2548
+ // src/reports/dailySales/dailySales.ts
2549
+ var FIELDS12 = {
2409
2550
  groupById: { type: "string" },
2410
2551
  groupByName: {
2411
2552
  type: "string",
@@ -2430,7 +2571,7 @@ var DAILY_SALES_AVAILABLE_COLUMNS = [
2430
2571
  "salesMixPct"
2431
2572
  ];
2432
2573
  var dailySalesConfig = {
2433
- fields: FIELDS11,
2574
+ fields: FIELDS12,
2434
2575
  availableColumns: DAILY_SALES_AVAILABLE_COLUMNS,
2435
2576
  defaultVisibleColumns: DAILY_SALES_AVAILABLE_COLUMNS,
2436
2577
  hasFooter: true,
@@ -2440,7 +2581,7 @@ var dailySalesConfig = {
2440
2581
  };
2441
2582
 
2442
2583
  // src/reports/dailySales/dailySalesCache.ts
2443
- var FIELDS12 = {
2584
+ var FIELDS13 = {
2444
2585
  name: {
2445
2586
  type: "string",
2446
2587
  columnKey: "type",
@@ -2450,7 +2591,7 @@ var FIELDS12 = {
2450
2591
  amount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } }
2451
2592
  };
2452
2593
  var dailySalesCacheConfig = {
2453
- fields: FIELDS12,
2594
+ fields: FIELDS13,
2454
2595
  availableColumns: ["name", "amount"],
2455
2596
  defaultVisibleColumns: ["name", "amount"],
2456
2597
  hasFooter: true,
@@ -2459,7 +2600,7 @@ var dailySalesCacheConfig = {
2459
2600
  };
2460
2601
 
2461
2602
  // src/reports/dailySales/dailySalesDiscounts.ts
2462
- var FIELDS13 = {
2603
+ var FIELDS14 = {
2463
2604
  discountName: {
2464
2605
  type: "string",
2465
2606
  columnKey: "discountName",
@@ -2477,7 +2618,7 @@ var DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS = [
2477
2618
  "discountsAmount"
2478
2619
  ];
2479
2620
  var dailySalesDiscountsConfig = {
2480
- fields: FIELDS13,
2621
+ fields: FIELDS14,
2481
2622
  availableColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
2482
2623
  defaultVisibleColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
2483
2624
  hasFooter: true,
@@ -2486,7 +2627,7 @@ var dailySalesDiscountsConfig = {
2486
2627
  };
2487
2628
 
2488
2629
  // src/reports/dailySales/dailySalesPayments.ts
2489
- var FIELDS14 = {
2630
+ var FIELDS15 = {
2490
2631
  paymentTypeName: {
2491
2632
  type: "string",
2492
2633
  size: FIRST_COLUMN_WIDTH,
@@ -2506,7 +2647,7 @@ var DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS = [
2506
2647
  "totalSales"
2507
2648
  ];
2508
2649
  var dailySalesPaymentsConfig = {
2509
- fields: FIELDS14,
2650
+ fields: FIELDS15,
2510
2651
  availableColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
2511
2652
  defaultVisibleColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
2512
2653
  hasFooter: true,
@@ -2515,7 +2656,7 @@ var dailySalesPaymentsConfig = {
2515
2656
  };
2516
2657
 
2517
2658
  // src/reports/dailySales/dailySalesRefundsVoids.ts
2518
- var FIELDS15 = {
2659
+ var FIELDS16 = {
2519
2660
  description: {
2520
2661
  type: "string",
2521
2662
  columnKey: "refundVoidDescription",
@@ -2533,7 +2674,7 @@ var DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS = [
2533
2674
  "pctSales"
2534
2675
  ];
2535
2676
  var dailySalesRefundsVoidsConfig = {
2536
- fields: FIELDS15,
2677
+ fields: FIELDS16,
2537
2678
  availableColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
2538
2679
  defaultVisibleColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
2539
2680
  hasFooter: true,
@@ -2542,7 +2683,7 @@ var dailySalesRefundsVoidsConfig = {
2542
2683
  };
2543
2684
 
2544
2685
  // src/reports/dailySales/dailySalesTaxes.ts
2545
- var FIELDS16 = {
2686
+ var FIELDS17 = {
2546
2687
  taxName: {
2547
2688
  type: "string",
2548
2689
  columnKey: "taxName",
@@ -2560,7 +2701,7 @@ var DAILY_SALES_TAXES_AVAILABLE_COLUMNS = [
2560
2701
  "exemptSales"
2561
2702
  ];
2562
2703
  var dailySalesTaxesConfig = {
2563
- fields: FIELDS16,
2704
+ fields: FIELDS17,
2564
2705
  availableColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
2565
2706
  defaultVisibleColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
2566
2707
  hasFooter: true,
@@ -2569,7 +2710,7 @@ var dailySalesTaxesConfig = {
2569
2710
  };
2570
2711
 
2571
2712
  // src/reports/dailySales/dailySalesTrendsDayPart.ts
2572
- var FIELDS17 = {
2713
+ var FIELDS18 = {
2573
2714
  groupById: { type: "string" },
2574
2715
  groupByName: {
2575
2716
  type: "string",
@@ -2608,17 +2749,16 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS = [
2608
2749
  "salesAmountNet"
2609
2750
  ];
2610
2751
  var dailySalesTrendsDayPartConfig = {
2611
- fields: FIELDS17,
2752
+ fields: FIELDS18,
2612
2753
  availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
2613
2754
  defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
2614
2755
  hasFooter: true,
2615
2756
  dataAccessKey: "trendsByDayPart",
2616
- sectionName: "common.report-section.sales-by-day-part",
2617
- extraFooterFields: ["salesAmountNet"]
2757
+ sectionName: "common.report-section.sales-by-day-part"
2618
2758
  };
2619
2759
 
2620
2760
  // src/reports/dailySales/dailySalesTrendsOrderType.ts
2621
- var FIELDS18 = {
2761
+ var FIELDS19 = {
2622
2762
  groupById: { type: "string" },
2623
2763
  groupByName: {
2624
2764
  columnKey: "orderType",
@@ -2657,13 +2797,12 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2 = [
2657
2797
  "salesAmountNet"
2658
2798
  ];
2659
2799
  var dailySalesTrendsOrderTypeConfig = {
2660
- fields: FIELDS18,
2800
+ fields: FIELDS19,
2661
2801
  availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
2662
2802
  defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
2663
2803
  hasFooter: true,
2664
2804
  dataAccessKey: "trendsByOrderType",
2665
- sectionName: "common.report-section.sales-by-order-type",
2666
- extraFooterFields: ["salesAmountNet"]
2805
+ sectionName: "common.report-section.sales-by-order-type"
2667
2806
  };
2668
2807
 
2669
2808
  // src/report.ts
@@ -2687,6 +2826,7 @@ var REPORT_CONFIG_MAP = {
2687
2826
  "employee-timecard": employeeTimecardConfig,
2688
2827
  "employee-tip": employeeTipConfig,
2689
2828
  "tip-cashout-reconciliation": tipCashoutReconciliationConfig,
2829
+ payroll: payrollConfig,
2690
2830
  "sales-by-item": salesByItemDetailConfig,
2691
2831
  "daily-sales": DAILY_SALES_SECTION_CONFIGS,
2692
2832
  "daily-sales-live": DAILY_SALES_SECTION_CONFIGS
@@ -3439,6 +3579,51 @@ var COLUMN_REGISTRY = {
3439
3579
  titleKey: "common.report-col.type",
3440
3580
  shortTitleKey: "common.report-col.type.short",
3441
3581
  infoTextKey: "common.report-col.type.info"
3582
+ },
3583
+ paidNormalHours: {
3584
+ titleKey: "common.report-col.paid-normal-hours",
3585
+ shortTitleKey: "common.report-col.paid-normal-hours.short",
3586
+ infoTextKey: "common.report-col.paid-normal-hours.info"
3587
+ },
3588
+ normalPay: {
3589
+ titleKey: "common.report-col.normal-pay",
3590
+ shortTitleKey: "common.report-col.normal-pay.short",
3591
+ infoTextKey: "common.report-col.normal-pay.info"
3592
+ },
3593
+ overtimePay: {
3594
+ titleKey: "common.report-col.overtime-pay",
3595
+ shortTitleKey: "common.report-col.overtime-pay.short",
3596
+ infoTextKey: "common.report-col.overtime-pay.info"
3597
+ },
3598
+ doubleOvertimePay: {
3599
+ titleKey: "common.report-col.double-overtime-pay",
3600
+ shortTitleKey: "common.report-col.double-overtime-pay.short",
3601
+ infoTextKey: "common.report-col.double-overtime-pay.info"
3602
+ },
3603
+ gratuity: {
3604
+ titleKey: "common.report-col.gratuity",
3605
+ shortTitleKey: "common.report-col.gratuity.short",
3606
+ infoTextKey: "common.report-col.gratuity.info"
3607
+ },
3608
+ tipPaidStatus: {
3609
+ titleKey: "common.report-col.tip-paid-status",
3610
+ shortTitleKey: "common.report-col.tip-paid-status.short",
3611
+ infoTextKey: "common.report-col.tip-paid-status.info"
3612
+ },
3613
+ totalPayments: {
3614
+ titleKey: "common.report-col.total-payments",
3615
+ shortTitleKey: "common.report-col.total-payments.short",
3616
+ infoTextKey: "common.report-col.total-payments.info"
3617
+ },
3618
+ minimumWageAdjustment: {
3619
+ titleKey: "common.report-col.minimum-wage-adjustment",
3620
+ shortTitleKey: "common.report-col.minimum-wage-adjustment.short",
3621
+ infoTextKey: "common.report-col.minimum-wage-adjustment.info"
3622
+ },
3623
+ totalPay: {
3624
+ titleKey: "common.report-col.total-pay",
3625
+ shortTitleKey: "common.report-col.total-pay.short",
3626
+ infoTextKey: "common.report-col.total-pay.info"
3442
3627
  }
3443
3628
  };
3444
3629
  function getColumnMetadata(key) {
@@ -1,4 +1,4 @@
1
- import { R as ReportType, A as AnalyticsField } from '../report-DOgRgflg.cjs';
1
+ import { R as ReportType, A as AnalyticsField } from '../report-BdTa3jaW.cjs';
2
2
  import { E as ExportSection } from '../types-BPT5hjCR.cjs';
3
3
 
4
4
  type ReportDocumentSection = ExportSection;
@@ -1,4 +1,4 @@
1
- import { R as ReportType, A as AnalyticsField } from '../report-DOgRgflg.js';
1
+ import { R as ReportType, A as AnalyticsField } from '../report-BdTa3jaW.js';
2
2
  import { E as ExportSection } from '../types-BPT5hjCR.js';
3
3
 
4
4
  type ReportDocumentSection = ExportSection;
@@ -7,7 +7,7 @@ import {
7
7
  getReportConfig,
8
8
  getReportFormattingLocaleOptions,
9
9
  resolveTranslate
10
- } from "../chunk-ZE2ZAIMR.js";
10
+ } from "../chunk-U7BPTQQX.js";
11
11
 
12
12
  // src/exporters/exportBuilder.ts
13
13
  import { format, isValid, parseISO } from "date-fns";