aa
This commit is contained in:
@@ -254,11 +254,13 @@ function showOrdini()
|
||||
// Show the fields of the orders
|
||||
foreach ($orders as $order) {
|
||||
$str .= getvalstr("", $order->Codice);
|
||||
$str .= getvalstr("CodGM", $order->CodArticoloGM);
|
||||
$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("Descr:", $order->Descrizione);
|
||||
$str .= getvalstr("Sconto", $order->PercSconto);
|
||||
$str .= getvalstr("Descr", $order->Descrizione);
|
||||
$str .= '<br>';
|
||||
|
||||
}
|
||||
|
||||
@@ -1860,8 +1860,19 @@ Route::get('/autori_test', function () {
|
||||
}
|
||||
});
|
||||
|
||||
function getvalstr($mystr, $value) {
|
||||
return " " . $mystr . ": " . $value;
|
||||
function getvalstr($mystr, $value, $separato = false) {
|
||||
$my = '';
|
||||
if ($mystr) {
|
||||
$my = " " . $mystr . ": " . $value;
|
||||
} else {
|
||||
$my = $value;
|
||||
}
|
||||
|
||||
if ($separato) {
|
||||
$my = '[' + $my + '] ';
|
||||
}
|
||||
|
||||
return $my;
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user