1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-18 19:23:10 +01:00

Modifica valore decimali quantità in stampa di default a 2

This commit is contained in:
Pek5892 2023-12-21 11:25:05 +01:00
parent c1fe86c222
commit 307570f0cb
4 changed files with 7 additions and 4 deletions

View File

@ -198,7 +198,7 @@ foreach ($righe as $riga) {
// Iva
echo '
<td class="text-center">
'.Translator::numberToLocale($riga->aliquota->percentuale, $d_qta).'
'.Translator::numberToLocale($riga->aliquota->percentuale, 0).'
</td>';
} else {
echo '

View File

@ -257,7 +257,7 @@ foreach ($righe as $riga) {
// Iva
echo '
<td class="text-center">
'.Translator::numberToLocale($riga->aliquota->percentuale, $d_qta).'
'.Translator::numberToLocale($riga->aliquota->percentuale, 0).'
</td>';
}

View File

@ -281,7 +281,7 @@ foreach ($righe as $key => $riga) {
// Iva
echo '
<td class="text-center" style="vertical-align: middle">
'.Translator::numberToLocale($riga->aliquota->percentuale, $d_qta).'
'.Translator::numberToLocale($riga->aliquota->percentuale, 0).'
</td>';
}
// Imponibile

View File

@ -8,4 +8,7 @@ UPDATE `zz_modules` SET `options` = '\r\nSELECT\r\n |select|\r\nFROM\r\n `or_
UPDATE `zz_views` INNER JOIN `zz_modules` ON `zz_views`.`id_module` = `zz_modules`.`id` SET `zz_views`.`query` = 'IF(emails IS NOT NULL, \'Inviata via email\', \'\')' WHERE `zz_modules`.`name` = 'Fatture di vendita' AND `zz_views`.`name` = 'icon_title_Inviata';
-- Aggiunta colonna email in anagrafiche di default nascosta
INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `html_format`, `search_inside`, `order_by`, `visible`, `summable`, `default`) VALUES (NULL, (SELECT id FROM zz_modules WHERE name = 'Anagrafiche'), 'Email', '`an_anagrafiche`.`email`', '17', '1', '0', '0', '0', '', '', '0', '0', '0');
INSERT INTO `zz_views` (`id`, `id_module`, `name`, `query`, `order`, `search`, `slow`, `format`, `html_format`, `search_inside`, `order_by`, `visible`, `summable`, `default`) VALUES (NULL, (SELECT id FROM zz_modules WHERE name = 'Anagrafiche'), 'Email', '`an_anagrafiche`.`email`', '17', '1', '0', '0', '0', '', '', '0', '0', '0');
-- Modifica valore di default di Cifre decimali per quantità in stampa
UPDATE `zz_settings` SET `valore` = '2' WHERE `zz_settings`.`nome` = 'Cifre decimali per quantità in stampa';