Fix minori
This commit is contained in:
parent
b181d26af8
commit
6c93ce4ad1
|
@ -289,8 +289,8 @@ if (empty(get('modal'))) {
|
|||
$id = $data[0]['idcontratto'];
|
||||
}
|
||||
|
||||
// Inserito su vendita banco
|
||||
elseif (!empty($vendita['id_riga_venditabanco'])) {
|
||||
// Inserito su vendita banco
|
||||
elseif (!empty($vendita['id_riga_venditabanco'])) {
|
||||
$module_id = Modules::get('Vendita al banco')['id'];
|
||||
|
||||
// Ricerca vendite su contratti
|
||||
|
|
|
@ -201,13 +201,13 @@ foreach ($righe as $riga) {
|
|||
if (empty($record['is_completato'])) {
|
||||
echo '
|
||||
<div class="btn-group">';
|
||||
if ($riga->isArticolo() && !empty($riga->abilita_serial)) {
|
||||
echo '
|
||||
if ($riga->isArticolo() && !empty($riga->abilita_serial)) {
|
||||
echo '
|
||||
<a class="btn btn-primary btn-xs" title="'.tr('Modifica seriali della riga').'" onclick="modificaSeriali(this)">
|
||||
<i class="fa fa-barcode"></i>
|
||||
</a>';
|
||||
}
|
||||
echo '
|
||||
}
|
||||
echo '
|
||||
<a class="btn btn-xs btn-warning" title="'.tr('Modifica riga').'" onclick="modificaRiga(this)">
|
||||
<i class="fa fa-edit"></i>
|
||||
</a>
|
||||
|
|
|
@ -111,19 +111,19 @@ switch ($resource) {
|
|||
|
||||
case 'categorie_imp':
|
||||
$query = 'SELECT `id`, `nome` AS descrizione FROM `my_impianti_categorie` |where| ORDER BY `nome`';
|
||||
|
||||
|
||||
foreach ($elements as $element) {
|
||||
$filter[] = '`id`='.prepare($element);
|
||||
}
|
||||
|
||||
|
||||
$where[] = '`parent` IS NULL';
|
||||
|
||||
|
||||
if (!empty($search)) {
|
||||
$search_fields[] = '`nome` LIKE '.prepare('%'.$search.'%');
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
|
||||
/*
|
||||
* Opzioni utilizzate:
|
||||
* - id_categoria
|
||||
|
@ -131,13 +131,13 @@ switch ($resource) {
|
|||
case 'sottocategorie_imp':
|
||||
if (isset($superselect['id_categoria'])) {
|
||||
$query = 'SELECT `id`, `nome` AS descrizione FROM `my_impianti_categorie` |where| ORDER BY `nome`';
|
||||
|
||||
|
||||
foreach ($elements as $element) {
|
||||
$filter[] = '`id`='.prepare($element);
|
||||
}
|
||||
|
||||
|
||||
$where[] = '`parent`='.prepare($superselect['id_categoria']);
|
||||
|
||||
|
||||
if (!empty($search)) {
|
||||
$search_fields[] = '`nome` LIKE '.prepare('%'.$search.'%');
|
||||
}
|
||||
|
|
|
@ -81,8 +81,6 @@ if (!empty($record['immagine'])) {
|
|||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
||||
|
||||
<div class="col-md-4">
|
||||
{[ "type": "date", "label": "<?php echo tr('Data installazione'); ?>", "name": "data", "value": "$data$" ]}
|
||||
</div>
|
||||
|
@ -93,6 +91,9 @@ if (!empty($record['immagine'])) {
|
|||
{[ "type": "select", "label": "'.tr('Sede').'", "name": "idsede", "value": "$idsede$", "required": "1", "ajax-source": "sedi", "select-options": '.json_encode(['idanagrafica' => $record['idanagrafica']]).', "placeholder": "'.tr('Sede legale').'" ]}
|
||||
</div>';
|
||||
?>
|
||||
<div class="col-md-4">
|
||||
{[ "type": "text", "label": "<?php echo tr('Proprietario'); ?>", "name": "proprietario", "value": "$proprietario$" ]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
|
@ -101,13 +102,6 @@ if (!empty($record['immagine'])) {
|
|||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
{[ "type": "text", "label": "<?php echo tr('Proprietario'); ?>", "name": "proprietario", "value": "$proprietario$" ]}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-4">
|
||||
{[ "type": "text", "label": "<?php echo tr('Ubicazione'); ?>", "name": "ubicazione", "value": "$ubicazione$" ]}
|
||||
|
|
|
@ -170,12 +170,12 @@ echo "
|
|||
|
||||
if ($options['pricing']) {
|
||||
echo "
|
||||
<th class='text-center' style='width:15%'>".tr('Prezzo unitario', [], ['upper' => true])."</th>";
|
||||
if (!$options['no-iva']) {
|
||||
echo"
|
||||
<th class='text-center' style='width:10%'>".tr('IVA', [], ['upper' => true])." (%)</th>";
|
||||
}
|
||||
echo"
|
||||
<th class='text-center' style='width:15%'>".tr('Prezzo unitario', [], ['upper' => true]).'</th>';
|
||||
if (!$options['no-iva']) {
|
||||
echo "
|
||||
<th class='text-center' style='width:10%'>".tr('IVA', [], ['upper' => true]).' (%)</th>';
|
||||
}
|
||||
echo "
|
||||
<th class='text-center' style='width:15%'>".($options['hide-total'] ? tr('Importo ivato', [], ['upper' => true]) : tr('Importo', [], ['upper' => true])).'</th>';
|
||||
}
|
||||
|
||||
|
@ -299,7 +299,7 @@ foreach ($righe as $key => $riga) {
|
|||
<td></td>
|
||||
<td></td>';
|
||||
if (!$options['no-iva']) {
|
||||
echo'
|
||||
echo '
|
||||
<td></td>';
|
||||
}
|
||||
}
|
||||
|
@ -323,7 +323,7 @@ foreach ($righe as $key => $riga) {
|
|||
</td>
|
||||
</tr>';
|
||||
if (!$options['no-iva']) {
|
||||
echo'
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="'.($options['show-only-total'] ? 2 : 5).'" class="text-right">
|
||||
<b>'.tr('Iva', [], ['upper' => true]).':</b>
|
||||
|
@ -367,7 +367,7 @@ if (($options['pricing'] && !isset($options['hide-total'])) || $options['show-on
|
|||
// Totale imponibile
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="'.($options['show-only-total'] ? ($options['no-iva'] ?3:2) : 4).'" class="text-right border-top">
|
||||
<td colspan="'.($options['show-only-total'] ? ($options['no-iva'] ? 3 : 2) : 4).'" class="text-right border-top">
|
||||
<b>'.tr('Imponibile', [], ['upper' => true]).':</b>
|
||||
</td>
|
||||
|
||||
|
@ -455,9 +455,8 @@ if (($options['pricing'] && !isset($options['hide-total'])) || $options['show-on
|
|||
echo '
|
||||
</table>';
|
||||
|
||||
|
||||
if ($options['no-iva']) {
|
||||
echo'
|
||||
echo '
|
||||
<p colspan="3" class="text-right text-muted">
|
||||
<small>Importo IVA esclusa</small>
|
||||
</p>
|
||||
|
|
Loading…
Reference in New Issue