diff --git a/assets/src/css/style.css b/assets/src/css/style.css index 09ed1aead..15049af34 100755 --- a/assets/src/css/style.css +++ b/assets/src/css/style.css @@ -1096,3 +1096,13 @@ div.tip { -ms-user-select: none; user-select: none; } + + +.table-extra-condensed > thead > tr > th, +.table-extra-condensed > tbody > tr > th, +.table-extra-condensed > tfoot > tr > th, +.table-extra-condensed > thead > tr > td, +.table-extra-condensed > tbody > tr > td, +.table-extra-condensed > tfoot > tr > td { + padding: 2px; +} \ No newline at end of file diff --git a/include/common/articolo.php b/include/common/articolo.php index ad09a52ac..936477f63 100755 --- a/include/common/articolo.php +++ b/include/common/articolo.php @@ -267,7 +267,7 @@ function verificaPrezzoArticolo() { let div = prezzo_unitario_input.closest("div").parent().find("div[id*=errors]"); - if (prezzo_previsto === prezzo_unitario) { + if (prezzo_previsto === prezzo_unitario || prezzo_previsto === 0 ) { div.css("padding-top", "0"); div.html(""); @@ -275,7 +275,7 @@ function verificaPrezzoArticolo() { } div.css("padding-top", "5px"); - div.html(`'.tr('Prezzo suggerito').': ` + prezzo_previsto.toLocale() + globals.currency + ``); + div.html(`'.tr('Prezzo suggerito').': ` + prezzo_previsto.toLocale() + " " + globals.currency + ``); } /** @@ -297,7 +297,7 @@ function verificaScontoArticolo() { } div.css("padding-top", "5px"); - div.html(`'.tr('Sconto suggerito').': ` + sconto_previsto.toLocale() + `%`); + div.html(`'.tr('Sconto suggerito').': ` + sconto_previsto.toLocale() + `%`); } /** diff --git a/include/common/barcode.php b/include/common/barcode.php index 54ded6559..458697c8d 100644 --- a/include/common/barcode.php +++ b/include/common/barcode.php @@ -268,7 +268,7 @@ function verificaPrezzoArticolo(tr) { let div = prezzo_unitario_input.closest("div").parent().find("div[id*=errors]"); - if (prezzo_previsto === prezzo_unitario) { + if (prezzo_previsto === prezzo_unitario || prezzo_previsto === 0) { div.css("padding-top", "0"); div.html(""); @@ -276,7 +276,7 @@ function verificaPrezzoArticolo(tr) { } div.css("padding-top", "5px"); - div.html(`'.tr('Prezzo suggerito').': ` + prezzo_previsto.toLocale() + globals.currency + ``); + div.html(`'.tr('Prezzo suggerito').': ` + prezzo_previsto.toLocale() + " " + globals.currency + ``); } /** @@ -314,7 +314,7 @@ function verificaScontoArticolo(tr) { } div.css("padding-top", "5px"); - div.html(`'.tr('Sconto suggerito').': ` + sconto_previsto.toLocale() + `%`); + div.html(`'.tr('Sconto suggerito').': ` + sconto_previsto.toLocale() + `%`); } /** diff --git a/include/common/riga.php b/include/common/riga.php index 9f7a7d264..a0e623dae 100755 --- a/include/common/riga.php +++ b/include/common/riga.php @@ -79,7 +79,7 @@ if ($options['dir'] == 'entrata') { mediaponderata = parseFloat($("#idarticolo").selectData().media_ponderata); } - div.html("\ + div.html("
\ \ \ - \ \ @@ -98,7 +98,7 @@ if ($options['dir'] == 'entrata') { \ - \ \ @@ -109,7 +109,7 @@ if ($options['dir'] == 'entrata') { \ - \ \ @@ -163,7 +163,7 @@ if (in_array($module['name'], ['Ordini cliente', 'Ordini fornitore', 'Preventivi $confermato = $result['confermato']; } echo ' -
+

'.tr('Informazioni aggiuntive').'

diff --git a/modules/articoli/edit.php b/modules/articoli/edit.php index d17903347..7139df098 100755 --- a/modules/articoli/edit.php +++ b/modules/articoli/edit.php @@ -173,7 +173,7 @@ include_once __DIR__.'/../../core.php';
- {[ "type": "select", "label": "", "name": "id_fornitore", "ajax-source": "fornitori-articolo", "select-options": $id_record]); ?>, "value":"$id_fornitore$", "help": "." ]} + {[ "type": "select", "label": "", "name": "id_fornitore", "ajax-source": "fornitori-articolo", "select-options": $id_record]); ?>, "value":"$id_fornitore$", "help": "." ]}
diff --git a/modules/impianti/add.php b/modules/impianti/add.php index d01c873ee..ddefa6aa8 100644 --- a/modules/impianti/add.php +++ b/modules/impianti/add.php @@ -43,7 +43,7 @@ $id_anagrafica = filter('id_anagrafica');
- {[ "type": "select", "label": "", "name": "idtecnico", "ajax-source": "tecnici" ]} + {[ "type": "select", "label": "", "name": "idtecnico", "ajax-source": "tecnici", "icon-after": "add||tipoanagrafica=Tecnico&readonly_tipo=1" ]}
diff --git a/modules/interventi/add.php b/modules/interventi/add.php index e5787af62..c31b39f8d 100755 --- a/modules/interventi/add.php +++ b/modules/interventi/add.php @@ -213,7 +213,7 @@ echo ' $espandi_dettagli = setting('Espandi automaticamente la sezione "Dettagli aggiuntivi"'); echo ' -
+

'.tr('Dettagli aggiuntivi').'

@@ -277,10 +277,10 @@ if (empty($id_intervento)) { } echo ' - -
+ +
-

'.tr('Ore di lavoro').'

+

'.tr('Ore lavoro').'

-
+

'.tr('Ricorrenza').'

@@ -328,7 +328,7 @@ echo '
- {[ "type": "checkbox", "label": "'.tr('Ricorsiva').'", "name": "ricorsiva", "value": "" ]} + {[ "type": "checkbox", "label": "'.tr('Attività ricorrente').'", "name": "ricorsiva", "value": "" ]}
@@ -367,7 +367,7 @@ echo '
-
+

'.tr('Dettagli cliente').'

@@ -378,7 +378,7 @@ echo '
- '.tr('Prima seleziona un cliente').'... + '.tr('Seleziona prima un cliente').'...
diff --git a/modules/interventi/edit.php b/modules/interventi/edit.php index 5962a77de..f82d5a533 100755 --- a/modules/interventi/edit.php +++ b/modules/interventi/edit.php @@ -381,7 +381,7 @@ echo '
-

+

diff --git a/plugins/listino_clienti/dettaglio_prezzi.php b/plugins/listino_clienti/dettaglio_prezzi.php index fee2fe273..b2c33f5d8 100644 --- a/plugins/listino_clienti/dettaglio_prezzi.php +++ b/plugins/listino_clienti/dettaglio_prezzi.php @@ -60,9 +60,9 @@ echo '
'; if ($direzione == 'uscita') { - echo ''; + echo ''; } else { - echo ''; + echo ''; } echo ' @@ -72,7 +72,7 @@ echo ' if ($direzione == 'uscita') { echo ''; } else { - echo ''; + echo ''; } echo ' @@ -89,7 +89,7 @@ echo '
- {[ "type": "checkbox", "label": "'.tr('Imposta prezzo per questa anagrafica').'", "name": "modifica_prezzi", "value": "'.intval(!empty($dettaglio_predefinito)).'" ]} + {[ "type": "checkbox", "label": "'.tr('Imposta prezzo specifico per questa anagrafica').'", "name": "modifica_prezzi", "value": "'.intval(!empty($dettaglio_predefinito)).'" ]}
@@ -97,6 +97,7 @@ echo '
{[ "type": "number", "label": "'.tr('Prezzo specifico').'", "name": "prezzo_unitario_fisso", "value": "'.($prezzi_ivati ? $dettaglio_predefinito->prezzo_unitario_ivato : $dettaglio_predefinito->prezzo_unitario).'", "icon-after": "'.currency().'", "help": "'.($prezzi_ivati ? tr('Importo IVA inclusa') : '').'" ]} +
@@ -107,7 +108,7 @@ echo '
- {[ "type": "checkbox", "label": "'.tr('Imposta un prezzo in base alla quantità').'", "name": "prezzo_qta", "value": "'.intval($dettagli->count() != 0).'" ]} + {[ "type": "checkbox", "label": "'.tr('Imposta prezzo in base alla quantità').'", "name": "prezzo_qta", "value": "'.intval($dettagli->count() != 0).'" ]}
@@ -214,6 +215,11 @@ echo ' '; diff --git a/plugins/listino_clienti/edit.php b/plugins/listino_clienti/edit.php index c460c4d3b..73d366a24 100644 --- a/plugins/listino_clienti/edit.php +++ b/plugins/listino_clienti/edit.php @@ -23,6 +23,7 @@ use Plugins\ListinoClienti\DettaglioPrezzo; include_once __DIR__.'/../../core.php'; $id_articolo = $id_record; + echo '
@@ -32,7 +33,7 @@ echo '
- {[ "type": "select", "label": "'.tr('Cliente').'", "name": "id_cliente_informazioni", "required":"1", "ajax-source": "clienti" ]} + {[ "type": "select", "label": "'.tr('Cliente').'", "name": "id_cliente_informazioni", "required":"1", "ajax-source": "clienti", "icon-after": "add|'.Modules::get('Anagrafiche')['id'].'|tipoanagrafica=Cliente&readonly_tipo=1" ]}
diff --git a/plugins/listino_fornitori/dettaglio_fornitore.php b/plugins/listino_fornitori/dettaglio_fornitore.php index f0c0ce7b0..30894fbef 100644 --- a/plugins/listino_fornitori/dettaglio_fornitore.php +++ b/plugins/listino_fornitori/dettaglio_fornitore.php @@ -38,9 +38,9 @@ if (!empty($id_riga)) { } echo ' -

'.tr('Informazioni relative al fornitore _NAME_', [ - '_NAME_' => $anagrafica->ragione_sociale, -]).'.

+

'.tr('Informazioni relative al fornitore: _NAME_', [ + '_NAME_' => ''.$anagrafica->ragione_sociale.'', +]).'

diff --git a/plugins/listino_fornitori/edit.php b/plugins/listino_fornitori/edit.php index f73d04cf7..2cfff3c12 100644 --- a/plugins/listino_fornitori/edit.php +++ b/plugins/listino_fornitori/edit.php @@ -32,7 +32,7 @@ echo '
- {[ "type": "select", "label": "'.tr('Fornitore').'", "name": "id_fornitore_informazioni", "required":"1", "ajax-source": "fornitori" ]} + {[ "type": "select", "label": "'.tr('Fornitore').'", "name": "id_fornitore_informazioni", "required":"1", "ajax-source": "fornitori","icon-after": "add|'.Modules::get('Anagrafiche')['id'].'|tipoanagrafica=Fornitore&readonly_tipo=1" ]}
\  '.tr('Guadagno').':\ @@ -87,7 +87,7 @@ if ($options['dir'] == 'entrata') { \ " + guadagno.toLocale() + "\ \ + \ " + globals.currency + "\
\ " + margine.toLocale() + "\ \ + \  %\
\ " + mediaponderata.toLocale() + "\ \ + \ " + globals.currency + "\
'.($direzione == 'entrata' ? tr('Cliente') : tr('Fornitore')).' '.tr('Prezzo predefinito').''.tr('Fornitore predefinito').''.tr('E\' il fornitore predefinito?').''.tr('Fornitore predefinito').'
'.$text.''.(!empty($articolo->id_fornitore) ? Anagrafica::find($articolo->id_fornitore)->ragione_sociale : tr('Nessuno')).'