move reports

This commit is contained in:
2026-07-26 16:33:55 -05:00
parent b0081080f6
commit 363a14d49b
6 changed files with 934 additions and 868 deletions

View File

@@ -26,6 +26,7 @@ import './modals/email-modal.js';
import { setDefaultDate } from './utils/helpers.js';
import { renderAccountingView } from './views/accounting-view.js';
import { renderReportsView } from './views/reports-view.js';
import { renderSalesTaxView } from './views/salestax-view.js';
// ============================================================
// Tab Management
@@ -54,6 +55,8 @@ function showTab(tabName) {
renderAccountingView();
} else if (tabName === 'reports') {
renderReportsView();
} else if (tabName === 'salestax') {
renderSalesTaxView();
}
}
@@ -79,7 +82,7 @@ document.addEventListener('DOMContentLoaded', () => {
// Hash-based navigation (e.g. after OAuth redirect /#settings)
if (window.location.hash) {
const hashTab = window.location.hash.replace('#', '');
if (['quotes', 'invoices', 'customers', 'accounting', 'reports', 'settings'].includes(hashTab)) {
if (['quotes', 'invoices', 'customers', 'accounting', 'reports', 'salestax', 'settings'].includes(hashTab)) {
showTab(hashTab);
}
}