@managesome/eposmatic-toolkit 0.4.16 → 0.4.19
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/esm/constants/ENUMS.js +1 -0
- package/esm/constants/enums/accounting.js +80 -0
- package/esm/helpers/materialized-reports/materialized-discount-close-day-helpers.js +6 -0
- package/esm/helpers/materialized-reports/materialized-reports-selection-helpers.js +4 -6
- package/esm/helpers/reporting-contract/report-contract.js +1 -0
- package/esm/schemas/models/index.js +2 -0
- package/esm/schemas/models/tenant_chart_of_accounts.js +80 -0
- package/esm/schemas/models/tenant_journal_entries.js +147 -0
- package/esm/schemas/types/index.js +2 -0
- package/esm/schemas/types/tenant_chart_of_accounts.js +1 -0
- package/esm/schemas/types/tenant_journal_entries.js +1 -0
- package/lib/constants/ENUMS.d.ts +1 -0
- package/lib/constants/ENUMS.js +1 -0
- package/lib/constants/enums/accounting.d.ts +62 -0
- package/lib/constants/enums/accounting.js +83 -0
- package/lib/helpers/materialized-reports/materialized-discount-close-day-helpers.d.ts +7 -0
- package/lib/helpers/materialized-reports/materialized-discount-close-day-helpers.js +6 -0
- package/lib/helpers/materialized-reports/materialized-reports-selection-helpers.js +4 -6
- package/lib/helpers/reporting-contract/report-contract.d.ts +2 -1
- package/lib/helpers/reporting-contract/report-contract.js +1 -0
- package/lib/schemas/models/index.d.ts +2 -0
- package/lib/schemas/models/index.js +2 -0
- package/lib/schemas/models/tenant_chart_of_accounts.d.ts +66 -0
- package/lib/schemas/models/tenant_chart_of_accounts.js +83 -0
- package/lib/schemas/models/tenant_hr_documents.d.ts +3 -3
- package/lib/schemas/models/tenant_journal_entries.d.ts +132 -0
- package/lib/schemas/models/tenant_journal_entries.js +150 -0
- package/lib/schemas/types/index.d.ts +2 -0
- package/lib/schemas/types/index.js +2 -0
- package/lib/schemas/types/tenant_chart_of_accounts.d.ts +23 -0
- package/lib/schemas/types/tenant_chart_of_accounts.js +2 -0
- package/lib/schemas/types/tenant_journal_entries.d.ts +34 -0
- package/lib/schemas/types/tenant_journal_entries.js +2 -0
- package/lib/tests/materialized-reports/materialized-discount-close-day.test.js +16 -0
- package/lib/tests/materialized-reports/materialized-reports-selection-helpers.test.js +26 -18
- package/lib/tests/reporting-contract.test.js +7 -0
- package/package.json +1 -1
|
@@ -35,6 +35,13 @@ describe('report contract capabilities', () => {
|
|
|
35
35
|
expect((0, reporting_contract_1.getReportCapabilities)('NOT_A_REPORT')).toBeNull();
|
|
36
36
|
});
|
|
37
37
|
it('builds the shared live and historical paths', () => {
|
|
38
|
+
// The Overview page resolves BOTH modes through this builder — the admin
|
|
39
|
+
// slice never hardcodes `/reports/overview`.
|
|
40
|
+
expect((0, reporting_contract_1.buildReportPath)(reporting_contract_1.REPORT_KEY_ENUM.OVERVIEW, reporting_contract_1.REPORT_MODE_ENUM.LIVE)).toBe('/reports/overview/live');
|
|
41
|
+
expect((0, reporting_contract_1.buildReportPath)(reporting_contract_1.REPORT_KEY_ENUM.OVERVIEW, reporting_contract_1.REPORT_MODE_ENUM.HISTORICAL)).toBe('/reports/overview/historical');
|
|
42
|
+
expect((0, reporting_contract_1.buildReportPath)(reporting_contract_1.REPORT_KEY_ENUM.OVERVIEW, reporting_contract_1.REPORT_MODE_ENUM.HISTORICAL, {
|
|
43
|
+
details: true,
|
|
44
|
+
})).toBeNull();
|
|
38
45
|
expect((0, reporting_contract_1.buildReportPath)(reporting_contract_1.REPORT_KEY_ENUM.SALES_COMPARISON, reporting_contract_1.REPORT_MODE_ENUM.LIVE)).toBe('/reports/sales-comparison/live');
|
|
39
46
|
expect((0, reporting_contract_1.buildReportPath)(reporting_contract_1.REPORT_KEY_ENUM.SALES_COMPARISON, reporting_contract_1.REPORT_MODE_ENUM.HISTORICAL, {
|
|
40
47
|
details: true,
|