@harbortouch/skytab-analytics-report-utils 0.4.4 → 0.4.5
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/columns/index.d.ts +1 -1
- package/dist/index.cjs +88 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +85 -0
- package/dist/reports/dailySales.d.ts +4 -1
- package/dist/reports/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/columns/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type ReportColumnKey = 'fifteenMinInterval' | 'adjustedTips' | 'advantageProgram' | 'amex' | 'amexReturns' | 'attachRate' | 'autoGratuity' | 'averageGrossPrice' | 'bankFees' | 'batchAmount' | 'batchDate' | 'batchNumber' | 'clockInTime' | 'clockOutTime' | 'country' | 'customerName' | 'date' | 'dateClose' | 'daypart' | 'debit' | 'debitReturns' | 'declaredTips' | 'department' | 'depositCurrency' | 'depositDate' | 'discountAmount' | 'discountCount' | 'discover' | 'discoverReturns' | 'ebt' | 'ebtReturns' | 'employeeId' | 'employeeJob' | 'employeeName' | 'exemptTaxes' | 'grandTotal' | 'grossCashSales' | 'grossCashTips' | 'grossCreditCardTips' | 'grossCreditSales' | 'grossSales' | 'grossTips' | 'guestCount' | 'guestsVarLw' | 'guestsVarLwPct' | 'guestsVarLy' | 'guestsVarLyPct' | 'hour' | 'hoursWorked' | 'inclusiveTax' | 'itemName' | 'itemPrice' | 'locationCity' | 'locationMid' | 'locationName' | 'locationState' | 'mastercard' | 'mcReturns' | 'modifierName' | 'modifierPrice' | 'modifierQuantity' | 'netSales' | 'netTaxCollected' | 'netTips' | 'numberOfGuests' | 'orderType' | 'paymentType' | 'payrollId' | 'quantity' | 'referenceNumber' | 'refundAmount' | 'refundedTaxAmount' | 'revenueCenter' | 'revenueClass' | 'salesVarLw' | 'salesVarLwPct' | 'salesVarLy' | 'salesVarLyPct' | 'salesMixByPct' | 'salesPerGuest' | 'salesPerGuestLw' | 'salesPerGuestLy' | 'scheduledShiftEnd' | 'scheduledShiftStart' | 'settlementBatchDate' | 'shiftDurationHrs' | 'subtotal' | 'taxCollected' | 'taxName' | 'taxRate' | 'taxableSales' | 'ticketClosed' | 'ticketFee' | 'ticketNumber' | 'ticketOpen' | 'ticketTotal' | 'timeOpenMins' | 'tipPct' | 'tipReduction' | 'tipShare' | 'tips' | 'tipsPerHour' | 'totalCollected' | 'totalItemSales' | 'totalModifierSales' | 'totalReturns' | 'totalSales' | 'totalTips' | 'transactionDate' | 'transactionType' | 'untaxedSales' | 'visa' | 'visaReturns' | 'paymentsCount' | 'paymentsAmount' | 'paymentsTotal' | 'refundVoidDescription' | 'refundVoidCount' | 'refundVoidAmount' | 'refundVoidPctSales' | 'discountName';
|
|
1
|
+
export type ReportColumnKey = 'fifteenMinInterval' | 'adjustedTips' | 'advantageProgram' | 'amex' | 'amexReturns' | 'attachRate' | 'autoGratuity' | 'averageGrossPrice' | 'bankFees' | 'batchAmount' | 'batchDate' | 'batchNumber' | 'clockInTime' | 'clockOutTime' | 'country' | 'customerName' | 'date' | 'dateClose' | 'daypart' | 'debit' | 'debitReturns' | 'declaredTips' | 'department' | 'depositCurrency' | 'depositDate' | 'discountAmount' | 'discountCount' | 'discover' | 'discoverReturns' | 'ebt' | 'ebtReturns' | 'employeeId' | 'employeeJob' | 'employeeName' | 'exemptTaxes' | 'grandTotal' | 'grossCashSales' | 'grossCashTips' | 'grossCreditCardTips' | 'grossCreditSales' | 'grossSales' | 'grossTips' | 'guestCount' | 'guestsVarLw' | 'guestsVarLwPct' | 'guestsVarLy' | 'guestsVarLyPct' | 'hour' | 'hoursWorked' | 'inclusiveTax' | 'itemName' | 'itemPrice' | 'locationCity' | 'locationMid' | 'locationName' | 'locationState' | 'mastercard' | 'mcReturns' | 'modifierName' | 'modifierPrice' | 'modifierQuantity' | 'netSales' | 'netTaxCollected' | 'netTips' | 'numberOfGuests' | 'orderType' | 'paymentType' | 'payrollId' | 'quantity' | 'referenceNumber' | 'refundAmount' | 'refundedTaxAmount' | 'revenueCenter' | 'revenueClass' | 'salesVarLw' | 'salesVarLwPct' | 'salesVarLy' | 'salesVarLyPct' | 'salesMixByPct' | 'salesPerGuest' | 'salesPerGuestLw' | 'salesPerGuestLy' | 'scheduledShiftEnd' | 'scheduledShiftStart' | 'settlementBatchDate' | 'shiftDurationHrs' | 'subtotal' | 'taxCollected' | 'taxName' | 'taxRate' | 'taxableSales' | 'ticketClosed' | 'ticketFee' | 'ticketNumber' | 'ticketOpen' | 'ticketTotal' | 'timeOpenMins' | 'tipPct' | 'tipReduction' | 'tipShare' | 'tips' | 'tipsPerHour' | 'totalCollected' | 'totalItemSales' | 'totalModifierSales' | 'totalReturns' | 'totalSales' | 'totalTips' | 'transactionDate' | 'transactionType' | 'untaxedSales' | 'visa' | 'visaReturns' | 'paymentsCount' | 'paymentsAmount' | 'paymentsTotal' | 'refundVoidDescription' | 'refundVoidCount' | 'refundVoidAmount' | 'refundVoidPctSales' | 'discountName' | 'tickets' | 'guests' | 'ticketAverage' | 'guestAverage' | 'net';
|
|
2
2
|
export interface ColumnMetadata {
|
|
3
3
|
titleKey: string;
|
|
4
4
|
shortTitleKey: string;
|
package/dist/index.cjs
CHANGED
|
@@ -22,6 +22,7 @@ var index_exports = {};
|
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
COLUMN_REGISTRY: () => COLUMN_REGISTRY,
|
|
24
24
|
DAILY_SALES_AVAILABLE_COLUMNS: () => DAILY_SALES_AVAILABLE_COLUMNS,
|
|
25
|
+
DAILY_SALES_BY_GROUP_AVAILABLE_COLUMNS: () => DAILY_SALES_BY_GROUP_AVAILABLE_COLUMNS,
|
|
25
26
|
DAILY_SALES_DEFAULT_VISIBLE_COLUMNS: () => DAILY_SALES_DEFAULT_VISIBLE_COLUMNS,
|
|
26
27
|
DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS: () => DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
|
|
27
28
|
DAILY_SALES_DISCOUNTS_DEFAULT_VISIBLE_COLUMNS: () => DAILY_SALES_DISCOUNTS_DEFAULT_VISIBLE_COLUMNS,
|
|
@@ -31,6 +32,7 @@ __export(index_exports, {
|
|
|
31
32
|
DAILY_SALES_REFUNDS_VOIDS_DEFAULT_VISIBLE_COLUMNS: () => DAILY_SALES_REFUNDS_VOIDS_DEFAULT_VISIBLE_COLUMNS,
|
|
32
33
|
DAILY_SALES_TAXES_AVAILABLE_COLUMNS: () => DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
|
|
33
34
|
DAILY_SALES_TAXES_DEFAULT_VISIBLE_COLUMNS: () => DAILY_SALES_TAXES_DEFAULT_VISIBLE_COLUMNS,
|
|
35
|
+
DAILY_SALES_TRENDS_AVAILABLE_COLUMNS: () => DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
34
36
|
ITEM_TAX_AVAILABLE_COLUMNS: () => ITEM_TAX_AVAILABLE_COLUMNS,
|
|
35
37
|
ITEM_TAX_DEFAULT_VISIBLE_COLUMNS: () => ITEM_TAX_DEFAULT_VISIBLE_COLUMNS,
|
|
36
38
|
MODIFIER_MIX_AVAILABLE_COLUMNS: () => MODIFIER_MIX_AVAILABLE_COLUMNS,
|
|
@@ -50,6 +52,7 @@ __export(index_exports, {
|
|
|
50
52
|
dailySalesPaymentsConfig: () => dailySalesPaymentsConfig,
|
|
51
53
|
dailySalesRefundsVoidsConfig: () => dailySalesRefundsVoidsConfig,
|
|
52
54
|
dailySalesTaxesConfig: () => dailySalesTaxesConfig,
|
|
55
|
+
dailySalesTrendsConfig: () => dailySalesTrendsConfig,
|
|
53
56
|
getColumnAlignment: () => getColumnAlignment,
|
|
54
57
|
getColumnMetadata: () => getColumnMetadata,
|
|
55
58
|
isNumericType: () => isNumericType,
|
|
@@ -668,6 +671,31 @@ var COLUMN_REGISTRY = {
|
|
|
668
671
|
titleKey: "common.report-col.discount-name",
|
|
669
672
|
shortTitleKey: "common.report-col.discount-name.short",
|
|
670
673
|
infoTextKey: "common.report-col.discount-name.info"
|
|
674
|
+
},
|
|
675
|
+
tickets: {
|
|
676
|
+
titleKey: "common.report-col.tickets",
|
|
677
|
+
shortTitleKey: "common.report-col.tickets.short",
|
|
678
|
+
infoTextKey: "common.report-col.tickets.info"
|
|
679
|
+
},
|
|
680
|
+
guests: {
|
|
681
|
+
titleKey: "common.report-col.guests",
|
|
682
|
+
shortTitleKey: "common.report-col.guests.short",
|
|
683
|
+
infoTextKey: "common.report-col.guests.info"
|
|
684
|
+
},
|
|
685
|
+
ticketAverage: {
|
|
686
|
+
titleKey: "common.report-col.ticket-average",
|
|
687
|
+
shortTitleKey: "common.report-col.ticket-average.short",
|
|
688
|
+
infoTextKey: "common.report-col.ticket-average.info"
|
|
689
|
+
},
|
|
690
|
+
guestAverage: {
|
|
691
|
+
titleKey: "common.report-col.guest-average",
|
|
692
|
+
shortTitleKey: "common.report-col.guest-average.short",
|
|
693
|
+
infoTextKey: "common.report-col.guest-average.info"
|
|
694
|
+
},
|
|
695
|
+
net: {
|
|
696
|
+
titleKey: "common.report-col.net",
|
|
697
|
+
shortTitleKey: "common.report-col.net.short",
|
|
698
|
+
infoTextKey: "common.report-col.net.info"
|
|
671
699
|
}
|
|
672
700
|
};
|
|
673
701
|
function getColumnMetadata(key) {
|
|
@@ -1214,6 +1242,44 @@ var FIELDS7 = {
|
|
|
1214
1242
|
numeratorField: "salesAmountGross",
|
|
1215
1243
|
denominatorField: "itemsQuantity"
|
|
1216
1244
|
}
|
|
1245
|
+
},
|
|
1246
|
+
ticketsCount: { type: "number", columnKey: "tickets" },
|
|
1247
|
+
guestsCount: { type: "number", columnKey: "guests" },
|
|
1248
|
+
ticketAverage: {
|
|
1249
|
+
type: "money",
|
|
1250
|
+
columnKey: "ticketAverage",
|
|
1251
|
+
footerCalculation: {
|
|
1252
|
+
type: "average",
|
|
1253
|
+
numeratorField: "salesAmountNet",
|
|
1254
|
+
denominatorField: "ticketsCount"
|
|
1255
|
+
}
|
|
1256
|
+
},
|
|
1257
|
+
guestAverage: {
|
|
1258
|
+
type: "money",
|
|
1259
|
+
columnKey: "guestAverage",
|
|
1260
|
+
footerCalculation: {
|
|
1261
|
+
type: "average",
|
|
1262
|
+
numeratorField: "salesAmountNet",
|
|
1263
|
+
denominatorField: "guestsCount"
|
|
1264
|
+
}
|
|
1265
|
+
},
|
|
1266
|
+
ticketAvg: {
|
|
1267
|
+
type: "money",
|
|
1268
|
+
columnKey: "ticketAverage",
|
|
1269
|
+
footerCalculation: {
|
|
1270
|
+
type: "average",
|
|
1271
|
+
numeratorField: "salesAmountNet",
|
|
1272
|
+
denominatorField: "ticketsCount"
|
|
1273
|
+
}
|
|
1274
|
+
},
|
|
1275
|
+
guestAvg: {
|
|
1276
|
+
type: "money",
|
|
1277
|
+
columnKey: "guestAverage",
|
|
1278
|
+
footerCalculation: {
|
|
1279
|
+
type: "average",
|
|
1280
|
+
numeratorField: "salesAmountNet",
|
|
1281
|
+
denominatorField: "guestsCount"
|
|
1282
|
+
}
|
|
1217
1283
|
}
|
|
1218
1284
|
};
|
|
1219
1285
|
var DAILY_SALES_AVAILABLE_COLUMNS = [
|
|
@@ -1223,12 +1289,31 @@ var DAILY_SALES_AVAILABLE_COLUMNS = [
|
|
|
1223
1289
|
"salesAmountNet",
|
|
1224
1290
|
"salesMixPct"
|
|
1225
1291
|
];
|
|
1292
|
+
var DAILY_SALES_BY_GROUP_AVAILABLE_COLUMNS = [
|
|
1293
|
+
"ticketsCount",
|
|
1294
|
+
"guestsCount",
|
|
1295
|
+
"ticketAverage",
|
|
1296
|
+
"guestAverage",
|
|
1297
|
+
"salesAmountNet"
|
|
1298
|
+
];
|
|
1226
1299
|
var DAILY_SALES_DEFAULT_VISIBLE_COLUMNS = DAILY_SALES_AVAILABLE_COLUMNS;
|
|
1227
1300
|
var dailySalesConfig = {
|
|
1228
1301
|
fields: FIELDS7,
|
|
1229
1302
|
availableColumns: DAILY_SALES_AVAILABLE_COLUMNS,
|
|
1230
1303
|
defaultVisibleColumns: DAILY_SALES_DEFAULT_VISIBLE_COLUMNS
|
|
1231
1304
|
};
|
|
1305
|
+
var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS = [
|
|
1306
|
+
"ticketsCount",
|
|
1307
|
+
"guestsCount",
|
|
1308
|
+
"ticketAvg",
|
|
1309
|
+
"guestAvg",
|
|
1310
|
+
"salesAmountNet"
|
|
1311
|
+
];
|
|
1312
|
+
var dailySalesTrendsConfig = {
|
|
1313
|
+
fields: FIELDS7,
|
|
1314
|
+
availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
1315
|
+
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS
|
|
1316
|
+
};
|
|
1232
1317
|
|
|
1233
1318
|
// src/reports/dailySalesPayments.ts
|
|
1234
1319
|
var FIRST_COLUMN_WIDTH5 = 240;
|
|
@@ -1313,6 +1398,7 @@ var dailySalesTaxesConfig = {
|
|
|
1313
1398
|
0 && (module.exports = {
|
|
1314
1399
|
COLUMN_REGISTRY,
|
|
1315
1400
|
DAILY_SALES_AVAILABLE_COLUMNS,
|
|
1401
|
+
DAILY_SALES_BY_GROUP_AVAILABLE_COLUMNS,
|
|
1316
1402
|
DAILY_SALES_DEFAULT_VISIBLE_COLUMNS,
|
|
1317
1403
|
DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
|
|
1318
1404
|
DAILY_SALES_DISCOUNTS_DEFAULT_VISIBLE_COLUMNS,
|
|
@@ -1322,6 +1408,7 @@ var dailySalesTaxesConfig = {
|
|
|
1322
1408
|
DAILY_SALES_REFUNDS_VOIDS_DEFAULT_VISIBLE_COLUMNS,
|
|
1323
1409
|
DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
|
|
1324
1410
|
DAILY_SALES_TAXES_DEFAULT_VISIBLE_COLUMNS,
|
|
1411
|
+
DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
1325
1412
|
ITEM_TAX_AVAILABLE_COLUMNS,
|
|
1326
1413
|
ITEM_TAX_DEFAULT_VISIBLE_COLUMNS,
|
|
1327
1414
|
MODIFIER_MIX_AVAILABLE_COLUMNS,
|
|
@@ -1341,6 +1428,7 @@ var dailySalesTaxesConfig = {
|
|
|
1341
1428
|
dailySalesPaymentsConfig,
|
|
1342
1429
|
dailySalesRefundsVoidsConfig,
|
|
1343
1430
|
dailySalesTaxesConfig,
|
|
1431
|
+
dailySalesTrendsConfig,
|
|
1344
1432
|
getColumnAlignment,
|
|
1345
1433
|
getColumnMetadata,
|
|
1346
1434
|
isNumericType,
|
package/dist/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ export { ticketLiveConfig, TICKET_LIVE_AVAILABLE_COLUMNS, TICKET_LIVE_DEFAULT_VI
|
|
|
10
10
|
export { productMixConfig, PRODUCT_MIX_AVAILABLE_COLUMNS, PRODUCT_MIX_DEFAULT_VISIBLE_COLUMNS, PRODUCT_MIX_CHART_FIELDS, } from './reports/productMix';
|
|
11
11
|
export { modifierMixConfig, MODIFIER_MIX_AVAILABLE_COLUMNS, MODIFIER_MIX_DEFAULT_VISIBLE_COLUMNS, } from './reports/modifierMix';
|
|
12
12
|
export { itemTaxConfig, ITEM_TAX_AVAILABLE_COLUMNS, ITEM_TAX_DEFAULT_VISIBLE_COLUMNS } from './reports/itemTax';
|
|
13
|
-
export { dailySalesConfig, DAILY_SALES_AVAILABLE_COLUMNS, DAILY_SALES_DEFAULT_VISIBLE_COLUMNS, } from './reports/dailySales';
|
|
13
|
+
export { dailySalesConfig, dailySalesTrendsConfig, DAILY_SALES_AVAILABLE_COLUMNS, DAILY_SALES_DEFAULT_VISIBLE_COLUMNS, DAILY_SALES_BY_GROUP_AVAILABLE_COLUMNS, DAILY_SALES_TRENDS_AVAILABLE_COLUMNS, } from './reports/dailySales';
|
|
14
14
|
export { dailySalesPaymentsConfig, DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS, DAILY_SALES_PAYMENTS_DEFAULT_VISIBLE_COLUMNS, } from './reports/dailySalesPayments';
|
|
15
15
|
export { dailySalesDiscountsConfig, DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS, DAILY_SALES_DISCOUNTS_DEFAULT_VISIBLE_COLUMNS, } from './reports/dailySalesDiscounts';
|
|
16
16
|
export { dailySalesRefundsVoidsConfig, DAILY_SALES_REFUNDS_VOIDS_AVAILABLE_COLUMNS, DAILY_SALES_REFUNDS_VOIDS_DEFAULT_VISIBLE_COLUMNS, } from './reports/dailySalesRefundsVoids';
|
package/dist/index.js
CHANGED
|
@@ -604,6 +604,31 @@ var COLUMN_REGISTRY = {
|
|
|
604
604
|
titleKey: "common.report-col.discount-name",
|
|
605
605
|
shortTitleKey: "common.report-col.discount-name.short",
|
|
606
606
|
infoTextKey: "common.report-col.discount-name.info"
|
|
607
|
+
},
|
|
608
|
+
tickets: {
|
|
609
|
+
titleKey: "common.report-col.tickets",
|
|
610
|
+
shortTitleKey: "common.report-col.tickets.short",
|
|
611
|
+
infoTextKey: "common.report-col.tickets.info"
|
|
612
|
+
},
|
|
613
|
+
guests: {
|
|
614
|
+
titleKey: "common.report-col.guests",
|
|
615
|
+
shortTitleKey: "common.report-col.guests.short",
|
|
616
|
+
infoTextKey: "common.report-col.guests.info"
|
|
617
|
+
},
|
|
618
|
+
ticketAverage: {
|
|
619
|
+
titleKey: "common.report-col.ticket-average",
|
|
620
|
+
shortTitleKey: "common.report-col.ticket-average.short",
|
|
621
|
+
infoTextKey: "common.report-col.ticket-average.info"
|
|
622
|
+
},
|
|
623
|
+
guestAverage: {
|
|
624
|
+
titleKey: "common.report-col.guest-average",
|
|
625
|
+
shortTitleKey: "common.report-col.guest-average.short",
|
|
626
|
+
infoTextKey: "common.report-col.guest-average.info"
|
|
627
|
+
},
|
|
628
|
+
net: {
|
|
629
|
+
titleKey: "common.report-col.net",
|
|
630
|
+
shortTitleKey: "common.report-col.net.short",
|
|
631
|
+
infoTextKey: "common.report-col.net.info"
|
|
607
632
|
}
|
|
608
633
|
};
|
|
609
634
|
function getColumnMetadata(key) {
|
|
@@ -1150,6 +1175,44 @@ var FIELDS7 = {
|
|
|
1150
1175
|
numeratorField: "salesAmountGross",
|
|
1151
1176
|
denominatorField: "itemsQuantity"
|
|
1152
1177
|
}
|
|
1178
|
+
},
|
|
1179
|
+
ticketsCount: { type: "number", columnKey: "tickets" },
|
|
1180
|
+
guestsCount: { type: "number", columnKey: "guests" },
|
|
1181
|
+
ticketAverage: {
|
|
1182
|
+
type: "money",
|
|
1183
|
+
columnKey: "ticketAverage",
|
|
1184
|
+
footerCalculation: {
|
|
1185
|
+
type: "average",
|
|
1186
|
+
numeratorField: "salesAmountNet",
|
|
1187
|
+
denominatorField: "ticketsCount"
|
|
1188
|
+
}
|
|
1189
|
+
},
|
|
1190
|
+
guestAverage: {
|
|
1191
|
+
type: "money",
|
|
1192
|
+
columnKey: "guestAverage",
|
|
1193
|
+
footerCalculation: {
|
|
1194
|
+
type: "average",
|
|
1195
|
+
numeratorField: "salesAmountNet",
|
|
1196
|
+
denominatorField: "guestsCount"
|
|
1197
|
+
}
|
|
1198
|
+
},
|
|
1199
|
+
ticketAvg: {
|
|
1200
|
+
type: "money",
|
|
1201
|
+
columnKey: "ticketAverage",
|
|
1202
|
+
footerCalculation: {
|
|
1203
|
+
type: "average",
|
|
1204
|
+
numeratorField: "salesAmountNet",
|
|
1205
|
+
denominatorField: "ticketsCount"
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
guestAvg: {
|
|
1209
|
+
type: "money",
|
|
1210
|
+
columnKey: "guestAverage",
|
|
1211
|
+
footerCalculation: {
|
|
1212
|
+
type: "average",
|
|
1213
|
+
numeratorField: "salesAmountNet",
|
|
1214
|
+
denominatorField: "guestsCount"
|
|
1215
|
+
}
|
|
1153
1216
|
}
|
|
1154
1217
|
};
|
|
1155
1218
|
var DAILY_SALES_AVAILABLE_COLUMNS = [
|
|
@@ -1159,12 +1222,31 @@ var DAILY_SALES_AVAILABLE_COLUMNS = [
|
|
|
1159
1222
|
"salesAmountNet",
|
|
1160
1223
|
"salesMixPct"
|
|
1161
1224
|
];
|
|
1225
|
+
var DAILY_SALES_BY_GROUP_AVAILABLE_COLUMNS = [
|
|
1226
|
+
"ticketsCount",
|
|
1227
|
+
"guestsCount",
|
|
1228
|
+
"ticketAverage",
|
|
1229
|
+
"guestAverage",
|
|
1230
|
+
"salesAmountNet"
|
|
1231
|
+
];
|
|
1162
1232
|
var DAILY_SALES_DEFAULT_VISIBLE_COLUMNS = DAILY_SALES_AVAILABLE_COLUMNS;
|
|
1163
1233
|
var dailySalesConfig = {
|
|
1164
1234
|
fields: FIELDS7,
|
|
1165
1235
|
availableColumns: DAILY_SALES_AVAILABLE_COLUMNS,
|
|
1166
1236
|
defaultVisibleColumns: DAILY_SALES_DEFAULT_VISIBLE_COLUMNS
|
|
1167
1237
|
};
|
|
1238
|
+
var DAILY_SALES_TRENDS_AVAILABLE_COLUMNS = [
|
|
1239
|
+
"ticketsCount",
|
|
1240
|
+
"guestsCount",
|
|
1241
|
+
"ticketAvg",
|
|
1242
|
+
"guestAvg",
|
|
1243
|
+
"salesAmountNet"
|
|
1244
|
+
];
|
|
1245
|
+
var dailySalesTrendsConfig = {
|
|
1246
|
+
fields: FIELDS7,
|
|
1247
|
+
availableColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
1248
|
+
defaultVisibleColumns: DAILY_SALES_TRENDS_AVAILABLE_COLUMNS
|
|
1249
|
+
};
|
|
1168
1250
|
|
|
1169
1251
|
// src/reports/dailySalesPayments.ts
|
|
1170
1252
|
var FIRST_COLUMN_WIDTH5 = 240;
|
|
@@ -1248,6 +1330,7 @@ var dailySalesTaxesConfig = {
|
|
|
1248
1330
|
export {
|
|
1249
1331
|
COLUMN_REGISTRY,
|
|
1250
1332
|
DAILY_SALES_AVAILABLE_COLUMNS,
|
|
1333
|
+
DAILY_SALES_BY_GROUP_AVAILABLE_COLUMNS,
|
|
1251
1334
|
DAILY_SALES_DEFAULT_VISIBLE_COLUMNS,
|
|
1252
1335
|
DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS,
|
|
1253
1336
|
DAILY_SALES_DISCOUNTS_DEFAULT_VISIBLE_COLUMNS,
|
|
@@ -1257,6 +1340,7 @@ export {
|
|
|
1257
1340
|
DAILY_SALES_REFUNDS_VOIDS_DEFAULT_VISIBLE_COLUMNS,
|
|
1258
1341
|
DAILY_SALES_TAXES_AVAILABLE_COLUMNS,
|
|
1259
1342
|
DAILY_SALES_TAXES_DEFAULT_VISIBLE_COLUMNS,
|
|
1343
|
+
DAILY_SALES_TRENDS_AVAILABLE_COLUMNS,
|
|
1260
1344
|
ITEM_TAX_AVAILABLE_COLUMNS,
|
|
1261
1345
|
ITEM_TAX_DEFAULT_VISIBLE_COLUMNS,
|
|
1262
1346
|
MODIFIER_MIX_AVAILABLE_COLUMNS,
|
|
@@ -1276,6 +1360,7 @@ export {
|
|
|
1276
1360
|
dailySalesPaymentsConfig,
|
|
1277
1361
|
dailySalesRefundsVoidsConfig,
|
|
1278
1362
|
dailySalesTaxesConfig,
|
|
1363
|
+
dailySalesTrendsConfig,
|
|
1279
1364
|
getColumnAlignment,
|
|
1280
1365
|
getColumnMetadata,
|
|
1281
1366
|
isNumericType,
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { type ReportConfig } from '../types';
|
|
2
|
-
type DailySalesField = 'groupById' | 'groupByName' | 'itemsQuantity' | 'salesAmountGross' | 'discountsAmount' | 'inclusiveTaxesAmount' | 'salesAmountNet' | 'salesMixPct' | 'avgPrice';
|
|
2
|
+
type DailySalesField = 'groupById' | 'groupByName' | 'itemsQuantity' | 'salesAmountGross' | 'discountsAmount' | 'inclusiveTaxesAmount' | 'salesAmountNet' | 'salesMixPct' | 'avgPrice' | 'ticketsCount' | 'guestsCount' | 'ticketAverage' | 'guestAverage' | 'ticketAvg' | 'guestAvg';
|
|
3
3
|
export declare const DAILY_SALES_AVAILABLE_COLUMNS: DailySalesField[];
|
|
4
|
+
export declare const DAILY_SALES_BY_GROUP_AVAILABLE_COLUMNS: DailySalesField[];
|
|
4
5
|
export declare const DAILY_SALES_DEFAULT_VISIBLE_COLUMNS: DailySalesField[];
|
|
5
6
|
export declare const dailySalesConfig: ReportConfig<DailySalesField>;
|
|
7
|
+
export declare const DAILY_SALES_TRENDS_AVAILABLE_COLUMNS: DailySalesField[];
|
|
8
|
+
export declare const dailySalesTrendsConfig: ReportConfig<DailySalesField>;
|
|
6
9
|
export {};
|
package/dist/reports/index.d.ts
CHANGED
|
@@ -4,6 +4,6 @@ export { ticketLiveConfig, TICKET_LIVE_AVAILABLE_COLUMNS, TICKET_LIVE_DEFAULT_VI
|
|
|
4
4
|
export { productMixConfig, PRODUCT_MIX_AVAILABLE_COLUMNS, PRODUCT_MIX_DEFAULT_VISIBLE_COLUMNS, PRODUCT_MIX_CHART_FIELDS, } from './productMix';
|
|
5
5
|
export { modifierMixConfig, MODIFIER_MIX_AVAILABLE_COLUMNS, MODIFIER_MIX_DEFAULT_VISIBLE_COLUMNS } from './modifierMix';
|
|
6
6
|
export { itemTaxConfig, ITEM_TAX_AVAILABLE_COLUMNS, ITEM_TAX_DEFAULT_VISIBLE_COLUMNS } from './itemTax';
|
|
7
|
-
export { dailySalesConfig, DAILY_SALES_AVAILABLE_COLUMNS, DAILY_SALES_DEFAULT_VISIBLE_COLUMNS } from './dailySales';
|
|
7
|
+
export { dailySalesConfig, dailySalesTrendsConfig, DAILY_SALES_AVAILABLE_COLUMNS, DAILY_SALES_DEFAULT_VISIBLE_COLUMNS, DAILY_SALES_BY_GROUP_AVAILABLE_COLUMNS, DAILY_SALES_TRENDS_AVAILABLE_COLUMNS, } from './dailySales';
|
|
8
8
|
export { dailySalesPaymentsConfig, DAILY_SALES_PAYMENTS_AVAILABLE_COLUMNS, DAILY_SALES_PAYMENTS_DEFAULT_VISIBLE_COLUMNS, } from './dailySalesPayments';
|
|
9
9
|
export { dailySalesDiscountsConfig, DAILY_SALES_DISCOUNTS_AVAILABLE_COLUMNS, DAILY_SALES_DISCOUNTS_DEFAULT_VISIBLE_COLUMNS, } from './dailySalesDiscounts';
|