Fixed
- Auto budget counts every line item only once. “Generate auto budget” on the event overview used to add up the line items of every document on the event — the quote, the invoice created from it and the delivery note all contributed the same items, so each category showed three times its value, and a document that had already been deleted kept counting. The budget rows matched neither the quote nor each other. From now on exactly one document is the basis: the accepted quote, otherwise the current quote, otherwise the final invoice. Delivery notes, deposit invoices, superseded quote versions and deleted documents are ignored. If a category disappears from the quote, its budget row drops to 0 — amounts you entered by hand stay as before. Existing budgets do not change on their own; clicking “Generate auto budget” fetches the correct figures.
- Clicking into a budget field without changing it no longer locks the row. Clicking a budget value and leaving the field untouched marked the row as “set by hand” — “Generate auto budget” then skipped it permanently, with no hint and no way back. The value is now only saved when the amount actually changed.
- Auto budget requires write access to finances. “Generate auto budget” now requires the same permission as creating budget rows by hand. Members who can only view finances get an error instead of written rows.