payments - 1. version

This commit is contained in:
2026-02-18 09:39:06 -06:00
parent 2bb304babe
commit acb588425a
4 changed files with 564 additions and 11 deletions

View File

@@ -3,8 +3,8 @@
// Importiert das Invoice-View Modul und verbindet es mit der bestehenden App.
import { loadInvoices, renderInvoiceView, injectToolbar } from './invoice-view.js';
import './payment-modal.js';
// Warte bis DOM fertig ist
if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', init);
} else {
@@ -12,14 +12,8 @@ if (document.readyState === 'loading') {
}
function init() {
// Toolbar injizieren
injectToolbar();
// Globale Funktionen für app.js verfügbar machen
// (app.js ruft loadInvoices() auf wenn der Tab gewechselt wird)
window.loadInvoices = loadInvoices;
window.renderInvoices = renderInvoiceView;
// Initiales Laden
loadInvoices();
}