Hide PDF export button for validated declarations
- PDF export button now only shows for draft declarations - Validated declarations should use the PDF download link from the list - Prevents confusion between export and download functionality - Maintains clear separation between draft (export) and validated (download) workflows
This commit is contained in:
parent
6e9f620925
commit
342d315066
@ -448,8 +448,10 @@ if ($declarationtva->status == 'draft') {
|
|||||||
print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $id . '&action=recalculate&token=' . newToken() . '" class="butAction">' . $langs->trans("Recalculate") . '</a> ';
|
print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $id . '&action=recalculate&token=' . newToken() . '" class="butAction">' . $langs->trans("Recalculate") . '</a> ';
|
||||||
}
|
}
|
||||||
|
|
||||||
// PDF Export button (always available)
|
// PDF Export button (only for draft status)
|
||||||
print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $id . '&action=export_pdf" class="butAction">' . $langs->trans("ExportPDF") . '</a> ';
|
if ($declarationtva->status == 'draft') {
|
||||||
|
print '<a href="' . $_SERVER['PHP_SELF'] . '?id=' . $id . '&action=export_pdf" class="butAction">' . $langs->trans("ExportPDF") . '</a> ';
|
||||||
|
}
|
||||||
|
|
||||||
if ($declarationtva->status == 'draft') {
|
if ($declarationtva->status == 'draft') {
|
||||||
// Validation button with confirmation dialog
|
// Validation button with confirmation dialog
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user