mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-02 17:07:01 +01:00
Aggiunto codice distinta nello scadenzario
This commit is contained in:
parent
442fc20cb5
commit
f5786f549d
@ -4,7 +4,7 @@ Tutti i maggiori cambiamenti di questo progetto saranno documentati in questo fi
|
||||
|
||||
Il formato utilizzato è basato sulle linee guida di [Keep a Changelog](http://keepachangelog.com/), e il progetto segue il [Semantic Versioning](http://semver.org/) per definire le versioni delle release.
|
||||
|
||||
- [2.4.28 (2021-12-)](#2428-2021-12-)
|
||||
- [2.4.28 (2021-12-07)](#2428-2021-12-07)
|
||||
- [2.4.27 (2021-10-25)](#2427-2021-10-26)
|
||||
- [2.4.26 (2021-09-24)](#2426-2021-09-24)
|
||||
- [2.4.25 (2021-08-25)](#2425-2021-08-25)
|
||||
@ -39,7 +39,7 @@ Il formato utilizzato è basato sulle linee guida di [Keep a Changelog](http://k
|
||||
- [2.2 (2016-11-10)](#22-2016-11-10)
|
||||
- [2.1 (2015-04-02)](#21-2015-04-02)
|
||||
|
||||
## 2.4.28 (2021-12-)
|
||||
## 2.4.28 (2021-12-07)
|
||||
|
||||
### Aggiunto (Added)
|
||||
- Aggiunta colonna documento di acquisto e prezzo nel plugin **seriali**
|
||||
@ -64,6 +64,7 @@ Il formato utilizzato è basato sulle linee guida di [Keep a Changelog](http://k
|
||||
- Aggiunta gestione Abi e Cab in fase di creazione banca
|
||||
- Aggiunte note interne in template mail
|
||||
- Aggiunta duplicazione **DDT**
|
||||
- Aggiunto codice distinta nello scadenzario
|
||||
|
||||
### Modificato (Changed)
|
||||
- Compilazione automatica tipo documento in fase di import FE solo se il campo non è impostato
|
||||
|
@ -84,6 +84,7 @@ switch (post('op')) {
|
||||
'scadenza' => $scadenza,
|
||||
'data_concordata' => $data_concordata,
|
||||
'note' => post('note'),
|
||||
'distinta' => post('distinta') ?: null,
|
||||
], ['id' => $id_scadenza]);
|
||||
|
||||
if ($da_pagare == 0) {
|
||||
|
@ -19,6 +19,30 @@
|
||||
|
||||
include_once __DIR__.'/../../core.php';
|
||||
|
||||
switch (post('op')) {
|
||||
case 'change_distinta':
|
||||
$distinta = post('distinta');
|
||||
|
||||
$n_scadenze = 0;
|
||||
foreach ($id_records as $id) {
|
||||
$database->update('co_scadenziario', [
|
||||
'distinta' => $distinta,
|
||||
], ['id' => $id]);
|
||||
|
||||
++$n_scadenze;
|
||||
}
|
||||
|
||||
if ($n_scadenze > 0) {
|
||||
flash()->info(tr('Distinta aggiornata a _NUM_ scadenze!', [
|
||||
'_NUM_' => $n_scadenze,
|
||||
]));
|
||||
} else {
|
||||
flash()->warning(tr('Nessuna scadenza modificata!'));
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
|
||||
$operations['registrazione-contabile'] = [
|
||||
'text' => '<span><i class="fa fa-calculator"></i> '.tr('Registrazione contabile').'</span>',
|
||||
'data' => [
|
||||
@ -29,4 +53,16 @@ $operations['registrazione-contabile'] = [
|
||||
],
|
||||
];
|
||||
|
||||
$operations['change_distinta'] = [
|
||||
'text' => '<span><i class="fa fa-refresh"></i> '.tr('Aggiorna distinta'),
|
||||
'data' => [
|
||||
'title' => tr('Aggiornare la distinta per le scadenze selezionate?'),
|
||||
'msg' => tr('Per ciascuna scadenza selezionata verrà aggiornata la distinta').'.<br>
|
||||
<br>{[ "type": "text", "label": "'.tr('Distinta').'", "name": "distinta", "required": 1 ]}',
|
||||
'button' => tr('Procedi'),
|
||||
'class' => 'btn btn-lg btn-warning',
|
||||
'blank' => false,
|
||||
],
|
||||
];
|
||||
|
||||
return $operations;
|
||||
|
@ -85,6 +85,13 @@ if (!empty($documento)) {
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
<th>'.tr('Distinta').':</th>
|
||||
<td>
|
||||
{[ "type": "text", "name": "distinta", "value": "'.$record['distinta'].'" ]}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
</table>
|
||||
|
||||
'.Modules::link($documento->module, $record['iddocumento'], '<i class="fa fa-folder-open"></i> '.tr('Apri documento'), null, 'class="btn btn-primary"');
|
||||
@ -98,6 +105,13 @@ if (!empty($documento)) {
|
||||
'required' => 1,
|
||||
'value' => $scadenza['descrizione'],
|
||||
]);
|
||||
|
||||
echo input([
|
||||
'type' => 'text',
|
||||
'label' => tr('Distinta'),
|
||||
'name' => 'distinta',
|
||||
'value' => $scadenza['distinta'],
|
||||
]);
|
||||
}
|
||||
|
||||
echo '
|
||||
|
@ -105,3 +105,8 @@ ALTER TABLE `em_templates` ADD `note_aggiuntive` TEXT NOT NULL AFTER `predefined
|
||||
|
||||
-- Eliminazione modulo gestione componenti
|
||||
DELETE FROM `zz_modules` WHERE `zz_modules`.`name` = 'Gestione componenti';
|
||||
|
||||
-- Aggiunta distinta scadenze
|
||||
ALTER TABLE `co_scadenziario` ADD `distinta` VARCHAR(255) NULL AFTER `presentazioni_exported_at`;
|
||||
INSERT INTO `zz_views` (`id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `search_inside`, `order_by`, `visible`, `summable`, `default`) VALUES
|
||||
((SELECT `id` FROM `zz_modules` WHERE `name` = 'Scadenzario'), 'Distinta', 'co_scadenziario.distinta', 15, 1, 0, 0, '', '', 0, 0, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user