1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-22 21:28:08 +01:00

Fattura elettronica allegata se invio PEC

This commit is contained in:
MatteoPistorello 2021-05-24 12:13:12 +02:00
parent 09d7c5e688
commit 602324c594

View File

@ -110,7 +110,7 @@ echo '
</div>';
$uploads = [];
if ($template['name'] == 'Fattura Elettronica') {
if ($smtp['pec']==1 && $module['name']=='Fatture di vendita') {
$uploads = $dbo->fetchArray('SELECT id FROM zz_files WHERE id_module = '.prepare($module['id']).' AND id_record = '.prepare($id_record).' AND category = \'Fattura Elettronica\'');
$uploads = array_column($uploads, 'id');
}