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