@harbortouch/skytab-analytics-report-utils 0.21.0 → 0.21.1

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.
@@ -2134,6 +2134,7 @@ var enUS = {
2134
2134
  "common.report-section.rev-class-footer.balance-payments": "Balance Payments",
2135
2135
  "common.report-section.rev-class-footer.gift-card-sales": "Gift Card Sales",
2136
2136
  "common.report-section.rev-class-footer.non-sales-revenue": "Non-Sales Revenue",
2137
+ "common.report-section.rev-class-footer.house-account": "House Account",
2137
2138
  "common.report-section.rev-class-footer.total-accountable": "Total Accountable",
2138
2139
  "scheduled-reports.period": "Period",
2139
2140
  "components.form.field.group-by": "Group By",
@@ -2620,6 +2621,7 @@ var enUS2 = {
2620
2621
  "common.report-section.rev-class-footer.balance-payments": false,
2621
2622
  "common.report-section.rev-class-footer.gift-card-sales": false,
2622
2623
  "common.report-section.rev-class-footer.non-sales-revenue": false,
2624
+ "common.report-section.rev-class-footer.house-account": false,
2623
2625
  "common.report-section.rev-class-footer.total-accountable": false,
2624
2626
  "scheduled-reports.period": false,
2625
2627
  "components.form.field.group-by": false,
@@ -3106,6 +3108,7 @@ var enUS3 = {
3106
3108
  "common.report-section.rev-class-footer.balance-payments": false,
3107
3109
  "common.report-section.rev-class-footer.gift-card-sales": false,
3108
3110
  "common.report-section.rev-class-footer.non-sales-revenue": false,
3111
+ "common.report-section.rev-class-footer.house-account": false,
3109
3112
  "common.report-section.rev-class-footer.total-accountable": false,
3110
3113
  "scheduled-reports.period": false,
3111
3114
  "components.form.field.group-by": false,
@@ -2242,6 +2242,7 @@ var enUS = {
2242
2242
  "common.report-section.rev-class-footer.balance-payments": false,
2243
2243
  "common.report-section.rev-class-footer.gift-card-sales": false,
2244
2244
  "common.report-section.rev-class-footer.non-sales-revenue": false,
2245
+ "common.report-section.rev-class-footer.house-account": false,
2245
2246
  "common.report-section.rev-class-footer.total-accountable": false,
2246
2247
  "scheduled-reports.period": false,
2247
2248
  "components.form.field.group-by": false,
@@ -2728,6 +2729,7 @@ var enUS2 = {
2728
2729
  "common.report-section.rev-class-footer.balance-payments": false,
2729
2730
  "common.report-section.rev-class-footer.gift-card-sales": false,
2730
2731
  "common.report-section.rev-class-footer.non-sales-revenue": false,
2732
+ "common.report-section.rev-class-footer.house-account": false,
2731
2733
  "common.report-section.rev-class-footer.total-accountable": false,
2732
2734
  "scheduled-reports.period": false,
2733
2735
  "components.form.field.group-by": false,
@@ -3214,6 +3216,7 @@ var enUS3 = {
3214
3216
  "common.report-section.rev-class-footer.balance-payments": "Balance Payments",
3215
3217
  "common.report-section.rev-class-footer.gift-card-sales": "Gift Card Sales",
3216
3218
  "common.report-section.rev-class-footer.non-sales-revenue": "Non-Sales Revenue",
3219
+ "common.report-section.rev-class-footer.house-account": "House Account",
3217
3220
  "common.report-section.rev-class-footer.total-accountable": "Total Accountable",
3218
3221
  "scheduled-reports.period": "Period",
3219
3222
  "components.form.field.group-by": "Group By",
@@ -1,4 +1,4 @@
1
- import { R as ReportType, A as AnalyticsField } from '../report-BOL9p86o.cjs';
1
+ import { R as ReportType, A as AnalyticsField } from '../report-cTbF3q_4.cjs';
2
2
  import { E as ExportTable, a as ExportFilter } from '../types-BzLsgnfc.cjs';
3
3
 
4
4
  interface ReportDocumentSection {
@@ -1,4 +1,4 @@
1
- import { R as ReportType, A as AnalyticsField } from '../report-BOL9p86o.js';
1
+ import { R as ReportType, A as AnalyticsField } from '../report-cTbF3q_4.js';
2
2
  import { E as ExportTable, a as ExportFilter } from '../types-BzLsgnfc.js';
3
3
 
4
4
  interface ReportDocumentSection {
@@ -7,7 +7,7 @@ import {
7
7
  getReportConfig,
8
8
  getReportFormattingLocaleOptions,
9
9
  resolveTranslate
10
- } from "../chunk-7NXZJEGU.js";
10
+ } from "../chunk-Y7HQPSMO.js";
11
11
 
12
12
  // src/exporters/exportBuilder.ts
13
13
  import { format, isValid, parseISO } from "date-fns";
package/dist/index.cjs CHANGED
@@ -1802,6 +1802,7 @@ var DAILY_SALES_REV_CLASS_FOOTER_LABELS = {
1802
1802
  balancePayments: "common.report-section.rev-class-footer.balance-payments",
1803
1803
  giftCardSales: "common.report-section.rev-class-footer.gift-card-sales",
1804
1804
  nonSalesRevenue: "common.report-section.rev-class-footer.non-sales-revenue",
1805
+ houseAccount: "common.report-section.rev-class-footer.house-account",
1805
1806
  totalAccountable: "common.report-section.rev-class-footer.total-accountable"
1806
1807
  };
1807
1808
  var DAILY_SALES_SECTIONS = [
@@ -1900,6 +1901,18 @@ var REPORT_SECTION_CONFIGS = {
1900
1901
  // src/constants.ts
1901
1902
  var TENDER_TYPE = {
1902
1903
  CASH: "Cash",
1904
+ CHECK: "Check",
1905
+ CREDIT: "Credit",
1906
+ CRYPTO: "Crypto",
1907
+ DEBIT: "Debit",
1908
+ GIFT_CARD: "Gift Card",
1909
+ GIFT_CERTIFICATE: "Gift Certificate",
1910
+ HOUSE_ACCOUNT: "House Account",
1911
+ VIRTUAL: "Virtual",
1912
+ MOBILE_WALLET: "Digital Wallet",
1913
+ PROPERTY_MANAGEMENT_SYSTEM: "PMS",
1914
+ ROOM_CHARGE: "Room Charge",
1915
+ WALK_OUT: "Walk Out",
1903
1916
  CASH_REFUNDS: "Cash Refunds",
1904
1917
  UNKNOWN: "Unknown"
1905
1918
  };
@@ -1915,7 +1928,7 @@ var buildDailySalesCashPayments = (payments, paidOutAmount, gratuitiesPaidOutAmo
1915
1928
  { name: DAILY_SALES_CASH_ROW_LABELS.ccTipsPaidOut, amount: tipsPaidOutAmount }
1916
1929
  ];
1917
1930
  var buildDailySalesRevClassFooter = (inputs) => {
1918
- const totalAccountable = inputs.revClassNetSales + inputs.taxTotal + inputs.gratuitiesTotal + inputs.giftCardSalesTotal - inputs.balancePaymentsTotal + inputs.nonSalesTotal;
1931
+ const totalAccountable = inputs.revClassNetSales + inputs.taxTotal + inputs.gratuitiesTotal + inputs.balancePaymentsTotal + inputs.giftCardSalesTotal + inputs.nonSalesTotal - inputs.houseAccountTotal;
1919
1932
  return [
1920
1933
  { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.taxTotal, salesAmountNet: inputs.taxTotal },
1921
1934
  { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.gratuities, salesAmountNet: inputs.gratuitiesTotal },
@@ -1925,6 +1938,7 @@ var buildDailySalesRevClassFooter = (inputs) => {
1925
1938
  },
1926
1939
  { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.giftCardSales, salesAmountNet: inputs.giftCardSalesTotal },
1927
1940
  { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.nonSalesRevenue, salesAmountNet: inputs.nonSalesTotal },
1941
+ { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.houseAccount, salesAmountNet: inputs.houseAccountTotal },
1928
1942
  { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.totalAccountable, salesAmountNet: totalAccountable }
1929
1943
  ];
1930
1944
  };
@@ -2384,6 +2398,7 @@ var enUS = {
2384
2398
  "common.report-section.rev-class-footer.balance-payments": false,
2385
2399
  "common.report-section.rev-class-footer.gift-card-sales": false,
2386
2400
  "common.report-section.rev-class-footer.non-sales-revenue": false,
2401
+ "common.report-section.rev-class-footer.house-account": false,
2387
2402
  "common.report-section.rev-class-footer.total-accountable": false,
2388
2403
  "scheduled-reports.period": false,
2389
2404
  "components.form.field.group-by": false,
@@ -2870,6 +2885,7 @@ var enUS2 = {
2870
2885
  "common.report-section.rev-class-footer.balance-payments": false,
2871
2886
  "common.report-section.rev-class-footer.gift-card-sales": false,
2872
2887
  "common.report-section.rev-class-footer.non-sales-revenue": false,
2888
+ "common.report-section.rev-class-footer.house-account": false,
2873
2889
  "common.report-section.rev-class-footer.total-accountable": false,
2874
2890
  "scheduled-reports.period": false,
2875
2891
  "components.form.field.group-by": false,
@@ -3356,6 +3372,7 @@ var enUS3 = {
3356
3372
  "common.report-section.rev-class-footer.balance-payments": "Balance Payments",
3357
3373
  "common.report-section.rev-class-footer.gift-card-sales": "Gift Card Sales",
3358
3374
  "common.report-section.rev-class-footer.non-sales-revenue": "Non-Sales Revenue",
3375
+ "common.report-section.rev-class-footer.house-account": "House Account",
3359
3376
  "common.report-section.rev-class-footer.total-accountable": "Total Accountable",
3360
3377
  "scheduled-reports.period": "Period",
3361
3378
  "components.form.field.group-by": "Group By",
package/dist/index.d.cts CHANGED
@@ -1,5 +1,5 @@
1
- import { M as MessageKey, F as FieldType, C as ColumnAlignment, a as ColumnPresentationConfig, b as ColumnGroupConfig, R as ReportType, c as ReportConfig, d as ReportColumnKey } from './report-BOL9p86o.cjs';
2
- export { e as COLUMN_REGISTRY, f as ColumnMessageKey, g as ColumnMetadata, h as FooterCalculation, i as FooterCalculationType, j as Report, k as getColumnExportHeaderLabel, l as getColumnMetadata, m as getReportConfig, n as getReportExportFileName } from './report-BOL9p86o.cjs';
1
+ import { M as MessageKey, F as FieldType, C as ColumnAlignment, a as ColumnPresentationConfig, b as ColumnGroupConfig, R as ReportType, c as ReportConfig, d as ReportColumnKey } from './report-cTbF3q_4.cjs';
2
+ export { e as COLUMN_REGISTRY, f as ColumnMessageKey, g as ColumnMetadata, h as FooterCalculation, i as FooterCalculationType, j as Report, k as getColumnExportHeaderLabel, l as getColumnMetadata, m as getReportConfig, n as getReportExportFileName } from './report-cTbF3q_4.cjs';
3
3
 
4
4
  type SupportedLocale = 'en-US' | 'en-GB' | 'es-ES';
5
5
  declare function resolveTranslate(key: MessageKey, locale: string): string;
@@ -126,6 +126,7 @@ declare const buildDailySalesRevClassFooter: (inputs: {
126
126
  giftCardSalesTotal: number;
127
127
  balancePaymentsTotal: number;
128
128
  nonSalesTotal: number;
129
+ houseAccountTotal: number;
129
130
  }) => ({
130
131
  groupByName: "common.report-section.rev-class-footer.tax-total";
131
132
  salesAmountNet: number;
@@ -141,6 +142,9 @@ declare const buildDailySalesRevClassFooter: (inputs: {
141
142
  } | {
142
143
  groupByName: "common.report-section.rev-class-footer.non-sales-revenue";
143
144
  salesAmountNet: number;
145
+ } | {
146
+ groupByName: "common.report-section.rev-class-footer.house-account";
147
+ salesAmountNet: number;
144
148
  } | {
145
149
  groupByName: "common.report-section.rev-class-footer.total-accountable";
146
150
  salesAmountNet: number;
@@ -244,12 +248,25 @@ declare const DAILY_SALES_REV_CLASS_FOOTER_LABELS: {
244
248
  readonly balancePayments: "common.report-section.rev-class-footer.balance-payments";
245
249
  readonly giftCardSales: "common.report-section.rev-class-footer.gift-card-sales";
246
250
  readonly nonSalesRevenue: "common.report-section.rev-class-footer.non-sales-revenue";
251
+ readonly houseAccount: "common.report-section.rev-class-footer.house-account";
247
252
  readonly totalAccountable: "common.report-section.rev-class-footer.total-accountable";
248
253
  };
249
254
  declare const REPORT_SECTION_CONFIGS: Partial<Record<ReportType, ReportSectionDefinition[]>>;
250
255
 
251
256
  declare const TENDER_TYPE: {
252
257
  readonly CASH: "Cash";
258
+ readonly CHECK: "Check";
259
+ readonly CREDIT: "Credit";
260
+ readonly CRYPTO: "Crypto";
261
+ readonly DEBIT: "Debit";
262
+ readonly GIFT_CARD: "Gift Card";
263
+ readonly GIFT_CERTIFICATE: "Gift Certificate";
264
+ readonly HOUSE_ACCOUNT: "House Account";
265
+ readonly VIRTUAL: "Virtual";
266
+ readonly MOBILE_WALLET: "Digital Wallet";
267
+ readonly PROPERTY_MANAGEMENT_SYSTEM: "PMS";
268
+ readonly ROOM_CHARGE: "Room Charge";
269
+ readonly WALK_OUT: "Walk Out";
253
270
  readonly CASH_REFUNDS: "Cash Refunds";
254
271
  readonly UNKNOWN: "Unknown";
255
272
  };
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { M as MessageKey, F as FieldType, C as ColumnAlignment, a as ColumnPresentationConfig, b as ColumnGroupConfig, R as ReportType, c as ReportConfig, d as ReportColumnKey } from './report-BOL9p86o.js';
2
- export { e as COLUMN_REGISTRY, f as ColumnMessageKey, g as ColumnMetadata, h as FooterCalculation, i as FooterCalculationType, j as Report, k as getColumnExportHeaderLabel, l as getColumnMetadata, m as getReportConfig, n as getReportExportFileName } from './report-BOL9p86o.js';
1
+ import { M as MessageKey, F as FieldType, C as ColumnAlignment, a as ColumnPresentationConfig, b as ColumnGroupConfig, R as ReportType, c as ReportConfig, d as ReportColumnKey } from './report-cTbF3q_4.js';
2
+ export { e as COLUMN_REGISTRY, f as ColumnMessageKey, g as ColumnMetadata, h as FooterCalculation, i as FooterCalculationType, j as Report, k as getColumnExportHeaderLabel, l as getColumnMetadata, m as getReportConfig, n as getReportExportFileName } from './report-cTbF3q_4.js';
3
3
 
4
4
  type SupportedLocale = 'en-US' | 'en-GB' | 'es-ES';
5
5
  declare function resolveTranslate(key: MessageKey, locale: string): string;
@@ -126,6 +126,7 @@ declare const buildDailySalesRevClassFooter: (inputs: {
126
126
  giftCardSalesTotal: number;
127
127
  balancePaymentsTotal: number;
128
128
  nonSalesTotal: number;
129
+ houseAccountTotal: number;
129
130
  }) => ({
130
131
  groupByName: "common.report-section.rev-class-footer.tax-total";
131
132
  salesAmountNet: number;
@@ -141,6 +142,9 @@ declare const buildDailySalesRevClassFooter: (inputs: {
141
142
  } | {
142
143
  groupByName: "common.report-section.rev-class-footer.non-sales-revenue";
143
144
  salesAmountNet: number;
145
+ } | {
146
+ groupByName: "common.report-section.rev-class-footer.house-account";
147
+ salesAmountNet: number;
144
148
  } | {
145
149
  groupByName: "common.report-section.rev-class-footer.total-accountable";
146
150
  salesAmountNet: number;
@@ -244,12 +248,25 @@ declare const DAILY_SALES_REV_CLASS_FOOTER_LABELS: {
244
248
  readonly balancePayments: "common.report-section.rev-class-footer.balance-payments";
245
249
  readonly giftCardSales: "common.report-section.rev-class-footer.gift-card-sales";
246
250
  readonly nonSalesRevenue: "common.report-section.rev-class-footer.non-sales-revenue";
251
+ readonly houseAccount: "common.report-section.rev-class-footer.house-account";
247
252
  readonly totalAccountable: "common.report-section.rev-class-footer.total-accountable";
248
253
  };
249
254
  declare const REPORT_SECTION_CONFIGS: Partial<Record<ReportType, ReportSectionDefinition[]>>;
250
255
 
251
256
  declare const TENDER_TYPE: {
252
257
  readonly CASH: "Cash";
258
+ readonly CHECK: "Check";
259
+ readonly CREDIT: "Credit";
260
+ readonly CRYPTO: "Crypto";
261
+ readonly DEBIT: "Debit";
262
+ readonly GIFT_CARD: "Gift Card";
263
+ readonly GIFT_CERTIFICATE: "Gift Certificate";
264
+ readonly HOUSE_ACCOUNT: "House Account";
265
+ readonly VIRTUAL: "Virtual";
266
+ readonly MOBILE_WALLET: "Digital Wallet";
267
+ readonly PROPERTY_MANAGEMENT_SYSTEM: "PMS";
268
+ readonly ROOM_CHARGE: "Room Charge";
269
+ readonly WALK_OUT: "Walk Out";
253
270
  readonly CASH_REFUNDS: "Cash Refunds";
254
271
  readonly UNKNOWN: "Unknown";
255
272
  };
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ import {
38
38
  salesSummaryConfig,
39
39
  ticketLiveConfig,
40
40
  ticketSummaryConfig
41
- } from "./chunk-7NXZJEGU.js";
41
+ } from "./chunk-Y7HQPSMO.js";
42
42
 
43
43
  // src/utils/alignment.ts
44
44
  function getColumnAlignment(type) {
@@ -91,6 +91,7 @@ var DAILY_SALES_REV_CLASS_FOOTER_LABELS = {
91
91
  balancePayments: "common.report-section.rev-class-footer.balance-payments",
92
92
  giftCardSales: "common.report-section.rev-class-footer.gift-card-sales",
93
93
  nonSalesRevenue: "common.report-section.rev-class-footer.non-sales-revenue",
94
+ houseAccount: "common.report-section.rev-class-footer.house-account",
94
95
  totalAccountable: "common.report-section.rev-class-footer.total-accountable"
95
96
  };
96
97
  var DAILY_SALES_SECTIONS = [
@@ -189,6 +190,18 @@ var REPORT_SECTION_CONFIGS = {
189
190
  // src/constants.ts
190
191
  var TENDER_TYPE = {
191
192
  CASH: "Cash",
193
+ CHECK: "Check",
194
+ CREDIT: "Credit",
195
+ CRYPTO: "Crypto",
196
+ DEBIT: "Debit",
197
+ GIFT_CARD: "Gift Card",
198
+ GIFT_CERTIFICATE: "Gift Certificate",
199
+ HOUSE_ACCOUNT: "House Account",
200
+ VIRTUAL: "Virtual",
201
+ MOBILE_WALLET: "Digital Wallet",
202
+ PROPERTY_MANAGEMENT_SYSTEM: "PMS",
203
+ ROOM_CHARGE: "Room Charge",
204
+ WALK_OUT: "Walk Out",
192
205
  CASH_REFUNDS: "Cash Refunds",
193
206
  UNKNOWN: "Unknown"
194
207
  };
@@ -204,7 +217,7 @@ var buildDailySalesCashPayments = (payments, paidOutAmount, gratuitiesPaidOutAmo
204
217
  { name: DAILY_SALES_CASH_ROW_LABELS.ccTipsPaidOut, amount: tipsPaidOutAmount }
205
218
  ];
206
219
  var buildDailySalesRevClassFooter = (inputs) => {
207
- const totalAccountable = inputs.revClassNetSales + inputs.taxTotal + inputs.gratuitiesTotal + inputs.giftCardSalesTotal - inputs.balancePaymentsTotal + inputs.nonSalesTotal;
220
+ const totalAccountable = inputs.revClassNetSales + inputs.taxTotal + inputs.gratuitiesTotal + inputs.balancePaymentsTotal + inputs.giftCardSalesTotal + inputs.nonSalesTotal - inputs.houseAccountTotal;
208
221
  return [
209
222
  { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.taxTotal, salesAmountNet: inputs.taxTotal },
210
223
  { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.gratuities, salesAmountNet: inputs.gratuitiesTotal },
@@ -214,6 +227,7 @@ var buildDailySalesRevClassFooter = (inputs) => {
214
227
  },
215
228
  { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.giftCardSales, salesAmountNet: inputs.giftCardSalesTotal },
216
229
  { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.nonSalesRevenue, salesAmountNet: inputs.nonSalesTotal },
230
+ { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.houseAccount, salesAmountNet: inputs.houseAccountTotal },
217
231
  { groupByName: DAILY_SALES_REV_CLASS_FOOTER_LABELS.totalAccountable, salesAmountNet: totalAccountable }
218
232
  ];
219
233
  };
@@ -1187,6 +1187,7 @@ declare const enUS: {
1187
1187
  readonly 'common.report-section.rev-class-footer.balance-payments': "Balance Payments";
1188
1188
  readonly 'common.report-section.rev-class-footer.gift-card-sales': "Gift Card Sales";
1189
1189
  readonly 'common.report-section.rev-class-footer.non-sales-revenue': "Non-Sales Revenue";
1190
+ readonly 'common.report-section.rev-class-footer.house-account': "House Account";
1190
1191
  readonly 'common.report-section.rev-class-footer.total-accountable': "Total Accountable";
1191
1192
  readonly 'scheduled-reports.period': "Period";
1192
1193
  readonly 'components.form.field.group-by': "Group By";
@@ -1187,6 +1187,7 @@ declare const enUS: {
1187
1187
  readonly 'common.report-section.rev-class-footer.balance-payments': "Balance Payments";
1188
1188
  readonly 'common.report-section.rev-class-footer.gift-card-sales': "Gift Card Sales";
1189
1189
  readonly 'common.report-section.rev-class-footer.non-sales-revenue': "Non-Sales Revenue";
1190
+ readonly 'common.report-section.rev-class-footer.house-account': "House Account";
1190
1191
  readonly 'common.report-section.rev-class-footer.total-accountable': "Total Accountable";
1191
1192
  readonly 'scheduled-reports.period': "Period";
1192
1193
  readonly 'components.form.field.group-by': "Group By";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@harbortouch/skytab-analytics-report-utils",
3
- "version": "0.21.0",
3
+ "version": "0.21.1",
4
4
  "description": "Centralized report column presentation configuration for SkyTab Analytics",
5
5
  "engines": {
6
6
  "node": ">=22.6.0",