Leere Felder speichern?
Die folgenden Felder werden leer gespeichert:
diff --git a/modules/shared/auth/ui/home.php b/modules/shared/auth/ui/home.php index 1e1b235..99352ed 100644 --- a/modules/shared/auth/ui/home.php +++ b/modules/shared/auth/ui/home.php @@ -300,23 +300,26 @@ function auth_format_lager_quantity(float $value): string function auth_render_lager_documents(array $documents, bool $editable, string $scope): string { - $html = '
Keine Dokumente vorhanden.
'; - } else { - foreach ($documents as $document) { - $documentId = (int) ($document['id'] ?? 0); - $filename = (string) ($document['original_filename'] ?? 'Dokument'); - $comment = trim((string) ($document['comment'] ?? '')); - $html .= '' . auth_escape_html($filename) . '';
- if ($comment !== '') {
- $html .= '
Kommentar: ' . auth_escape_html($comment) . '';
+ $segmentState = $editable ? ' hidden data-lager-edit-documents="' . auth_escape_html($scope) . '"' : '';
+ $html = '
Keine Dokumente vorhanden.
'; + } else { + foreach ($documents as $document) { + $documentId = (int) ($document['id'] ?? 0); + $filename = (string) ($document['original_filename'] ?? 'Dokument'); + $comment = trim((string) ($document['comment'] ?? '')); + $html .= '' . auth_escape_html($filename) . '';
+ if ($comment !== '') {
+ $html .= '
Kommentar: ' . auth_escape_html($comment) . '';
+ }
+ $html .= '
Leere Felder speichern?
Die folgenden Felder werden leer gespeichert:
Möchtest du diese offene Charge wirklich löschen?
Du kannst das nicht rückgängig machen. Bestätige durch Eingabe von DELETE.
Buchungen werden zusätzlich zur Rückverfolgbarkeit als Lagerbewegung gespeichert. Positive Werte erhöhen den Bestand, negative Werte reduzieren ihn.
' . '' @@ -464,6 +467,7 @@ function auth_render_lager_content(array $lagerProducts, array $lagerArtikel, ar . '' . '