Ottimizzazione oscuramento prezzi al tecnico

This commit is contained in:
loviuz 2020-04-21 15:44:49 +02:00
parent 769b3193a5
commit ec4f7b1fe9
3 changed files with 8 additions and 8 deletions

View File

@ -40,7 +40,7 @@ if ($module['name'] != 'Contratti' && $module['name'] != 'Preventivi') {
$disabled = empty($result['idarticolo']); $disabled = empty($result['idarticolo']);
echo ' echo '
<div class="row" id="prezzi_articolo"> <div class="row '.(!empty($options['nascondi_prezzi']) ? 'hidden' : '').'" id="prezzi_articolo">
<div class="col-md-4 text-center"> <div class="col-md-4 text-center">
<button type="button" class="btn btn-sm btn-info btn-block '.($disabled ? 'disabled' : '').'" '.($disabled ? 'disabled' : '').' onclick="$(\'#prezziacquisto\').toggleClass(\'hide\'); $(\'#prezziacquisto\').load(\''.ROOTDIR."/ajax_complete.php?module=Articoli&op=getprezziacquisto&idarticolo=' + ( $('#idarticolo option:selected').val() || $('#idarticolo').val()) + '&idanagrafica=".$options['idanagrafica'].'\');"> <button type="button" class="btn btn-sm btn-info btn-block '.($disabled ? 'disabled' : '').'" '.($disabled ? 'disabled' : '').' onclick="$(\'#prezziacquisto\').toggleClass(\'hide\'); $(\'#prezziacquisto\').load(\''.ROOTDIR."/ajax_complete.php?module=Articoli&op=getprezziacquisto&idarticolo=' + ( $('#idarticolo option:selected').val() || $('#idarticolo').val()) + '&idanagrafica=".$options['idanagrafica'].'\');">
<i class="fa fa-search"></i> '.tr('Ultimi prezzi di acquisto').' <i class="fa fa-search"></i> '.tr('Ultimi prezzi di acquisto').'

View File

@ -9,7 +9,7 @@ echo App::internalLoad('conti.php', $result, $options);
// Iva // Iva
echo ' echo '
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4 '.(!empty($options['nascondi_prezzi']) ? 'hidden' : '').'">
{[ "type": "select", "label": "'.tr('Iva').'", "name": "idiva", "required": 1, "value": "'.$result['idiva'].'", "ajax-source": "iva" ]} {[ "type": "select", "label": "'.tr('Iva').'", "name": "idiva", "required": 1, "value": "'.$result['idiva'].'", "ajax-source": "iva" ]}
</div>'; </div>';

View File

@ -15,11 +15,11 @@ if (!$righe->isEmpty()) {
<thead> <thead>
<tr> <tr>
<th>'.tr('Descrizione').'</th> <th>'.tr('Descrizione').'</th>
<th class="text-center" width="8%">'.tr('Q.').'</th> <th class="text-center" width="8%">'.tr('Q.').'</th>';
<th class="text-center" width="15%">'.tr('Prezzo di acquisto').'</th>';
if ($show_prezzi) { if ($show_prezzi) {
echo ' echo '
<th class="text-center" width="15%">'.tr('Prezzo di acquisto').'</th>
<th class="text-center" width="15%">'.tr('Prezzo di vendita').'</th> <th class="text-center" width="15%">'.tr('Prezzo di vendita').'</th>
<th class="text-center" width="10%">'.tr('Iva').'</th> <th class="text-center" width="10%">'.tr('Iva').'</th>
<th class="text-center" width="15%">'.tr('Imponibile').'</th>'; <th class="text-center" width="15%">'.tr('Imponibile').'</th>';
@ -74,13 +74,13 @@ if (!$righe->isEmpty()) {
'.Translator::numberToLocale($r['qta'], 'qta').' '.$r['um'].' '.Translator::numberToLocale($r['qta'], 'qta').' '.$r['um'].'
</td>'; </td>';
//Costo unitario if ($show_prezzi) {
echo ' //Costo unitario
echo '
<td class="text-right"> <td class="text-right">
'.moneyFormat($riga->costo_unitario).' '.moneyFormat($riga->costo_unitario).'
</td>'; </td>';
if ($show_prezzi) {
// Prezzo unitario // Prezzo unitario
echo ' echo '
<td class="text-right"> <td class="text-right">