fix per includere le stampe nelle notifiche

This commit is contained in:
Beppe 2019-06-03 12:41:23 +02:00
parent 6976950390
commit d1df844cbb
1 changed files with 6 additions and 0 deletions

View File

@ -249,6 +249,12 @@ class EmailNotification extends Notification
$mail->addReceiver($receiver['email'], $receiver['type']);
}
$prints = database()->fetchArray('SELECT id_print FROM zz_email_print WHERE id_email = '.prepare($template['id']));
foreach ($prints as $print) {
$this->addPrint($print['id_print'], post('id_record'));
}
// Allegati
$attachments = $this->getAttachments();
foreach ($attachments as $attachment) {