Aggiunte note interne in template mail

This commit is contained in:
MatteoPistorello 2021-12-03 10:39:57 +01:00
parent 29bf81b076
commit 4b31519cd0
3 changed files with 10 additions and 0 deletions

View File

@ -45,6 +45,7 @@ switch (post('op')) {
'bcc' => post('bcc'),
'body' => $_POST['body'], // post('body'),
'read_notify' => post('read_notify'),
'note_aggiuntive' => post('note_aggiuntive'),
], ['id' => $id_record]);
$dbo->sync('em_print_template', ['id_template' => $id_record], ['id_print' => (array) post('prints')]);

View File

@ -114,6 +114,12 @@ echo '
</div>
</div>
<div class="row">
<div class="col-md-12">
{[ "type": "textarea", "label": "<?php echo tr('Note interne'); ?>", "name": "note_aggiuntive", "value": "$note_aggiuntive$", "class": "unblockable" ]}
</div>
</div>
<?php
// Variabili utilizzabili

View File

@ -99,3 +99,6 @@ INSERT INTO `zz_plugins` (`id`, `name`, `title`, `idmodule_from`, `idmodule_to`,
ALTER TABLE `co_scadenziario` ADD `presentazioni_exported_at` TIMESTAMP NULL DEFAULT NULL;
INSERT INTO `zz_plugins` (`id`, `name`, `title`, `idmodule_from`, `idmodule_to`, `position`, `script`, `enabled`, `default`, `order`, `compatibility`, `version`, `options2`, `options`, `directory`, `help`) VALUES (NULL, 'Presentazioni Bancarie', 'Presentazioni Bancarie', (SELECT `id` FROM `zz_modules` WHERE `name` = 'Scadenzario'), (SELECT `id` FROM `zz_modules` WHERE `name` = 'Scadenzario'), 'tab_main', '', '1', '1', '0', '', '', NULL, 'custom', 'presentazioni_bancarie', '');
-- Aggiunte note interne in template email
ALTER TABLE `em_templates` ADD `note_aggiuntive` TEXT NOT NULL AFTER `predefined`;