Fix: Sendebelege-Liste nicht sichtbar (fehlendes print) + Styling Versand-Bereich [deploy]
All checks were successful
Deploy mahnung / deploy (push) Successful in 16s
All checks were successful
Deploy mahnung / deploy (push) Successful in 16s
showdocuments() gibt String zurück — fehlte print davor. Versand & Belege Bereich mit fichecenter/underbanner gerahmt. Sendebelege-Titel als load_fiche_titre statt h3. hideifempty=0 damit Sektion immer sichtbar. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
10cf41a687
commit
b8c00daa55
1 changed files with 8 additions and 3 deletions
11
card.php
11
card.php
|
|
@ -375,6 +375,8 @@ $formfile = new FormFile($db);
|
||||||
// --- Versand & Belege ---
|
// --- Versand & Belege ---
|
||||||
print '<br>';
|
print '<br>';
|
||||||
print load_fiche_titre($langs->trans('MahnungVersandBelege'), '', 'fa-truck');
|
print load_fiche_titre($langs->trans('MahnungVersandBelege'), '', 'fa-truck');
|
||||||
|
print '<div class="fichecenter">';
|
||||||
|
print '<div class="underbanner clearboth"></div>';
|
||||||
|
|
||||||
// Versandwege (Dropdown-Optionen, Label kommt aus Lang-File MahnungVersandweg*)
|
// Versandwege (Dropdown-Optionen, Label kommt aus Lang-File MahnungVersandweg*)
|
||||||
$versandwege = array(
|
$versandwege = array(
|
||||||
|
|
@ -468,7 +470,8 @@ if (!empty($mahnung->date_versand) && $action !== 'edit_versand') {
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- Sendebelege (Beleg-Upload via Dolibarr-Standard) ---
|
// --- Sendebelege (Beleg-Upload via Dolibarr-Standard) ---
|
||||||
print '<br><h3>'.$langs->trans('MahnungSendebelege').'</h3>';
|
print '<br>';
|
||||||
|
print load_fiche_titre($langs->trans('MahnungSendebelege'), '', 'fa-paperclip');
|
||||||
print '<div class="opacitymedium" style="margin-bottom:8px;">'.$langs->trans('MahnungSendebelegeHint').'</div>';
|
print '<div class="opacitymedium" style="margin-bottom:8px;">'.$langs->trans('MahnungSendebelegeHint').'</div>';
|
||||||
|
|
||||||
// Tracking-Vorschläge aus Session-Flash (vom Scan) anzeigen
|
// Tracking-Vorschläge aus Session-Flash (vom Scan) anzeigen
|
||||||
|
|
@ -536,7 +539,7 @@ $formfile->form_attach_new_file(
|
||||||
);
|
);
|
||||||
|
|
||||||
// Dateiliste der bereits hochgeladenen Belege
|
// Dateiliste der bereits hochgeladenen Belege
|
||||||
$formfile->showdocuments(
|
print $formfile->showdocuments(
|
||||||
'mahnung', // $modulepart
|
'mahnung', // $modulepart
|
||||||
$mahnungSafeRef, // $modulesubdir
|
$mahnungSafeRef, // $modulesubdir
|
||||||
$upload_dir, // $filedir
|
$upload_dir, // $filedir
|
||||||
|
|
@ -555,9 +558,11 @@ $formfile->showdocuments(
|
||||||
'', // $codelang
|
'', // $codelang
|
||||||
'', // $morepicto
|
'', // $morepicto
|
||||||
$mahnung, // $object
|
$mahnung, // $object
|
||||||
1 // $hideifempty (Liste nur zeigen wenn Dateien vorhanden)
|
0 // $hideifempty
|
||||||
);
|
);
|
||||||
|
|
||||||
|
print '</div>'; // Ende fichecenter Versand & Belege
|
||||||
|
|
||||||
if ($mahnung->status !== Mahnung::STATUS_STORNIERT && $user->hasRight('mahnung', 'delete')) {
|
if ($mahnung->status !== Mahnung::STATUS_STORNIERT && $user->hasRight('mahnung', 'delete')) {
|
||||||
if ($action === 'confirm_storno') {
|
if ($action === 'confirm_storno') {
|
||||||
print $form->formconfirm(
|
print $form->formconfirm(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue