diff --git a/include/common/importa.php b/include/common/importa.php index 352b94958..d42799440 100755 --- a/include/common/importa.php +++ b/include/common/importa.php @@ -265,6 +265,12 @@ echo '

'.tr('Righe da importare').'

+
+
+ {["type":"checkbox", "label":"'.tr('Seleziona/Deseleziona tutto').'", "name":"import_all", "value":"1"]} +
+
+ @@ -310,7 +316,7 @@ foreach ($righe as $i => $riga) { // Checkbox - da evadere? echo ' - '; + '; $descrizione = ($riga->isArticolo() ? $riga->articolo->codice.' - ' : '').$riga['descrizione']; @@ -618,4 +624,20 @@ echo ' } }); }); + + $("#import_all").click(function(){ + if( $(this).is(":checked") ){ + $(".check").each(function(){ + if( !$(this).is(":checked") ){ + $(this).trigger("click"); + } + }); + }else{ + $(".check").each(function(){ + if( $(this).is(":checked") ){ + $(this).trigger("click"); + } + }); + } + }); '; diff --git a/modules/ddt/edit.php b/modules/ddt/edit.php index cafe66470..2f83e36d0 100755 --- a/modules/ddt/edit.php +++ b/modules/ddt/edit.php @@ -33,7 +33,8 @@ $numero_previsto = verifica_numero_ddt($ddt); if (!empty($numero_previsto)) { echo '
- '.tr("E' assente una fattura di vendita di numero _NUM_ in data precedente o corrispondente a _DATE_: si potrebbero verificare dei problemi con la numerazione corrente delle fatture", [ + '.tr("E' assente un _TYPE_ numero _NUM_ in data precedente o corrispondente a _DATE_: si potrebbero verificare dei problemi con la numerazione corrente delle fatture", [ + '_TYPE_' => $module['name'], '_DATE_' => dateFormat($fattura->data), '_NUM_' => '"'.$numero_previsto.'"', ]).'.