new reports

This commit is contained in:
2026-07-25 17:54:31 -05:00
parent 248affc0f9
commit b0081080f6
7 changed files with 1100 additions and 23 deletions

View File

@@ -25,6 +25,7 @@ import './modals/payment-modal.js';
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';
// ============================================================
// Tab Management
@@ -51,7 +52,9 @@ function showTab(tabName) {
checkCurrentLogo();
} else if (tabName === 'accounting') {
renderAccountingView();
}
} else if (tabName === 'reports') {
renderReportsView();
}
}
// ============================================================
@@ -76,7 +79,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', 'settings'].includes(hashTab)) {
if (['quotes', 'invoices', 'customers', 'accounting', 'reports', 'settings'].includes(hashTab)) {
showTab(hashTab);
}
}