move reports
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user