aa
This commit is contained in:
@@ -1719,19 +1719,26 @@ function updateArticoloFromGM($idarticolo)
|
||||
}
|
||||
}
|
||||
|
||||
function getClienteByIdInternet($idInternet)
|
||||
function getClienteByIdInternet_Ordine($idInternet)
|
||||
{
|
||||
|
||||
try {
|
||||
$clienteinGM = DB::table('T_WOO_Clienti')->where('IdInternet', $idInternet)->first();
|
||||
Log::debug('[getClienteByIdInternet]' . ' idInternet: ' . $idInternet . '', ['clienteinGM' => $clienteinGM]);
|
||||
if (!$clienteinGM)
|
||||
$clienteinGM = Clientegm::where('IdInternet', $idInternet)->first();
|
||||
$clienteinGM = Clientegm::where('IdInternet', $idInternet)->first();
|
||||
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return $clienteinGM;
|
||||
}
|
||||
|
||||
function getClienteByIdCodClienteInternet($codClienteInternet)
|
||||
{
|
||||
|
||||
try {
|
||||
$clienteinGM = Clientegm::where('codClienteInternet', $codClienteInternet)->first();
|
||||
|
||||
Log::debug('RISULTATO:', ['clienteinGM' => $clienteinGM]);
|
||||
} catch (\Exception $e) {
|
||||
Log::error('Errore durante la query: ' . $e->getMessage());
|
||||
// echo 'Errore getClienteByIdInternet: ' . $e->getMessage();
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user