This commit is contained in:
paoloar77
2024-07-18 15:05:52 +02:00
parent ca8c01ed4c
commit bb7cabe962
2 changed files with 4 additions and 3 deletions

View File

@@ -526,7 +526,7 @@ function showOrdini()
function setOrdine($idinternet, $mode)
{
try {
$str = "";
$str = "setOrdine";
$ordine = Orderdetail::where('IdInternet', $idinternet)->get();
if ($ordine)
@@ -540,7 +540,7 @@ function setOrdine($idinternet, $mode)
if ($mode === 'AAAdel' && $ordine) {
// delete record $ordine
$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) {
$str .= "Errore: " . $e->getMessage();