This commit is contained in:
paoloar77
2024-07-11 14:40:33 +02:00
parent cab2b51119
commit 0323801388
2 changed files with 15 additions and 2 deletions

View File

@@ -5,6 +5,7 @@ use Codexshaper\WooCommerce\Facades\Product;
use Illuminate\Console\Command;
use App\Setting;
use App\Article;
use App\Clientegm;
use App\Mylog;
use Codexshaper\WooCommerce\Models\Product as ModelsProduct;
use Codexshaper\WooCommerce\Facades\Variation;
@@ -1717,3 +1718,15 @@ function updateArticoloFromGM($idarticolo)
return "Errore updateArticoloFromGM: " . $e->getMessage();
}
}
function getClienteByIdInternet($idInternet) {
echo 'IdInternet=' . $idInternet;
$clienteinGM = Clientegm::where('IdInternet', $idInternet)->first();
if ($clienteinGM)
echo 'clienteinGM=' . json_decode($clienteinGM);
else {
echo 'Cliente non trovato... clienteinGM=' . $clienteinGM;
}
return $clienteinGM;
}