@harbortouch/skytab-analytics-report-utils 0.28.0 → 0.30.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-FUBK4VLH.js → chunk-GZPEIIJK.js} +89 -16
- package/dist/exporters/excel/index.cjs +1 -1
- package/dist/exporters/excel/index.js +1 -1
- package/dist/exporters/exportBuilder.cjs +86 -16
- 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 +92 -18
- package/dist/index.d.cts +12 -4
- package/dist/index.d.ts +12 -4
- package/dist/index.js +5 -3
- package/dist/{report-DmjPDGba.d.cts → report-BOV9OtaL.d.cts} +18 -1
- package/dist/{report-DmjPDGba.d.ts → report-BOV9OtaL.d.ts} +18 -1
- package/package.json +1 -1
|
@@ -681,8 +681,49 @@ var employeeTipConfig = {
|
|
|
681
681
|
hasFooter: true
|
|
682
682
|
};
|
|
683
683
|
|
|
684
|
-
// src/reports/
|
|
684
|
+
// src/reports/tipCashoutReconciliation.ts
|
|
685
685
|
var FIELDS10 = {
|
|
686
|
+
groupById: { type: "string" },
|
|
687
|
+
groupByName: {
|
|
688
|
+
type: "string",
|
|
689
|
+
size: FIRST_COLUMN_WIDTH,
|
|
690
|
+
footerCalculation: { type: "label", label: "table.total" }
|
|
691
|
+
},
|
|
692
|
+
locationName: { type: "string", size: 220, columnKey: "locationName" },
|
|
693
|
+
employeeName: { type: "string", size: 220, columnKey: "employeeName" },
|
|
694
|
+
empId: { type: "string", size: 160, columnKey: "employeeId" },
|
|
695
|
+
payrollId: { type: "string", size: 160, columnKey: "payrollId" },
|
|
696
|
+
netSales: { type: "money", columnKey: "netSales", footerCalculation: { type: "sum" } },
|
|
697
|
+
cashCollected: { type: "money", columnKey: "cashCollected", footerCalculation: { type: "sum" } },
|
|
698
|
+
grossTips: { type: "money", columnKey: "grossTips", footerCalculation: { type: "sum" } },
|
|
699
|
+
autoGratuity: { type: "money", columnKey: "autoGratuity", footerCalculation: { type: "sum" } },
|
|
700
|
+
tipReduction: { type: "money", columnKey: "tipReduction", footerCalculation: { type: "sum" } },
|
|
701
|
+
tipShareContributed: { type: "money", columnKey: "tipShareContributed", footerCalculation: { type: "sum" } },
|
|
702
|
+
declaredTips: { type: "money", columnKey: "declaredTips", footerCalculation: { type: "sum" } }
|
|
703
|
+
};
|
|
704
|
+
var VISIBLE_COLUMNS2 = [
|
|
705
|
+
"groupByName",
|
|
706
|
+
"locationName",
|
|
707
|
+
"employeeName",
|
|
708
|
+
"payrollId",
|
|
709
|
+
"netSales",
|
|
710
|
+
"cashCollected",
|
|
711
|
+
"grossTips",
|
|
712
|
+
"autoGratuity",
|
|
713
|
+
"tipReduction",
|
|
714
|
+
"tipShareContributed",
|
|
715
|
+
"declaredTips"
|
|
716
|
+
];
|
|
717
|
+
var AVAILABLE_COLUMNS2 = ["groupById", "empId", ...VISIBLE_COLUMNS2];
|
|
718
|
+
var tipCashoutReconciliationConfig = {
|
|
719
|
+
fields: FIELDS10,
|
|
720
|
+
availableColumns: AVAILABLE_COLUMNS2,
|
|
721
|
+
defaultVisibleColumns: VISIBLE_COLUMNS2,
|
|
722
|
+
hasFooter: true
|
|
723
|
+
};
|
|
724
|
+
|
|
725
|
+
// src/reports/dailySales/dailySales.ts
|
|
726
|
+
var FIELDS11 = {
|
|
686
727
|
groupById: { type: "string" },
|
|
687
728
|
groupByName: {
|
|
688
729
|
type: "string",
|
|
@@ -707,7 +748,7 @@ var DAILY_SALES_AVAILABLE_COLUMNS = [
|
|
|
707
748
|
"salesMixPct"
|
|
708
749
|
];
|
|
709
750
|
var dailySalesConfig = {
|
|
710
|
-
fields:
|
|
751
|
+
fields: FIELDS11,
|
|
711
752
|
availableColumns: DAILY_SALES_AVAILABLE_COLUMNS,
|
|
712
753
|
defaultVisibleColumns: DAILY_SALES_AVAILABLE_COLUMNS,
|
|
713
754
|
hasFooter: true,
|
|
@@ -717,7 +758,7 @@ var dailySalesConfig = {
|
|
|
717
758
|
};
|
|
718
759
|
|
|
719
760
|
// src/reports/dailySales/dailySalesCache.ts
|
|
720
|
-
var
|
|
761
|
+
var FIELDS12 = {
|
|
721
762
|
name: {
|
|
722
763
|
type: "string",
|
|
723
764
|
columnKey: "type",
|
|
@@ -727,7 +768,7 @@ var FIELDS11 = {
|
|
|
727
768
|
amount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } }
|
|
728
769
|
};
|
|
729
770
|
var dailySalesCacheConfig = {
|
|
730
|
-
fields:
|
|
771
|
+
fields: FIELDS12,
|
|
731
772
|
availableColumns: ["name", "amount"],
|
|
732
773
|
defaultVisibleColumns: ["name", "amount"],
|
|
733
774
|
hasFooter: true,
|
|
@@ -736,7 +777,7 @@ var dailySalesCacheConfig = {
|
|
|
736
777
|
};
|
|
737
778
|
|
|
738
779
|
// src/reports/dailySales/dailySalesDiscounts.ts
|
|
739
|
-
var
|
|
780
|
+
var FIELDS13 = {
|
|
740
781
|
discountName: {
|
|
741
782
|
type: "string",
|
|
742
783
|
columnKey: "discountName",
|
|
@@ -754,7 +795,7 @@ var DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS = [
|
|
|
754
795
|
"discountsAmount"
|
|
755
796
|
];
|
|
756
797
|
var dailySalesDiscountsConfig = {
|
|
757
|
-
fields:
|
|
798
|
+
fields: FIELDS13,
|
|
758
799
|
availableColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
|
|
759
800
|
defaultVisibleColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
|
|
760
801
|
hasFooter: true,
|
|
@@ -763,7 +804,7 @@ var dailySalesDiscountsConfig = {
|
|
|
763
804
|
};
|
|
764
805
|
|
|
765
806
|
// src/reports/dailySales/dailySalesPayments.ts
|
|
766
|
-
var
|
|
807
|
+
var FIELDS14 = {
|
|
767
808
|
paymentTypeName: {
|
|
768
809
|
type: "string",
|
|
769
810
|
size: FIRST_COLUMN_WIDTH,
|
|
@@ -783,7 +824,7 @@ var DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS = [
|
|
|
783
824
|
"totalSales"
|
|
784
825
|
];
|
|
785
826
|
var dailySalesPaymentsConfig = {
|
|
786
|
-
fields:
|
|
827
|
+
fields: FIELDS14,
|
|
787
828
|
availableColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
|
|
788
829
|
defaultVisibleColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
|
|
789
830
|
hasFooter: true,
|
|
@@ -792,7 +833,7 @@ var dailySalesPaymentsConfig = {
|
|
|
792
833
|
};
|
|
793
834
|
|
|
794
835
|
// src/reports/dailySales/dailySalesRefundsVoids.ts
|
|
795
|
-
var
|
|
836
|
+
var FIELDS15 = {
|
|
796
837
|
description: {
|
|
797
838
|
type: "string",
|
|
798
839
|
columnKey: "refundVoidDescription",
|
|
@@ -810,7 +851,7 @@ var DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS = [
|
|
|
810
851
|
"pctSales"
|
|
811
852
|
];
|
|
812
853
|
var dailySalesRefundsVoidsConfig = {
|
|
813
|
-
fields:
|
|
854
|
+
fields: FIELDS15,
|
|
814
855
|
availableColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
|
|
815
856
|
defaultVisibleColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
|
|
816
857
|
hasFooter: true,
|
|
@@ -819,7 +860,7 @@ var dailySalesRefundsVoidsConfig = {
|
|
|
819
860
|
};
|
|
820
861
|
|
|
821
862
|
// src/reports/dailySales/dailySalesTaxes.ts
|
|
822
|
-
var
|
|
863
|
+
var FIELDS16 = {
|
|
823
864
|
taxName: {
|
|
824
865
|
type: "string",
|
|
825
866
|
columnKey: "taxName",
|
|
@@ -837,7 +878,7 @@ var DAILY_SALES_TAXES_AVAILABLE_COLUMNS = [
|
|
|
837
878
|
"exemptSales"
|
|
838
879
|
];
|
|
839
880
|
var dailySalesTaxesConfig = {
|
|
840
|
-
fields:
|
|
881
|
+
fields: FIELDS16,
|
|
841
882
|
availableColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
|
|
842
883
|
defaultVisibleColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
|
|
843
884
|
hasFooter: true,
|
|
@@ -846,7 +887,7 @@ var dailySalesTaxesConfig = {
|
|
|
846
887
|
};
|
|
847
888
|
|
|
848
889
|
// src/reports/dailySales/dailySalesTrendsDayPart.ts
|
|
849
|
-
var
|
|
890
|
+
var FIELDS17 = {
|
|
850
891
|
groupById: { type: "string" },
|
|
851
892
|
groupByName: {
|
|
852
893
|
type: "string",
|
|
@@ -885,7 +926,7 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS = [
|
|
|
885
926
|
"salesAmountNet"
|
|
886
927
|
];
|
|
887
928
|
var dailySalesTrendsDayPartConfig = {
|
|
888
|
-
fields:
|
|
929
|
+
fields: FIELDS17,
|
|
889
930
|
availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
890
931
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
891
932
|
hasFooter: true,
|
|
@@ -895,7 +936,7 @@ var dailySalesTrendsDayPartConfig = {
|
|
|
895
936
|
};
|
|
896
937
|
|
|
897
938
|
// src/reports/dailySales/dailySalesTrendsOrderType.ts
|
|
898
|
-
var
|
|
939
|
+
var FIELDS18 = {
|
|
899
940
|
groupById: { type: "string" },
|
|
900
941
|
groupByName: {
|
|
901
942
|
columnKey: "orderType",
|
|
@@ -934,7 +975,7 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2 = [
|
|
|
934
975
|
"salesAmountNet"
|
|
935
976
|
];
|
|
936
977
|
var dailySalesTrendsOrderTypeConfig = {
|
|
937
|
-
fields:
|
|
978
|
+
fields: FIELDS18,
|
|
938
979
|
availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
|
|
939
980
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
|
|
940
981
|
hasFooter: true,
|
|
@@ -953,6 +994,7 @@ var Report = {
|
|
|
953
994
|
ITEM_TAX: "item-tax",
|
|
954
995
|
EMPLOYEE_TIMECARD: "employee-timecard",
|
|
955
996
|
EMPLOYEE_TIP: "employee-tip",
|
|
997
|
+
TIP_CASHOUT_RECONCILIATION: "tip-cashout-reconciliation",
|
|
956
998
|
SALES_BY_ITEM: "sales-by-item",
|
|
957
999
|
DAILY_SALES: "daily-sales",
|
|
958
1000
|
DAILY_SALES_LIVE: "daily-sales-live"
|
|
@@ -976,6 +1018,7 @@ var REPORT_CONFIG_MAP = {
|
|
|
976
1018
|
"item-tax": itemTaxConfig,
|
|
977
1019
|
"employee-timecard": employeeTimecardConfig,
|
|
978
1020
|
"employee-tip": employeeTipConfig,
|
|
1021
|
+
"tip-cashout-reconciliation": tipCashoutReconciliationConfig,
|
|
979
1022
|
"sales-by-item": salesByItemDetailConfig,
|
|
980
1023
|
"daily-sales": DAILY_SALES_SECTION_CONFIGS,
|
|
981
1024
|
"daily-sales-live": DAILY_SALES_SECTION_CONFIGS
|
|
@@ -989,6 +1032,7 @@ var REPORT_DEFAULT_NAME_MAP = {
|
|
|
989
1032
|
"item-tax": "Sales Tax by Item",
|
|
990
1033
|
"employee-timecard": "Employee Timecard",
|
|
991
1034
|
"employee-tip": "Employee Tip",
|
|
1035
|
+
"tip-cashout-reconciliation": "Tip & Cashout Reconciliation",
|
|
992
1036
|
"sales-by-item": "Sales by Item",
|
|
993
1037
|
"daily-sales": "Daily Sales",
|
|
994
1038
|
"daily-sales-live": "Daily Sales Live"
|
|
@@ -1073,6 +1117,11 @@ var COLUMN_REGISTRY = {
|
|
|
1073
1117
|
shortTitleKey: "common.report-col.batch-number.short",
|
|
1074
1118
|
infoTextKey: "common.report-col.batch-number.info"
|
|
1075
1119
|
},
|
|
1120
|
+
cashCollected: {
|
|
1121
|
+
titleKey: "common.report-col.cash-collected",
|
|
1122
|
+
shortTitleKey: "common.report-col.cash-collected.short",
|
|
1123
|
+
infoTextKey: "common.report-col.cash-collected.info"
|
|
1124
|
+
},
|
|
1076
1125
|
clockInTime: {
|
|
1077
1126
|
titleKey: "common.report-col.clock-in-time",
|
|
1078
1127
|
shortTitleKey: "common.report-col.clock-in-time.short",
|
|
@@ -1553,6 +1602,11 @@ var COLUMN_REGISTRY = {
|
|
|
1553
1602
|
shortTitleKey: "common.report-col.tip-share.short",
|
|
1554
1603
|
infoTextKey: "common.report-col.tip-share.info"
|
|
1555
1604
|
},
|
|
1605
|
+
tipShareContributed: {
|
|
1606
|
+
titleKey: "common.report-col.tip-share-contributed",
|
|
1607
|
+
shortTitleKey: "common.report-col.tip-share-contributed.short",
|
|
1608
|
+
infoTextKey: "common.report-col.tip-share-contributed.info"
|
|
1609
|
+
},
|
|
1556
1610
|
tips: {
|
|
1557
1611
|
titleKey: "common.report-col.tips",
|
|
1558
1612
|
shortTitleKey: "common.report-col.tips.short",
|
|
@@ -1844,6 +1898,9 @@ var enUS = {
|
|
|
1844
1898
|
"common.report-col.batch-number": false,
|
|
1845
1899
|
"common.report-col.batch-number.short": false,
|
|
1846
1900
|
"common.report-col.batch-number.info": false,
|
|
1901
|
+
"common.report-col.cash-collected": false,
|
|
1902
|
+
"common.report-col.cash-collected.short": false,
|
|
1903
|
+
"common.report-col.cash-collected.info": false,
|
|
1847
1904
|
"common.report-col.clock-in-time": false,
|
|
1848
1905
|
"common.report-col.clock-in-time.short": false,
|
|
1849
1906
|
"common.report-col.clock-in-time.info": false,
|
|
@@ -2153,6 +2210,9 @@ var enUS = {
|
|
|
2153
2210
|
"common.report-col.tip-share": false,
|
|
2154
2211
|
"common.report-col.tip-share.short": false,
|
|
2155
2212
|
"common.report-col.tip-share.info": false,
|
|
2213
|
+
"common.report-col.tip-share-contributed": false,
|
|
2214
|
+
"common.report-col.tip-share-contributed.short": false,
|
|
2215
|
+
"common.report-col.tip-share-contributed.info": false,
|
|
2156
2216
|
"common.report-col.tips": false,
|
|
2157
2217
|
"common.report-col.tips.short": false,
|
|
2158
2218
|
"common.report-col.tips.info": false,
|
|
@@ -2331,6 +2391,9 @@ var enUS2 = {
|
|
|
2331
2391
|
"common.report-col.batch-number": false,
|
|
2332
2392
|
"common.report-col.batch-number.short": false,
|
|
2333
2393
|
"common.report-col.batch-number.info": false,
|
|
2394
|
+
"common.report-col.cash-collected": false,
|
|
2395
|
+
"common.report-col.cash-collected.short": false,
|
|
2396
|
+
"common.report-col.cash-collected.info": false,
|
|
2334
2397
|
"common.report-col.clock-in-time": false,
|
|
2335
2398
|
"common.report-col.clock-in-time.short": false,
|
|
2336
2399
|
"common.report-col.clock-in-time.info": false,
|
|
@@ -2640,6 +2703,9 @@ var enUS2 = {
|
|
|
2640
2703
|
"common.report-col.tip-share": false,
|
|
2641
2704
|
"common.report-col.tip-share.short": false,
|
|
2642
2705
|
"common.report-col.tip-share.info": false,
|
|
2706
|
+
"common.report-col.tip-share-contributed": false,
|
|
2707
|
+
"common.report-col.tip-share-contributed.short": false,
|
|
2708
|
+
"common.report-col.tip-share-contributed.info": false,
|
|
2643
2709
|
"common.report-col.tips": false,
|
|
2644
2710
|
"common.report-col.tips.short": false,
|
|
2645
2711
|
"common.report-col.tips.info": false,
|
|
@@ -2818,6 +2884,9 @@ var enUS3 = {
|
|
|
2818
2884
|
"common.report-col.batch-number": "Batch Number",
|
|
2819
2885
|
"common.report-col.batch-number.short": "Batch No",
|
|
2820
2886
|
"common.report-col.batch-number.info": "The system-generated number used to track this batch of transactions",
|
|
2887
|
+
"common.report-col.cash-collected": "Cash Collected",
|
|
2888
|
+
"common.report-col.cash-collected.short": "Cash Collected",
|
|
2889
|
+
"common.report-col.cash-collected.info": "Total cash collected by the employee",
|
|
2821
2890
|
"common.report-col.clock-in-time": "Clock-In Time",
|
|
2822
2891
|
"common.report-col.clock-in-time.short": "In Time",
|
|
2823
2892
|
"common.report-col.clock-in-time.info": "Actual time the employee clocked in",
|
|
@@ -3127,6 +3196,9 @@ var enUS3 = {
|
|
|
3127
3196
|
"common.report-col.tip-share": "Tip Share",
|
|
3128
3197
|
"common.report-col.tip-share.short": "Tip Share",
|
|
3129
3198
|
"common.report-col.tip-share.info": "Tips distributed to other employees",
|
|
3199
|
+
"common.report-col.tip-share-contributed": "Tip Share Contributed",
|
|
3200
|
+
"common.report-col.tip-share-contributed.short": "Tip Share Contrib",
|
|
3201
|
+
"common.report-col.tip-share-contributed.info": "Tips contributed by this employee to the tip share pool",
|
|
3130
3202
|
"common.report-col.tips": "Tips",
|
|
3131
3203
|
"common.report-col.tips.short": "Tips",
|
|
3132
3204
|
"common.report-col.tips.info": "Total tips received for the ticket",
|
|
@@ -3443,6 +3515,7 @@ export {
|
|
|
3443
3515
|
itemTaxConfig,
|
|
3444
3516
|
employeeTimecardConfig,
|
|
3445
3517
|
employeeTipConfig,
|
|
3518
|
+
tipCashoutReconciliationConfig,
|
|
3446
3519
|
dailySalesConfig,
|
|
3447
3520
|
dailySalesCacheConfig,
|
|
3448
3521
|
dailySalesDiscountsConfig,
|
|
@@ -53,7 +53,7 @@ var ExcelExporter = class {
|
|
|
53
53
|
const workbook = new import_exceljs.default.Workbook();
|
|
54
54
|
const usedNames = /* @__PURE__ */ new Set();
|
|
55
55
|
for (const [sectionIndex, section] of content.sections.entries()) {
|
|
56
|
-
let sheetName = (section.title || `Sheet${sectionIndex + 1}`).slice(0, 31);
|
|
56
|
+
let sheetName = (section.title || `Sheet${sectionIndex + 1}`).replace(/[*?:\\/[\]]/g, "-").slice(0, 31);
|
|
57
57
|
if (usedNames.has(sheetName.toLowerCase())) {
|
|
58
58
|
let suffix = 2;
|
|
59
59
|
let candidate = `${sheetName.slice(0, 28)}_${suffix}`;
|
|
@@ -19,7 +19,7 @@ var ExcelExporter = class {
|
|
|
19
19
|
const workbook = new ExcelJS.Workbook();
|
|
20
20
|
const usedNames = /* @__PURE__ */ new Set();
|
|
21
21
|
for (const [sectionIndex, section] of content.sections.entries()) {
|
|
22
|
-
let sheetName = (section.title || `Sheet${sectionIndex + 1}`).slice(0, 31);
|
|
22
|
+
let sheetName = (section.title || `Sheet${sectionIndex + 1}`).replace(/[*?:\\/[\]]/g, "-").slice(0, 31);
|
|
23
23
|
if (usedNames.has(sheetName.toLowerCase())) {
|
|
24
24
|
let suffix = 2;
|
|
25
25
|
let candidate = `${sheetName.slice(0, 28)}_${suffix}`;
|
|
@@ -62,6 +62,9 @@ var enUS = {
|
|
|
62
62
|
"common.report-col.batch-number": "Batch Number",
|
|
63
63
|
"common.report-col.batch-number.short": "Batch No",
|
|
64
64
|
"common.report-col.batch-number.info": "The system-generated number used to track this batch of transactions",
|
|
65
|
+
"common.report-col.cash-collected": "Cash Collected",
|
|
66
|
+
"common.report-col.cash-collected.short": "Cash Collected",
|
|
67
|
+
"common.report-col.cash-collected.info": "Total cash collected by the employee",
|
|
65
68
|
"common.report-col.clock-in-time": "Clock-In Time",
|
|
66
69
|
"common.report-col.clock-in-time.short": "In Time",
|
|
67
70
|
"common.report-col.clock-in-time.info": "Actual time the employee clocked in",
|
|
@@ -371,6 +374,9 @@ var enUS = {
|
|
|
371
374
|
"common.report-col.tip-share": "Tip Share",
|
|
372
375
|
"common.report-col.tip-share.short": "Tip Share",
|
|
373
376
|
"common.report-col.tip-share.info": "Tips distributed to other employees",
|
|
377
|
+
"common.report-col.tip-share-contributed": "Tip Share Contributed",
|
|
378
|
+
"common.report-col.tip-share-contributed.short": "Tip Share Contrib",
|
|
379
|
+
"common.report-col.tip-share-contributed.info": "Tips contributed by this employee to the tip share pool",
|
|
374
380
|
"common.report-col.tips": "Tips",
|
|
375
381
|
"common.report-col.tips.short": "Tips",
|
|
376
382
|
"common.report-col.tips.info": "Total tips received for the ticket",
|
|
@@ -549,6 +555,9 @@ var enUS2 = {
|
|
|
549
555
|
"common.report-col.batch-number": false,
|
|
550
556
|
"common.report-col.batch-number.short": false,
|
|
551
557
|
"common.report-col.batch-number.info": false,
|
|
558
|
+
"common.report-col.cash-collected": false,
|
|
559
|
+
"common.report-col.cash-collected.short": false,
|
|
560
|
+
"common.report-col.cash-collected.info": false,
|
|
552
561
|
"common.report-col.clock-in-time": false,
|
|
553
562
|
"common.report-col.clock-in-time.short": false,
|
|
554
563
|
"common.report-col.clock-in-time.info": false,
|
|
@@ -858,6 +867,9 @@ var enUS2 = {
|
|
|
858
867
|
"common.report-col.tip-share": false,
|
|
859
868
|
"common.report-col.tip-share.short": false,
|
|
860
869
|
"common.report-col.tip-share.info": false,
|
|
870
|
+
"common.report-col.tip-share-contributed": false,
|
|
871
|
+
"common.report-col.tip-share-contributed.short": false,
|
|
872
|
+
"common.report-col.tip-share-contributed.info": false,
|
|
861
873
|
"common.report-col.tips": false,
|
|
862
874
|
"common.report-col.tips.short": false,
|
|
863
875
|
"common.report-col.tips.info": false,
|
|
@@ -1036,6 +1048,9 @@ var enUS3 = {
|
|
|
1036
1048
|
"common.report-col.batch-number": false,
|
|
1037
1049
|
"common.report-col.batch-number.short": false,
|
|
1038
1050
|
"common.report-col.batch-number.info": false,
|
|
1051
|
+
"common.report-col.cash-collected": false,
|
|
1052
|
+
"common.report-col.cash-collected.short": false,
|
|
1053
|
+
"common.report-col.cash-collected.info": false,
|
|
1039
1054
|
"common.report-col.clock-in-time": false,
|
|
1040
1055
|
"common.report-col.clock-in-time.short": false,
|
|
1041
1056
|
"common.report-col.clock-in-time.info": false,
|
|
@@ -1345,6 +1360,9 @@ var enUS3 = {
|
|
|
1345
1360
|
"common.report-col.tip-share": false,
|
|
1346
1361
|
"common.report-col.tip-share.short": false,
|
|
1347
1362
|
"common.report-col.tip-share.info": false,
|
|
1363
|
+
"common.report-col.tip-share-contributed": false,
|
|
1364
|
+
"common.report-col.tip-share-contributed.short": false,
|
|
1365
|
+
"common.report-col.tip-share-contributed.info": false,
|
|
1348
1366
|
"common.report-col.tips": false,
|
|
1349
1367
|
"common.report-col.tips.short": false,
|
|
1350
1368
|
"common.report-col.tips.info": false,
|
|
@@ -2319,8 +2337,49 @@ var employeeTipConfig = {
|
|
|
2319
2337
|
hasFooter: true
|
|
2320
2338
|
};
|
|
2321
2339
|
|
|
2322
|
-
// src/reports/
|
|
2340
|
+
// src/reports/tipCashoutReconciliation.ts
|
|
2323
2341
|
var FIELDS10 = {
|
|
2342
|
+
groupById: { type: "string" },
|
|
2343
|
+
groupByName: {
|
|
2344
|
+
type: "string",
|
|
2345
|
+
size: FIRST_COLUMN_WIDTH,
|
|
2346
|
+
footerCalculation: { type: "label", label: "table.total" }
|
|
2347
|
+
},
|
|
2348
|
+
locationName: { type: "string", size: 220, columnKey: "locationName" },
|
|
2349
|
+
employeeName: { type: "string", size: 220, columnKey: "employeeName" },
|
|
2350
|
+
empId: { type: "string", size: 160, columnKey: "employeeId" },
|
|
2351
|
+
payrollId: { type: "string", size: 160, columnKey: "payrollId" },
|
|
2352
|
+
netSales: { type: "money", columnKey: "netSales", footerCalculation: { type: "sum" } },
|
|
2353
|
+
cashCollected: { type: "money", columnKey: "cashCollected", footerCalculation: { type: "sum" } },
|
|
2354
|
+
grossTips: { type: "money", columnKey: "grossTips", footerCalculation: { type: "sum" } },
|
|
2355
|
+
autoGratuity: { type: "money", columnKey: "autoGratuity", footerCalculation: { type: "sum" } },
|
|
2356
|
+
tipReduction: { type: "money", columnKey: "tipReduction", footerCalculation: { type: "sum" } },
|
|
2357
|
+
tipShareContributed: { type: "money", columnKey: "tipShareContributed", footerCalculation: { type: "sum" } },
|
|
2358
|
+
declaredTips: { type: "money", columnKey: "declaredTips", footerCalculation: { type: "sum" } }
|
|
2359
|
+
};
|
|
2360
|
+
var VISIBLE_COLUMNS2 = [
|
|
2361
|
+
"groupByName",
|
|
2362
|
+
"locationName",
|
|
2363
|
+
"employeeName",
|
|
2364
|
+
"payrollId",
|
|
2365
|
+
"netSales",
|
|
2366
|
+
"cashCollected",
|
|
2367
|
+
"grossTips",
|
|
2368
|
+
"autoGratuity",
|
|
2369
|
+
"tipReduction",
|
|
2370
|
+
"tipShareContributed",
|
|
2371
|
+
"declaredTips"
|
|
2372
|
+
];
|
|
2373
|
+
var AVAILABLE_COLUMNS2 = ["groupById", "empId", ...VISIBLE_COLUMNS2];
|
|
2374
|
+
var tipCashoutReconciliationConfig = {
|
|
2375
|
+
fields: FIELDS10,
|
|
2376
|
+
availableColumns: AVAILABLE_COLUMNS2,
|
|
2377
|
+
defaultVisibleColumns: VISIBLE_COLUMNS2,
|
|
2378
|
+
hasFooter: true
|
|
2379
|
+
};
|
|
2380
|
+
|
|
2381
|
+
// src/reports/dailySales/dailySales.ts
|
|
2382
|
+
var FIELDS11 = {
|
|
2324
2383
|
groupById: { type: "string" },
|
|
2325
2384
|
groupByName: {
|
|
2326
2385
|
type: "string",
|
|
@@ -2345,7 +2404,7 @@ var DAILY_SALES_AVAILABLE_COLUMNS = [
|
|
|
2345
2404
|
"salesMixPct"
|
|
2346
2405
|
];
|
|
2347
2406
|
var dailySalesConfig = {
|
|
2348
|
-
fields:
|
|
2407
|
+
fields: FIELDS11,
|
|
2349
2408
|
availableColumns: DAILY_SALES_AVAILABLE_COLUMNS,
|
|
2350
2409
|
defaultVisibleColumns: DAILY_SALES_AVAILABLE_COLUMNS,
|
|
2351
2410
|
hasFooter: true,
|
|
@@ -2355,7 +2414,7 @@ var dailySalesConfig = {
|
|
|
2355
2414
|
};
|
|
2356
2415
|
|
|
2357
2416
|
// src/reports/dailySales/dailySalesCache.ts
|
|
2358
|
-
var
|
|
2417
|
+
var FIELDS12 = {
|
|
2359
2418
|
name: {
|
|
2360
2419
|
type: "string",
|
|
2361
2420
|
columnKey: "type",
|
|
@@ -2365,7 +2424,7 @@ var FIELDS11 = {
|
|
|
2365
2424
|
amount: { type: "money", columnKey: "paymentsAmount", footerCalculation: { type: "sum" } }
|
|
2366
2425
|
};
|
|
2367
2426
|
var dailySalesCacheConfig = {
|
|
2368
|
-
fields:
|
|
2427
|
+
fields: FIELDS12,
|
|
2369
2428
|
availableColumns: ["name", "amount"],
|
|
2370
2429
|
defaultVisibleColumns: ["name", "amount"],
|
|
2371
2430
|
hasFooter: true,
|
|
@@ -2374,7 +2433,7 @@ var dailySalesCacheConfig = {
|
|
|
2374
2433
|
};
|
|
2375
2434
|
|
|
2376
2435
|
// src/reports/dailySales/dailySalesDiscounts.ts
|
|
2377
|
-
var
|
|
2436
|
+
var FIELDS13 = {
|
|
2378
2437
|
discountName: {
|
|
2379
2438
|
type: "string",
|
|
2380
2439
|
columnKey: "discountName",
|
|
@@ -2392,7 +2451,7 @@ var DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS = [
|
|
|
2392
2451
|
"discountsAmount"
|
|
2393
2452
|
];
|
|
2394
2453
|
var dailySalesDiscountsConfig = {
|
|
2395
|
-
fields:
|
|
2454
|
+
fields: FIELDS13,
|
|
2396
2455
|
availableColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
|
|
2397
2456
|
defaultVisibleColumns: DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
|
|
2398
2457
|
hasFooter: true,
|
|
@@ -2401,7 +2460,7 @@ var dailySalesDiscountsConfig = {
|
|
|
2401
2460
|
};
|
|
2402
2461
|
|
|
2403
2462
|
// src/reports/dailySales/dailySalesPayments.ts
|
|
2404
|
-
var
|
|
2463
|
+
var FIELDS14 = {
|
|
2405
2464
|
paymentTypeName: {
|
|
2406
2465
|
type: "string",
|
|
2407
2466
|
size: FIRST_COLUMN_WIDTH,
|
|
@@ -2421,7 +2480,7 @@ var DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS = [
|
|
|
2421
2480
|
"totalSales"
|
|
2422
2481
|
];
|
|
2423
2482
|
var dailySalesPaymentsConfig = {
|
|
2424
|
-
fields:
|
|
2483
|
+
fields: FIELDS14,
|
|
2425
2484
|
availableColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
|
|
2426
2485
|
defaultVisibleColumns: DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS,
|
|
2427
2486
|
hasFooter: true,
|
|
@@ -2430,7 +2489,7 @@ var dailySalesPaymentsConfig = {
|
|
|
2430
2489
|
};
|
|
2431
2490
|
|
|
2432
2491
|
// src/reports/dailySales/dailySalesRefundsVoids.ts
|
|
2433
|
-
var
|
|
2492
|
+
var FIELDS15 = {
|
|
2434
2493
|
description: {
|
|
2435
2494
|
type: "string",
|
|
2436
2495
|
columnKey: "refundVoidDescription",
|
|
@@ -2448,7 +2507,7 @@ var DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS = [
|
|
|
2448
2507
|
"pctSales"
|
|
2449
2508
|
];
|
|
2450
2509
|
var dailySalesRefundsVoidsConfig = {
|
|
2451
|
-
fields:
|
|
2510
|
+
fields: FIELDS15,
|
|
2452
2511
|
availableColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
|
|
2453
2512
|
defaultVisibleColumns: DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS,
|
|
2454
2513
|
hasFooter: true,
|
|
@@ -2457,7 +2516,7 @@ var dailySalesRefundsVoidsConfig = {
|
|
|
2457
2516
|
};
|
|
2458
2517
|
|
|
2459
2518
|
// src/reports/dailySales/dailySalesTaxes.ts
|
|
2460
|
-
var
|
|
2519
|
+
var FIELDS16 = {
|
|
2461
2520
|
taxName: {
|
|
2462
2521
|
type: "string",
|
|
2463
2522
|
columnKey: "taxName",
|
|
@@ -2475,7 +2534,7 @@ var DAILY_SALES_TAXES_AVAILABLE_COLUMNS = [
|
|
|
2475
2534
|
"exemptSales"
|
|
2476
2535
|
];
|
|
2477
2536
|
var dailySalesTaxesConfig = {
|
|
2478
|
-
fields:
|
|
2537
|
+
fields: FIELDS16,
|
|
2479
2538
|
availableColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
|
|
2480
2539
|
defaultVisibleColumns: DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
|
|
2481
2540
|
hasFooter: true,
|
|
@@ -2484,7 +2543,7 @@ var dailySalesTaxesConfig = {
|
|
|
2484
2543
|
};
|
|
2485
2544
|
|
|
2486
2545
|
// src/reports/dailySales/dailySalesTrendsDayPart.ts
|
|
2487
|
-
var
|
|
2546
|
+
var FIELDS17 = {
|
|
2488
2547
|
groupById: { type: "string" },
|
|
2489
2548
|
groupByName: {
|
|
2490
2549
|
type: "string",
|
|
@@ -2523,7 +2582,7 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS = [
|
|
|
2523
2582
|
"salesAmountNet"
|
|
2524
2583
|
];
|
|
2525
2584
|
var dailySalesTrendsDayPartConfig = {
|
|
2526
|
-
fields:
|
|
2585
|
+
fields: FIELDS17,
|
|
2527
2586
|
availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
2528
2587
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
2529
2588
|
hasFooter: true,
|
|
@@ -2533,7 +2592,7 @@ var dailySalesTrendsDayPartConfig = {
|
|
|
2533
2592
|
};
|
|
2534
2593
|
|
|
2535
2594
|
// src/reports/dailySales/dailySalesTrendsOrderType.ts
|
|
2536
|
-
var
|
|
2595
|
+
var FIELDS18 = {
|
|
2537
2596
|
groupById: { type: "string" },
|
|
2538
2597
|
groupByName: {
|
|
2539
2598
|
columnKey: "orderType",
|
|
@@ -2572,7 +2631,7 @@ var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2 = [
|
|
|
2572
2631
|
"salesAmountNet"
|
|
2573
2632
|
];
|
|
2574
2633
|
var dailySalesTrendsOrderTypeConfig = {
|
|
2575
|
-
fields:
|
|
2634
|
+
fields: FIELDS18,
|
|
2576
2635
|
availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
|
|
2577
2636
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
|
|
2578
2637
|
hasFooter: true,
|
|
@@ -2601,6 +2660,7 @@ var REPORT_CONFIG_MAP = {
|
|
|
2601
2660
|
"item-tax": itemTaxConfig,
|
|
2602
2661
|
"employee-timecard": employeeTimecardConfig,
|
|
2603
2662
|
"employee-tip": employeeTipConfig,
|
|
2663
|
+
"tip-cashout-reconciliation": tipCashoutReconciliationConfig,
|
|
2604
2664
|
"sales-by-item": salesByItemDetailConfig,
|
|
2605
2665
|
"daily-sales": DAILY_SALES_SECTION_CONFIGS,
|
|
2606
2666
|
"daily-sales-live": DAILY_SALES_SECTION_CONFIGS
|
|
@@ -2669,6 +2729,11 @@ var COLUMN_REGISTRY = {
|
|
|
2669
2729
|
shortTitleKey: "common.report-col.batch-number.short",
|
|
2670
2730
|
infoTextKey: "common.report-col.batch-number.info"
|
|
2671
2731
|
},
|
|
2732
|
+
cashCollected: {
|
|
2733
|
+
titleKey: "common.report-col.cash-collected",
|
|
2734
|
+
shortTitleKey: "common.report-col.cash-collected.short",
|
|
2735
|
+
infoTextKey: "common.report-col.cash-collected.info"
|
|
2736
|
+
},
|
|
2672
2737
|
clockInTime: {
|
|
2673
2738
|
titleKey: "common.report-col.clock-in-time",
|
|
2674
2739
|
shortTitleKey: "common.report-col.clock-in-time.short",
|
|
@@ -3149,6 +3214,11 @@ var COLUMN_REGISTRY = {
|
|
|
3149
3214
|
shortTitleKey: "common.report-col.tip-share.short",
|
|
3150
3215
|
infoTextKey: "common.report-col.tip-share.info"
|
|
3151
3216
|
},
|
|
3217
|
+
tipShareContributed: {
|
|
3218
|
+
titleKey: "common.report-col.tip-share-contributed",
|
|
3219
|
+
shortTitleKey: "common.report-col.tip-share-contributed.short",
|
|
3220
|
+
infoTextKey: "common.report-col.tip-share-contributed.info"
|
|
3221
|
+
},
|
|
3152
3222
|
tips: {
|
|
3153
3223
|
titleKey: "common.report-col.tips",
|
|
3154
3224
|
shortTitleKey: "common.report-col.tips.short",
|