diff --git a/templates/automezzi_carico/body.php b/templates/automezzi_carico/body.php index c205ae940..5cdcce5eb 100644 --- a/templates/automezzi_carico/body.php +++ b/templates/automezzi_carico/body.php @@ -1,7 +1,7 @@
CARICO SUGLI AUTOMEZZI IL '.date('d/m/Y', strtotime((string) $dt_carico)).'
'; +

CARICO SUGLI AUTOMEZZI IL '.date('d/m/Y', strtotime((string) $dt_carico)).'
'; $targa = ''; $totale_qta = 0.000; @@ -11,48 +11,54 @@ if ($rs) { if ($targa != $rs[$r]['targa']) { if ($targa != '') { echo " - - - - - - - - - - - -
".' '."".' '."".' '."".number_format($totale_qta, 3, ',', '.')." kg".' '."".number_format($totale_ven, 2, ',', '.')." €".' '.'
'; + + + + + + + + + + + + + + + + + +
".' '."".' '."".' '."".number_format($totale_qta, 3, ',', '.')." kg".' '."".number_format($totale_ven, 2, ',', '.')." €".' '.'
'; } echo "
- - - - - - -
Targa: ".$rs[$r]['targa']."Automezzo: ".$rs[$r]['nome'].'
'; + + + + + + +
Targa: ".$rs[$r]['targa']."Automezzo: ".$rs[$r]['nome'].'
'; echo " - - - - - - - - - - - "; +
CodiceDescrizioneSub.Cat.QuantitàP. Ven.TotaleUtente
+ + + + + + + + + + "; $targa = $rs[$r]['targa']; $totale_qta = 0.000; $totale_ven = 0.00; } echo ' - '; + '; $qta = number_format($rs[$r]['qta'], 3, ',', '.').' '.$rs[$r]['um']; $prz_vendita = number_format($rs[$r]['prezzo_vendita'], 2); @@ -60,38 +66,37 @@ if ($rs) { $totv = number_format($prz_vendita, 2) * $rs[$r]['qta']; echo " - - - - - - - - '; + + + + + + + + '; $totale_ven = $totale_ven + $totv; if ($rs[$r]['um'] == 'kg') { $totale_qta = $totale_qta + $rs[$r]['qta']; } } + echo ' +
CodiceDescrizioneSub.Cat.QuantitàP. Ven.TotaleUtente
".$rs[$r]['codice']."".$rs[$r]['descrizione']."".$rs[$r]['subcategoria']."".$qta."".number_format($prz_vendita, 2, ',', '.')." €".number_format($totv, 2, ',', '.')." €".ucfirst((string) $rs[$r]['username']).'
".$rs[$r]['codice']."".$rs[$r]['descrizione']."".$rs[$r]['subcategoria']."".$qta."".number_format($prz_vendita, 2, ',', '.')." €".number_format($totv, 2, ',', '.')." €".ucfirst((string) $rs[$r]['username']).'
'; } else { echo 'Nessun articolo caricato sugli automezzi il '.date('d/m/Y', strtotime((string) $dt_carico)),'.'; } -echo ' - '; - if ($targa != '') { echo " - - - - - - - - - - -
".' '."".' '."".' '."".number_format($totale_qta, 3, ',', '.')." kg".' '."".number_format($totale_ven, 2, ',', '.')." €".' '.'
'; + + + + + + + + + + +
".' '."".' '."".' '."".number_format($totale_qta, 3, ',', '.')." kg".' '."".number_format($totale_ven, 2, ',', '.')." €".' '.'
'; } diff --git a/templates/automezzi_inventario/init.php b/templates/automezzi_inventario/init.php index e747d0690..1d8f565c1 100644 --- a/templates/automezzi_inventario/init.php +++ b/templates/automezzi_inventario/init.php @@ -25,8 +25,8 @@ $where = []; $search_targa = get('search_targa'); $search_nome = get('search_nome'); -$where[] = 'movimenti.qta > 0'; -$where[] = 'movimenti.qta > 0'; +$where[] = 'mg_movimenti.qta > 0'; + if ($search_targa) { $where[] = 'an_sedi.targa like '.prepare('%'.$search_targa.'%'); }