Revert commit logo azienda

This commit is contained in:
MatteoPistorello 2021-12-07 13:03:45 +01:00
parent 7f29f28a7d
commit 442fc20cb5
1 changed files with 1 additions and 7 deletions

View File

@ -129,16 +129,10 @@ $default_footer = !empty($options['hide-footer']) ? '' : $default_footer;
// Logo di default
$default_logo = App::filepath('templates/base|custom|/logo_azienda.jpg');
/* Logo generico
// Logo generico
if (!empty(setting('Logo stampe'))) {
$custom_logo = App::filepath('files/anagrafiche/'.setting('Logo stampe'));
}
*/
$logo_allegato = $dbo->fetchOne("SELECT * FROM zz_files WHERE id_module=".prepare(Modules::get('Anagrafiche')['id'])." AND id_record=".prepare($azienda['idanagrafica'])." AND `name`='Logo stampe' ");
if (!empty($logo_allegato)) {
$custom_logo = App::filepath('files/anagrafiche/'.$logo_allegato['filename']);
}
// Logo specifico della stampa
$logo = Prints::filepath($id_print, 'logo_azienda.jpg');