diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index b2d74456..33f44e7f 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -240,7 +240,7 @@ function loadArticleByIdArticle($id, $checkprevendita = false) function showOrdini() { - $str = "Ordini"; + $str = ""; try { @@ -254,13 +254,15 @@ function showOrdini() // Show the fields of the orders foreach ($orders as $order) { $str .= getvalstr("", $order->Codice) . " "; + $str .= getvalstr("", $order->DataOra); $str .= getvalstr("IdInternet", $order->IdInternet, true). " "; $str .= getvalstr("", $order->CodArticoloGM, true); $str .= getvalstr("Qta", $order->Qta); - $str .= getvalstr("", $order->DataOra); $str .= getvalstr("Prezzo", $order->PrezzoLordo); - $str .= getvalstr("Sconto", $order->PercSconto); - $str .= getvalstr("Descr", $order->Descrizione); + if ($order->PercSconto) + $str .= getvalstr("Sconto", $order->PercSconto); + if ($order->Descrizione) + $str .= getvalstr("Descr", $order->Descrizione); $str .= '
'; }