Fix stampe Automezzi

This commit is contained in:
valentina 2024-07-16 17:15:29 +02:00
parent ef08d0665d
commit 211e1f279f
2 changed files with 61 additions and 56 deletions

View File

@ -12,7 +12,13 @@ if ($rs) {
if ($targa != '') {
echo "
<table cellspacing='0' style='table-layout:fixed;'>
<col width='35'><col width='275'><col width='50'><col width='70'><col width='45'><col width='65'><col width='65'>
<col width='35'>
<col width='275'>
<col width='50'>
<col width='70'>
<col width='45'>
<col width='65'>
<col width='65'>
<tr>
<td class='first_cell cell-padded'>".'&nbsp;'."</td>
<td class='table_cell cell-padded'>".'&nbsp;'."</td>
@ -74,13 +80,12 @@ if ($rs) {
$totale_qta = $totale_qta + $rs[$r]['qta'];
}
}
echo '
</table>';
} else {
echo 'Nessun articolo caricato sugli automezzi il '.date('d/m/Y', strtotime((string) $dt_carico)),'.';
}
echo '
</table>';
if ($targa != '') {
echo "
<table cellspacing='0' style='table-layout:fixed;'>

View File

@ -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.'%');
}