@harbortouch/skytab-analytics-report-utils 0.34.0 → 0.36.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.
|
@@ -2447,8 +2447,7 @@ var dailySalesTrendsDayPartConfig = {
|
|
|
2447
2447
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
2448
2448
|
hasFooter: true,
|
|
2449
2449
|
dataAccessKey: "trendsByDayPart",
|
|
2450
|
-
sectionName: "common.report-section.sales-by-day-part"
|
|
2451
|
-
extraFooterFields: ["salesAmountNet"]
|
|
2450
|
+
sectionName: "common.report-section.sales-by-day-part"
|
|
2452
2451
|
};
|
|
2453
2452
|
|
|
2454
2453
|
// src/reports/dailySales/dailySalesTrendsOrderType.ts
|
|
@@ -2496,8 +2495,7 @@ var dailySalesTrendsOrderTypeConfig = {
|
|
|
2496
2495
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
|
|
2497
2496
|
hasFooter: true,
|
|
2498
2497
|
dataAccessKey: "trendsByOrderType",
|
|
2499
|
-
sectionName: "common.report-section.sales-by-order-type"
|
|
2500
|
-
extraFooterFields: ["salesAmountNet"]
|
|
2498
|
+
sectionName: "common.report-section.sales-by-order-type"
|
|
2501
2499
|
};
|
|
2502
2500
|
|
|
2503
2501
|
// src/report.ts
|
|
@@ -3381,7 +3379,7 @@ var calculateReportTotals = (data, fieldConfig) => {
|
|
|
3381
3379
|
const result = {};
|
|
3382
3380
|
for (const [field, config] of Object.entries(fieldConfig)) {
|
|
3383
3381
|
const total = getFooterValue(data, field, config);
|
|
3384
|
-
result[field] = total
|
|
3382
|
+
result[field] = total;
|
|
3385
3383
|
}
|
|
3386
3384
|
return result;
|
|
3387
3385
|
};
|
|
@@ -2613,8 +2613,7 @@ var dailySalesTrendsDayPartConfig = {
|
|
|
2613
2613
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
2614
2614
|
hasFooter: true,
|
|
2615
2615
|
dataAccessKey: "trendsByDayPart",
|
|
2616
|
-
sectionName: "common.report-section.sales-by-day-part"
|
|
2617
|
-
extraFooterFields: ["salesAmountNet"]
|
|
2616
|
+
sectionName: "common.report-section.sales-by-day-part"
|
|
2618
2617
|
};
|
|
2619
2618
|
|
|
2620
2619
|
// src/reports/dailySales/dailySalesTrendsOrderType.ts
|
|
@@ -2662,8 +2661,7 @@ var dailySalesTrendsOrderTypeConfig = {
|
|
|
2662
2661
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
|
|
2663
2662
|
hasFooter: true,
|
|
2664
2663
|
dataAccessKey: "trendsByOrderType",
|
|
2665
|
-
sectionName: "common.report-section.sales-by-order-type"
|
|
2666
|
-
extraFooterFields: ["salesAmountNet"]
|
|
2664
|
+
sectionName: "common.report-section.sales-by-order-type"
|
|
2667
2665
|
};
|
|
2668
2666
|
|
|
2669
2667
|
// src/report.ts
|
|
@@ -3503,7 +3501,7 @@ var calculateReportTotals = (data, fieldConfig) => {
|
|
|
3503
3501
|
const result = {};
|
|
3504
3502
|
for (const [field, config] of Object.entries(fieldConfig)) {
|
|
3505
3503
|
const total = getFooterValue(data, field, config);
|
|
3506
|
-
result[field] = total
|
|
3504
|
+
result[field] = total;
|
|
3507
3505
|
}
|
|
3508
3506
|
return result;
|
|
3509
3507
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -2521,8 +2521,7 @@ var dailySalesTrendsDayPartConfig = {
|
|
|
2521
2521
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
2522
2522
|
hasFooter: true,
|
|
2523
2523
|
dataAccessKey: "trendsByDayPart",
|
|
2524
|
-
sectionName: "common.report-section.sales-by-day-part"
|
|
2525
|
-
extraFooterFields: ["salesAmountNet"]
|
|
2524
|
+
sectionName: "common.report-section.sales-by-day-part"
|
|
2526
2525
|
};
|
|
2527
2526
|
|
|
2528
2527
|
// src/reports/dailySales/dailySalesTrendsOrderType.ts
|
|
@@ -2570,8 +2569,7 @@ var dailySalesTrendsOrderTypeConfig = {
|
|
|
2570
2569
|
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS2,
|
|
2571
2570
|
hasFooter: true,
|
|
2572
2571
|
dataAccessKey: "trendsByOrderType",
|
|
2573
|
-
sectionName: "common.report-section.sales-by-order-type"
|
|
2574
|
-
extraFooterFields: ["salesAmountNet"]
|
|
2572
|
+
sectionName: "common.report-section.sales-by-order-type"
|
|
2575
2573
|
};
|
|
2576
2574
|
|
|
2577
2575
|
// src/report.ts
|
|
@@ -3466,7 +3464,7 @@ var calculateReportTotals = (data, fieldConfig) => {
|
|
|
3466
3464
|
const result = {};
|
|
3467
3465
|
for (const [field, config] of Object.entries(fieldConfig)) {
|
|
3468
3466
|
const total = getFooterValue(data, field, config);
|
|
3469
|
-
result[field] = total
|
|
3467
|
+
result[field] = total;
|
|
3470
3468
|
}
|
|
3471
3469
|
return result;
|
|
3472
3470
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -220,7 +220,6 @@ declare const dailySalesTrendsDayPartConfig: {
|
|
|
220
220
|
readonly hasFooter: true;
|
|
221
221
|
readonly dataAccessKey: "trendsByDayPart";
|
|
222
222
|
readonly sectionName: "common.report-section.sales-by-day-part";
|
|
223
|
-
readonly extraFooterFields: ["salesAmountNet"];
|
|
224
223
|
};
|
|
225
224
|
|
|
226
225
|
declare const dailySalesTrendsOrderTypeConfig: {
|
|
@@ -230,7 +229,6 @@ declare const dailySalesTrendsOrderTypeConfig: {
|
|
|
230
229
|
readonly hasFooter: true;
|
|
231
230
|
readonly dataAccessKey: "trendsByOrderType";
|
|
232
231
|
readonly sectionName: "common.report-section.sales-by-order-type";
|
|
233
|
-
readonly extraFooterFields: ["salesAmountNet"];
|
|
234
232
|
};
|
|
235
233
|
|
|
236
234
|
interface ReportSectionColumnDef {
|
package/dist/index.d.ts
CHANGED
|
@@ -220,7 +220,6 @@ declare const dailySalesTrendsDayPartConfig: {
|
|
|
220
220
|
readonly hasFooter: true;
|
|
221
221
|
readonly dataAccessKey: "trendsByDayPart";
|
|
222
222
|
readonly sectionName: "common.report-section.sales-by-day-part";
|
|
223
|
-
readonly extraFooterFields: ["salesAmountNet"];
|
|
224
223
|
};
|
|
225
224
|
|
|
226
225
|
declare const dailySalesTrendsOrderTypeConfig: {
|
|
@@ -230,7 +229,6 @@ declare const dailySalesTrendsOrderTypeConfig: {
|
|
|
230
229
|
readonly hasFooter: true;
|
|
231
230
|
readonly dataAccessKey: "trendsByOrderType";
|
|
232
231
|
readonly sectionName: "common.report-section.sales-by-order-type";
|
|
233
|
-
readonly extraFooterFields: ["salesAmountNet"];
|
|
234
232
|
};
|
|
235
233
|
|
|
236
234
|
interface ReportSectionColumnDef {
|
package/dist/index.js
CHANGED