se già esiste l'ordine, non crearne uno nuovo
This commit is contained in:
@@ -514,8 +514,8 @@ function showOrdini()
|
||||
if ($order->Descrizione)
|
||||
$str .= getvalstr("Descr", $order->Descrizione);
|
||||
|
||||
$str .= ' <a href="' . $baseUrl . '/setordine/' . $order->IdInternet . '/idsito/" target="_blank">IMPOSTA IDSITO FDV</a>' . $sep;
|
||||
$str .= ' <a href="' . $baseUrl . '/setordine/' . $order->IdInternet . '/del/" target="_blank">ELIMINA!</a>' . $sep;
|
||||
$str .= ' <a href="' . $baseUrl . '/setordine/' . $order->IdInternet . '/idsito/" target="_blank">[IMPOSTA IDSITO FDV]</a> ' . $sep;
|
||||
$str .= ' <a href="' . $baseUrl . '/setordine/' . $order->IdInternet . '/del/" target="_blank">ELIMINA!</a> ' . $sep;
|
||||
|
||||
// $str .= getarraystr($product) . "<br>";
|
||||
// $str .= $product;
|
||||
@@ -682,7 +682,7 @@ function setOrdine($idinternet, $mode)
|
||||
->update([
|
||||
'IdSito' => "7"
|
||||
]);
|
||||
|
||||
|
||||
$str .= "<br><span style='color: red;'>record Aggiornati: " . $updatedCount . "</span>";
|
||||
}
|
||||
}
|
||||
@@ -775,7 +775,6 @@ function showDettSingleOrdineWeb($idordine)
|
||||
$orders = AppOrderWeb::where('IdInternet', $idordine)->get();
|
||||
|
||||
$str .= showRecordOrder($orders);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
return "Errore showDettOrdini: " . $e->getMessage();
|
||||
}
|
||||
@@ -1995,6 +1994,18 @@ function getClienteByIdCodClienteInternet($codClienteInternet)
|
||||
return $clienteinGM;
|
||||
}
|
||||
|
||||
function getOrderByIdInternet($idInternet)
|
||||
{
|
||||
|
||||
try {
|
||||
$ordergm = AppOrder::where('IdInternet', $idInternet)->first();
|
||||
|
||||
return $ordergm;
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
function getClienti()
|
||||
{
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user