From 1d7a2b73e885df8a468be863e2bc28ecd211cc09 Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Thu, 13 Jan 2022 11:56:12 +0100 Subject: [PATCH] =?UTF-8?q?Bloccata=20rimozione=20allegati=20FE=20se=20fat?= =?UTF-8?q?tura=20non=20=C3=A8=20generabile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/fatture/edit.php | 2 +- src/HTMLBuilder/Manager/FileManager.php | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/fatture/edit.php b/modules/fatture/edit.php index 13d4b73cf..17f267539 100755 --- a/modules/fatture/edit.php +++ b/modules/fatture/edit.php @@ -798,7 +798,7 @@ if ($dir == 'uscita' && $fattura->isFE()) { } ?> -{( "name": "filelist_and_upload", "id_module": "$id_module$", "id_record": "$id_record$" )} +{( "name": "filelist_and_upload", "id_module": "$id_module$", "id_record": "$id_record$", "abilita_genera": "" )} - - + '; + if (!$file->isFatturaElettronica() || $options['abilita_genera']) { + $result .= ' '; + } } $result .= '