This commit is contained in:
paoloar77
2024-12-07 19:40:48 +01:00
parent 32eb5ac9b6
commit 68811f31b2

View File

@@ -38,11 +38,11 @@ class ArticleController extends Controller
'f.DescrizioneStatoProdotto', 'f.DescrizioneStatoProdotto',
'i.DescrizioneTipologia', 'i.DescrizioneTipologia',
'n.DescrizioneFormato', 'n.DescrizioneFormato',
'o.QtaDisponibile', 'q.QtaDisponibile',
DB::raw('COALESCE(o.totaleVenduti, 0) as totaleVenduti')) DB::raw('COALESCE(o.totaleVenduti, 0) as totaleVenduti'))
->where('DescrizioneStatoProdotto','In commercio') ->where('DescrizioneStatoProdotto','In commercio')
->where('DescrizioneTipologia','Libri') ->where('DescrizioneTipologia','Libri')
->where(DB::raw('CONVERT(INT, o.QtaDisponibile)'),'<>',0) ->where(DB::raw('CONVERT(INT, q.QtaDisponibile)'),'<>',0)
->orderBy('totaleVenduti', 'desc') ->orderBy('totaleVenduti', 'desc')
->get(); ->get();