1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-16 19:40:44 +01:00

Query per retro compatibilità numerazione fatture

This commit is contained in:
Luca 2018-03-22 15:04:26 +01:00
parent ee7766d062
commit 2566cf4a51
3 changed files with 7 additions and 4 deletions

View File

@ -57,7 +57,7 @@ $_SESSION['superselect']['ddt'] = $dir;
<div class="col-md-3">
{[ "type": "text", "label": "'.tr('Numero fattura/protocollo').'", "required": 1, "name": "numero","class": "text-center alphanumeric-mask", "value": "$numero$" ]}
</div>';
$label = tr('Numero secondario');
$label = tr('Numero fornitore');
} else {
$label = tr('Numero fattura');
}

View File

@ -63,7 +63,7 @@
<div class="panel-body">
<div class="row">
<div class="col-md-3">
{[ "type": "text", "label": "<?php echo tr('Maschera'); ?>", "name": "pattern", "required": 1, "class": "alphanumeric-mask", "value": "$pattern$", "maxlength": 25, "placeholder":"####/YY", "extra": "" ]}
{[ "type": "text", "label": "<?php echo tr('Maschera'); ?>", "name": "pattern", "required": 1, "class": "alphanumeric-mask", "value": "$pattern$", "maxlength": 25, "placeholder":"####/YY", "extra": "<?php echo ($records[0]['n_sezionali']>1) ? 'readonly' : ''; ?>" ]}
</div>
</div>

View File

@ -176,8 +176,11 @@ CREATE TABLE IF NOT EXISTS `zz_segments` (
-- Popolo con i segmenti di default
INSERT INTO `zz_segments` (`id`, `id_module`, `name`, `clause`, `position`, `pattern`,`note`, `predefined`) VALUES
(1, 14, 'Standard vendite', '1=1', 'WHR', '####/YY', '', 1),
(2, 15, 'Standard acquisti', '1=1', 'WHR', '####', '', 1);
(1, 14, 'Standard vendite', '1=1', 'WHR', (SELECT valore FROM zz_settings WHERE nome = 'Formato numero secondario fattura'), '', 1),
(2, 15, 'Standard acquisti', '1=1', 'WHR', '#', '', 1);
-- Rimuovo impostazione per numero secondario fattura
DELETE FROM `osm_24`.`zz_settings` WHERE `zz_settings`.`nome` = 'Formato numero secondario fattura';
-- Collego le fatture esistenti al segmento di default
UPDATE `co_documenti` SET `id_segment`='1' WHERE `idtipodocumento` IN (SELECT `id` FROM `co_tipidocumento` WHERE `co_tipidocumento`.`dir`='entrata');