This commit is contained in:
Luca 2018-03-02 16:57:14 +01:00
parent 97bc123997
commit 70cf3401b4
4 changed files with 10 additions and 5 deletions

View File

@ -1003,7 +1003,8 @@ function start_inputmask(element) {
});
$(element+'.alphanumeric-mask').inputmask('Regex', {
regex: "[A-Za-z0-9]{10}",
regex: "[A-Za-z0-9]*",
casing: "upper",
});
if (isMobile.any()) {

View File

@ -47,11 +47,11 @@ if (!$cliente) {
<div class="row">
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('Partita IVA'); ?>", "maxlength": 13, "name": "piva", "class": "text-center text-uppercase", "value": "$piva$" ]}
{[ "type": "text", "label": "<?php echo tr('Partita IVA'); ?>", "maxlength": 13, "name": "piva", "class": "text-center alphanumeric-mask", "value": "$piva$" ]}
</div>
<div class="col-md-4">
{[ "type": "text", "label": "<?php echo tr('Codice fiscale'); ?>", "maxlength": 16, "name": "codice_fiscale", "class": "text-center text-uppercase", "value": "$codice_fiscale$" ]}
{[ "type": "text", "label": "<?php echo tr('Codice fiscale'); ?>", "maxlength": 16, "name": "codice_fiscale", "class": "text-center alphanumeric-mask", "value": "$codice_fiscale$" ]}
</div>
<div class="col-md-4">

View File

@ -8,7 +8,7 @@ include_once __DIR__.'/../../core.php';
<div class="row">
<div class="col-md-2">
{[ "type": "text", "label": "<?php echo tr('Codice'); ?>", "name": "idstatointervento", "class": "alphanumeric-mask", "required": 1, "value": "" ]}
{[ "type": "text", "label": "<?php echo tr('Codice'); ?>", "name": "idstatointervento", "maxlength": 10, "class": "alphanumeric-mask", "required": 1, "value": "" ]}
</div>
<div class="col-md-6">

View File

@ -273,4 +273,8 @@ INSERT INTO `zz_email_print` (`id`, `id_email`, `id_print`) VALUES
INSERT INTO `zz_settings` (`idimpostazione`, `nome`, `valore`, `tipo`, `editable`, `sezione`) VALUES (NULL, 'apilayer API key for Email', '', 'string', '1', 'Generali');
-- apilayer API key (per validazione piva)
INSERT INTO `zz_settings` (`idimpostazione`, `nome`, `valore`, `tipo`, `editable`, `sezione`) VALUES (NULL, 'apilayer API key for VAT number', '', 'string', '1', 'Generali');
INSERT INTO `zz_settings` (`idimpostazione`, `nome`, `valore`, `tipo`, `editable`, `sezione`) VALUES (NULL, 'apilayer API key for VAT number', '', 'string', '1', 'Generali');
--
-- Aggiorno query modulo movimenti per ordinarli in funzione della data del movimento
UPDATE `zz_modules` SET `options` = 'SELECT |select| FROM `mg_movimenti` JOIN `mg_articoli` ON `mg_articoli`.id = `mg_movimenti`.`idarticolo` WHERE 1=1 HAVING 2=2 ORDER BY `Data` DESC' WHERE `zz_modules`.`name` = 'Movimenti';