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:
parent
09d7c5e688
commit
602324c594
2
mail.php
2
mail.php
@ -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');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user