diff --git a/app/Http/Controllers/ArticleController.php b/app/Http/Controllers/ArticleController.php index 4c2b8053..43306bd5 100755 --- a/app/Http/Controllers/ArticleController.php +++ b/app/Http/Controllers/ArticleController.php @@ -42,7 +42,7 @@ class ArticleController extends Controller DB::raw('COALESCE(o.totaleVenduti, 0) as totaleVenduti')) ->where('DescrizioneStatoProdotto','In commercio') ->where('DescrizioneTipologia','Libri') - ->where(DB::raw('CONVERT(INT, QtaDisponibile)'),'!=',0) + ->where(DB::raw('CONVERT(INT, o.QtaDisponibile)'),'<>',0) ->orderBy('totaleVenduti', 'desc') ->get();