Aggiunta note in scadenzario

This commit is contained in:
Beppe 2020-01-28 14:20:14 +01:00
parent 694c2a0e50
commit 0726a364fd
3 changed files with 15 additions and 0 deletions

View File

@ -50,6 +50,7 @@ switch (post('op')) {
'pagato' => $pagato,
'scadenza' => $scadenza,
'data_concordata' => $data_concordata,
'note' => post('note'),
], ['id' => $id_scadenza]);
if ($da_pagare == 0) {
@ -65,6 +66,7 @@ switch (post('op')) {
'scadenza' => $scadenza,
'data_concordata' => $data_concordata,
'data_emissione' => date('Y-m-d'),
'note' => post('note'),
]);
$id_scadenza = $database->lastInsertedID();

View File

@ -64,6 +64,13 @@ if (!empty($documento)) {
<td>'.moneyFormat($documento->totale).'</td>
</tr>
<tr>
<th>'.tr('Note').':</th>
<td>
{[ "type": "textarea", "name": "note", "value": "'.$record['note'].'" ]}
</td>
</tr>
</table>
'.Modules::link($documento->module, $record['iddocumento'], '<i class="fa fa-folder-open"></i> '.tr('Apri documento'), null, 'class="btn btn-primary"');

View File

@ -139,3 +139,9 @@ INSERT INTO `zz_views` (`id_module`, `name`, `query`, `order`, `search`, `slow`,
-- Ripristino modulo pianificazione fatturazione
INSERT INTO `zz_plugins` (`id`, `name`, `title`, `idmodule_from`, `idmodule_to`, `position`, `script`, `enabled`, `default`, `order`, `compatibility`, `version`, `options2`, `options`, `directory`, `help`) VALUES
(27, 'Pianificazione fatturazione', 'Pianificazione fatturazione', (SELECT `id` FROM `zz_modules` WHERE `name` = 'Contratti'), (SELECT `id` FROM `zz_modules` WHERE `name` = 'Contratti'), 'tab', 'contratti.fatturaordiniservizio.php', 1, 0, 0, '', '', NULL, NULL, '', '');
-- Aggiunta campo note nello scadenzario --
ALTER TABLE `co_scadenziario` ADD `note` VARCHAR(255) DEFAULT NULL AFTER `data_pagamento`;
-- Aggiunta note in vista scadenzario --
INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `search_inside`, `order_by`, `visible`, `summable`, `default`) VALUES (NULL, (SELECT `zz_modules`.`id` FROM `zz_modules` WHERE `zz_modules`.`name`='Scadenzario' ), 'Note', 'co_scadenziario.note', '5', '1', '0', '0', '', '', '0', '0', '0');