mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-14 18:40:36 +01:00
Controllo numerazione fatture
This commit is contained in:
parent
f3193b5ac2
commit
accb938b59
@ -1053,7 +1053,6 @@ function start_inputmask(element) {
|
||||
|
||||
$(element+'.alphanumeric-mask').inputmask('Regex', {
|
||||
regex: "[A-Za-z0-9#_|\/\\-.]*",
|
||||
casing: "upper",
|
||||
});
|
||||
|
||||
if (isMobile.any()) {
|
||||
|
@ -12,7 +12,7 @@ include_once __DIR__.'/../../core.php';
|
||||
</div>
|
||||
|
||||
<div class="col-md-6">
|
||||
{[ "type": "text", "label": "<?php echo tr('Maschera'); ?>", "name": "pattern", "required": 0, "class": "alphanumeric-mask", "value": "$pattern$", "maxlength": 25, "placeholder":"####/YY" ]}
|
||||
{[ "type": "text", "label": "<?php echo tr('Maschera'); ?>", "name": "pattern", "required": 0, "class": "alphanumeric-mask", "value": "$pattern$", "maxlength": 25, "placeholder":"####/yy" ]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -86,7 +86,7 @@ if (strpos($table[0], 'co_documenti') !== false) {
|
||||
<p><font style='font-size:20px;'><b>####</b></font> <?php echo tr('Questi caratteri vengono sostituiti con il numero progressivo della fattura, vengono aggiunti zeri non significativi per raggiungere il numero desiderato di caratteri'); ?>.</p>
|
||||
|
||||
<p><font style='font-size:20px;'><b>YYYY</b></font> <?php echo tr("Questi caratteri vengono sosituiti con l'anno corrente a 4 cifre, è possibile specificare l'anno a 2 cifre con _YY_", [
|
||||
'_YY_' => 'YY',
|
||||
'_YY_' => 'yy',
|
||||
]); ?>.</p>
|
||||
|
||||
<p><?php echo tr("E' possibile aggiungere altri caratteri fissi, come lettere, trattini, eccetera, prima e/o dopo e/o tra le maschere _####_ e _YYYY_", [
|
||||
|
@ -1,5 +1,25 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Inserimento valori di default
|
||||
*/
|
||||
|
||||
// Permessi di default delle viste
|
||||
$gruppi = $database->fetchArray('SELECT `id` FROM `zz_groups`');
|
||||
$results = $database->fetchArray('SELECT `id` FROM `zz_views` WHERE `id` NOT IN (SELECT `id_vista` FROM `zz_group_view`)');
|
||||
|
||||
$array = [];
|
||||
foreach ($results as $result) {
|
||||
foreach ($gruppi as $gruppo) {
|
||||
$array[] = [
|
||||
'id_gruppo' => $gruppo['id'],
|
||||
'id_vista' => $result['id'],
|
||||
];
|
||||
}
|
||||
}
|
||||
if (!empty($array)) {
|
||||
$database->insert('zz_group_view', $array);
|
||||
}
|
||||
|
||||
// Script per aggiornare le date dei movimenti con le date dei documenti
|
||||
|
||||
|
@ -366,3 +366,6 @@ INSERT INTO `zz_settings` (`idimpostazione`, `nome`, `valore`, `tipo`, `editable
|
||||
|
||||
-- Rimozione idtipoanagrafica da zz_users
|
||||
ALTER TABLE `zz_users` DROP `idtipoanagrafica`;
|
||||
|
||||
INSERT INTO `zz_views` (`id_module`, `name`, `query`, `order`, `search`, `slow`, `enabled`, `default`) VALUES
|
||||
((SELECT `id` FROM `zz_modules` WHERE `name` = 'Fatture di vendita'), '_bg_', 'IF((SELECT COUNT(t.numero_esterno) FROM co_documenti AS t WHERE t.numero_esterno = co_documenti.numero_esterno AND t.id_segment = co_documenti.id_segment AND idtipodocumento IN (SELECT id FROM co_tipidocumento WHERE dir = ''entrata'') AND t.data >= ''|period_start|'' AND t.data <= ''|period_end|'') > 1, ''red'', '''')', 0, 0, 0, 0, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user