se già esiste l'ordine, non crearne uno nuovo
This commit is contained in:
@@ -2183,7 +2183,6 @@ Route::get('/testcli', function () {
|
||||
} catch (\Throwable $th) {
|
||||
dd($th);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Route::post('/updatecreate', function (Request $request) {
|
||||
@@ -2208,6 +2207,13 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
$myidInternet = (int) $request->id;
|
||||
$CodClienteInternet = (int) $request->customer_id;
|
||||
|
||||
$myexistorder = getOrderByIdInternet($myidInternet);
|
||||
if ($myexistorder) {
|
||||
// Se questo ordine è stato già creato, allora ESCO.
|
||||
$productLogger->addLog('', 'ORDINE GIA ESISTENTE ! ' . $myidInternet);
|
||||
return true;
|
||||
}
|
||||
|
||||
$clienteinGM = null;
|
||||
|
||||
$codClienteGM = '';
|
||||
|
||||
Reference in New Issue
Block a user