aa
This commit is contained in:
@@ -2285,7 +2285,7 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
}
|
||||
|
||||
if ($CodClienteInternet > 0) {
|
||||
$cliente->CodClienteInternet = $CodClienteInternet;
|
||||
$cliente->CodClienteInternet = $CodClienteInternet;
|
||||
}
|
||||
$cliente->Nominativo = $nome . " " . $cognome;
|
||||
$cliente->Indirizzo = $indirizzo1 . ($indirizzo2 ? (' ' . $indirizzo2) : '');
|
||||
@@ -2327,8 +2327,10 @@ Route::post('/updatecreate', function (Request $request) {
|
||||
|
||||
// Se il Cliente era nuovo, allora estrai l'ID del Cliente appena salvato e passalo all'Ordine
|
||||
if ($CodClienteInternet <= 0) {
|
||||
$CodClienteInternet = $cliente->CodClienteInternet;
|
||||
$order->CodClienteInternet = $CodClienteInternet;
|
||||
if ($cliente->CodClienteInternet) {
|
||||
$CodClienteInternet = $cliente->CodClienteInternet;
|
||||
$order->CodClienteInternet = $CodClienteInternet;
|
||||
}
|
||||
}
|
||||
|
||||
// SALVA L'ORDINE:
|
||||
@@ -6110,6 +6112,11 @@ Route::get('/ordineclientegm/{id}', function ($id) {
|
||||
dd($clients);
|
||||
});
|
||||
|
||||
Route::get('/tutticlientigm', function ($id) {
|
||||
$clients = Clientegm::all();
|
||||
dd($clients);
|
||||
});
|
||||
|
||||
Route::get('/provapao', [TestPaoController::class, 'provapao']);
|
||||
|
||||
Route::get('/aggiornapreorder/{idarticolo}/{aggiornapreordine}', function ($idarticolo, $aggiornapreordine) {
|
||||
|
||||
Reference in New Issue
Block a user