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