aa
This commit is contained in:
@@ -1744,3 +1744,14 @@ function getClienteByIdCodClienteInternet($codClienteInternet)
|
||||
|
||||
return $clienteinGM;
|
||||
}
|
||||
|
||||
function getClienti() {
|
||||
try {
|
||||
$clienti = Clientegm::all();
|
||||
|
||||
dd($clienti);
|
||||
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -2148,6 +2148,10 @@ Route::post('/pao1', function (Request $request) {
|
||||
|
||||
dd($request->all());
|
||||
});
|
||||
Route::post('/getclienti', function (Request $request) {
|
||||
getClienti();
|
||||
|
||||
});
|
||||
|
||||
function updateCreate(Request $request)
|
||||
{
|
||||
@@ -2274,7 +2278,7 @@ function updateCreate(Request $request)
|
||||
$cliente = $clienteinGM;
|
||||
}
|
||||
|
||||
if ($cliente == null) {
|
||||
if ($cliente === null) {
|
||||
$cliente = new Clientegm();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user