Phase 1: accounting

This commit is contained in:
2026-05-06 14:10:46 -05:00
parent 373c1cb945
commit d6d70e641c
8 changed files with 1241 additions and 9 deletions

View File

@@ -24,6 +24,7 @@ import { initInvoiceModal, loadLaborRate } from './modals/invoice-modal.js';
import './modals/payment-modal.js';
import './modals/email-modal.js';
import { setDefaultDate } from './utils/helpers.js';
import { renderAccountingView } from './views/accounting-view.js';
// ============================================================
// Tab Management
@@ -48,7 +49,9 @@ function showTab(tabName) {
renderCustomerView();
} else if (tabName === 'settings') {
checkCurrentLogo();
}
} else if (tabName === 'accounting') {
renderAccountingView();
}
}
// ============================================================
@@ -73,7 +76,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', 'settings'].includes(hashTab)) {
if (['quotes', 'invoices', 'customers', 'accounting', 'settings'].includes(hashTab)) {
showTab(hashTab);
}
}