diff --git a/declarationtva_view.php b/declarationtva_view.php index 4dd9c13..7aeb923 100644 --- a/declarationtva_view.php +++ b/declarationtva_view.php @@ -448,8 +448,10 @@ if ($declarationtva->status == 'draft') { print '' . $langs->trans("Recalculate") . ' '; } -// PDF Export button (always available) -print '' . $langs->trans("ExportPDF") . ' '; +// PDF Export button (only for draft status) +if ($declarationtva->status == 'draft') { + print '' . $langs->trans("ExportPDF") . ' '; +} if ($declarationtva->status == 'draft') { // Validation button with confirmation dialog