- Prüft in toggle_subtotal.php und sync_to_facturedet.php ob
Subtotal bereits in Detail-Tabelle existiert
- Verhindert mehrfache Subtotal-Zeilen für dieselbe Section
- addslashes() durch $db->escape() ersetzt (SQL-Sicherheit)
- LIKE durch exakten Match ersetzt (Präzision)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>