No description
Find a file
2026-01-27 18:13:41 +01:00
admin MultiDocument Support 2026-01-26 19:48:26 +01:00
ajax Kundenauftrag soweit erstmal ohne Fehler Link Button hinzugefügt, Fehler in der Rechnung funktioniert gar nichts Angebot ein paar Kleinigkeiten bis jetzt 2026-01-27 18:13:41 +01:00
build MultiDocument Support 2026-01-26 19:48:26 +01:00
class Fehlerbehebungen Drag and Drop, Checkboxen, Anzeige Zwischensumme. Fehler in New Order fix_sections 2026-01-27 13:22:39 +01:00
core MultiDocument Support 2026-01-26 19:48:26 +01:00
css MultiDocument Support 2026-01-26 19:48:26 +01:00
img MultiDocument Support 2026-01-26 19:48:26 +01:00
js Kundenauftrag soweit erstmal ohne Fehler Link Button hinzugefügt, Fehler in der Rechnung funktioniert gar nichts Angebot ein paar Kleinigkeiten bis jetzt 2026-01-27 18:13:41 +01:00
langs MultiDocument Support 2026-01-26 19:48:26 +01:00
lib MultiDocument Support 2026-01-26 19:48:26 +01:00
sql MultiDocument Support 2026-01-26 19:48:26 +01:00
.project MultiDocument Support 2026-01-26 19:48:26 +01:00
ChangeLog.md MultiDocument Support 2026-01-26 19:48:26 +01:00
COPYING MultiDocument Support 2026-01-26 19:48:26 +01:00
debug_sections.php MultiDocument Support 2026-01-26 19:48:26 +01:00
MIGRATION_MULTITYPE.md MultiDocument Support 2026-01-26 19:48:26 +01:00
modulebuilder.txt MultiDocument Support 2026-01-26 19:48:26 +01:00
README.md MultiDocument Support 2026-01-26 19:48:26 +01:00
subtotaltitle.kdev4 MultiDocument Support 2026-01-26 19:48:26 +01:00
subtotaltitleindex.php MultiDocument Support 2026-01-26 19:48:26 +01:00

SubtotalTitle - Facturedet Sync Update

Was ist neu?

  • 📄 Checkbox bei jeder Section/Textzeile/Subtotal: Element zur Rechnung hinzufügen
  • → Zur Rechnung / ← Aus Rechnung Buttons: Alle Elemente auf einmal
  • ODT-Variablen für formatierte Ausgabe im PDF/ODT

Installation

1. Dateien kopieren

subtotaltitle_complete/
├── class/
│   └── actions_subtotaltitle.class.php     → ERSETZEN
├── ajax/
│   └── sync_to_facturedet.php              → NEU
├── js/
│   └── subtotaltitle_sync.js               → NEU
├── css/
│   └── subtotaltitle_sync.css              → Inhalt zu deiner CSS hinzufügen
└── core/
    └── substitutions/
        └── functions_subtotaltitle.lib.php → NEU (Ordner ggf. erstellen!)

2. Modul-Descriptor anpassen

In core/modules/modSubtotalTitle.class.php ändern:

$this->module_parts = array(
    'substitutions' => 1,   // ← Diese Zeile hinzufügen/ändern!
    'hooks' => array(
        'data' => array('invoicecard'),
        'entity' => '0'
    )
);

3. Modul deaktivieren und wieder aktivieren

Damit die Substitution-Funktion erkannt wird.

Verwendung

In der Rechnungsansicht

Element Checkbox Bedeutung
Section 📄 Zur Rechnung hinzufügen
Textzeile 📄 Zur Rechnung hinzufügen
Subtotal 📄 Zur Rechnung hinzufügen

Grüner Rand = Element ist in der Rechnung/PDF enthalten

Im ODT-Template

[!-- BEGIN row.lines --]

[!-- IF {line_is_section} --]
{line_desc}
[!-- ENDIF {line_is_section} --]

[!-- IF {line_is_textline} --]
{line_desc}
[!-- ENDIF {line_is_textline} --]

[!-- IF {line_is_normal} --]
{line_pos}	{line_qty}	{line_desc}	{line_up_locale} €	{line_price_ht_locale} €
[!-- ENDIF {line_is_normal} --]

[!-- IF {line_is_subtotal} --]
Zwischensumme:	{line_price_ht_locale} €
[!-- ENDIF {line_is_subtotal} --]

[!-- END row.lines --]

special_code Werte

Typ special_code ODT-Variable
Normales Produkt 0 {line_is_normal}
Section 100 {line_is_section}
Textzeile 101 {line_is_textline}
Zwischensumme 102 {line_is_subtotal}