From f4ef8f940f07f017bb79b954a888c4902a9e262e Mon Sep 17 00:00:00 2001 From: MatteoPistorello Date: Thu, 29 Jun 2023 16:24:55 +0200 Subject: [PATCH] Aggiunti help riga confermata --- include/common/riga.php | 2 +- modules/ordini/row-list.php | 2 +- modules/preventivi/row-list.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/common/riga.php b/include/common/riga.php index cd5f365ba..38fd4448b 100755 --- a/include/common/riga.php +++ b/include/common/riga.php @@ -276,7 +276,7 @@ if (in_array($module['name'], ['Ordini cliente', 'Ordini fornitore', 'Preventivi
- {[ "type": "checkbox", "label": "'.tr('Articolo confermato').'", "name": "confermato", "value": "'.$confermato.'" ]} + {[ "type": "checkbox", "label": "'.tr('Articolo confermato').'", "name": "confermato", "value": "'.$confermato.'", "help": "'.tr('Articolo confermato dal _ANA_ e che è possibile evadere', ['_ANA_' => $module['name'] == 'Ordini fornitore' ? tr('fornitore') : tr('cliente')]).'" ]}
{[ "type": "checkbox", "label": "'.tr('Cambia stato a tutte le righe').'", "name": "confermato_all", "value": "" ]} diff --git a/modules/ordini/row-list.php b/modules/ordini/row-list.php index 91a8aea9d..2e285c638 100755 --- a/modules/ordini/row-list.php +++ b/modules/ordini/row-list.php @@ -200,7 +200,7 @@ foreach ($righe as $riga) { $progress_perc = $riga->qta_evasa * 100 / $riga->qta; echo ' - {[ "type": "number", "name": "qta_'.$riga->id.'", "value": "'.$riga->qta.'", "min-value": "0", "onchange": "aggiornaInline($(this).closest(\'tr\').data(\'id\'))", "icon-before": "confermato ? 'fa fa-check text-success' : 'fa fa-clock-o text-warning').'\'>", "icon-after": " numberFormat($riga->qta_evasa, 'qta'), '_TOT_' => numberFormat($riga->qta, 'qta')]).'\'>'.$riga->um.' ", "disabled": "'.($riga->isSconto() ? 1 : 0).'", "disabled": "'.$block_edit.'" ]} + {[ "type": "number", "name": "qta_'.$riga->id.'", "value": "'.$riga->qta.'", "min-value": "0", "onchange": "aggiornaInline($(this).closest(\'tr\').data(\'id\'))", "icon-before": "confermato ? tr('Articolo confermato') : tr('Articolo non confermato')).'\'>confermato ? 'fa fa-check text-success' : 'fa fa-clock-o text-warning').'\'>", "icon-after": " numberFormat($riga->qta_evasa, 'qta'), '_TOT_' => numberFormat($riga->qta, 'qta')]).'\'>'.$riga->um.' ", "disabled": "'.($riga->isSconto() ? 1 : 0).'", "disabled": "'.$block_edit.'" ]}
diff --git a/modules/preventivi/row-list.php b/modules/preventivi/row-list.php index bbcc53a06..984e17291 100755 --- a/modules/preventivi/row-list.php +++ b/modules/preventivi/row-list.php @@ -151,7 +151,7 @@ foreach ($righe as $riga) { $progress_perc = $riga->qta_evasa * 100 / $riga->qta; echo ' - {[ "type": "number", "name": "qta_'.$riga->id.'", "value": "'.$riga->qta.'", "min-value": "0", "onchange": "aggiornaInline($(this).closest(\'tr\').data(\'id\'))", "icon-before": "confermato ? 'fa fa-check text-success' : 'fa fa-clock-o text-warning').'\'>", "icon-after": " numberFormat($riga->qta_evasa, 'qta'), '_TOT_' => numberFormat($riga->qta, 'qta')]).'\'>'.$riga->um.' ", "disabled": "'.($riga->isSconto() ? 1 : 0).'", "disabled": "'.$block_edit.'" ]} + {[ "type": "number", "name": "qta_'.$riga->id.'", "value": "'.$riga->qta.'", "min-value": "0", "onchange": "aggiornaInline($(this).closest(\'tr\').data(\'id\'))", "icon-before": "confermato ? tr('Articolo confermato') : tr('Articolo non confermato')).'\'>confermato ? 'fa fa-check text-success' : 'fa fa-clock-o text-warning').'\'>", "icon-after": " numberFormat($riga->qta_evasa, 'qta'), '_TOT_' => numberFormat($riga->qta, 'qta')]).'\'>'.$riga->um.' ", "disabled": "'.($riga->isSconto() ? 1 : 0).'", "disabled": "'.$block_edit.'" ]}