aaa
This commit is contained in:
@@ -527,7 +527,10 @@ function setOrdine($idinternet, $mode)
|
|||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
$str = "setOrdine";
|
$str = "setOrdine";
|
||||||
$ordine = Orderdetail::where('IdInternet', $idinternet)->get();
|
$ordini = Orderdetail::where('IdInternet', $idinternet)->get();
|
||||||
|
|
||||||
|
if (!$ordini->isEmpty()) {
|
||||||
|
$ordine = $ordini[0];
|
||||||
|
|
||||||
if ($ordine)
|
if ($ordine)
|
||||||
$str .= getarraystr($ordine) . "<br>";
|
$str .= getarraystr($ordine) . "<br>";
|
||||||
@@ -542,6 +545,7 @@ function setOrdine($idinternet, $mode)
|
|||||||
$deletedCount = Orderdetail::where('IdInternet', $idinternet)->delete();
|
$deletedCount = Orderdetail::where('IdInternet', $idinternet)->delete();
|
||||||
$str .= "<br><span style='color: red;'>Numero di record eliminati: " . $deletedCount . "</span>";
|
$str .= "<br><span style='color: red;'>Numero di record eliminati: " . $deletedCount . "</span>";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$str .= "Errore: " . $e->getMessage();
|
$str .= "Errore: " . $e->getMessage();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user