1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-25 15:22:24 +01:00

Fix logo azienda principale nelle stampe

This commit is contained in:
Beppe 2021-12-06 16:14:13 +01:00
parent 9a2ddf201c
commit 03752f5f7b

View File

@ -129,10 +129,16 @@ $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');