Ordinamento lista movimenti Decrescente per data
This commit is contained in:
parent
e3489d4671
commit
18ec6dd0c1
@ -10,7 +10,6 @@ use Rap2hpoutre\FastExcel\FastExcel;
|
||||
class MovimentiController extends Controller
|
||||
{
|
||||
// Gestione dei movimenti
|
||||
|
||||
public static function newMovimenti() {
|
||||
$categorie=DB::table('categories')->orderBy('cat_name')->get();
|
||||
$tags=DB::table('tags')->orderBy('tag_name')->get();
|
||||
@ -23,9 +22,7 @@ class MovimentiController extends Controller
|
||||
public static function listMovimenti(){
|
||||
$categorie=DB::table('categories')->orderBy('cat_name')->get();
|
||||
$tags=DB::table('tags')->orderBy('tag_name')->get();
|
||||
/*
|
||||
* Query per visualizzare anche il totale dei documenti presenti per il record
|
||||
* */
|
||||
/* Query per visualizzare anche il totale dei documenti presenti per il record */
|
||||
$movimenti=DB::table('movimentis')
|
||||
->join('categories','movimentis.mov_fk_categoria','=','categories.id')
|
||||
->join('tags','movimentis.mov_fk_tags','=','tags.id')
|
||||
|
@ -56,6 +56,7 @@
|
||||
<!-- /.col-lg-12 -->
|
||||
|
||||
@endsection
|
||||
|
||||
@section('script')
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
|
@ -55,7 +55,8 @@
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#listamovimenti').DataTable({
|
||||
responsive: true
|
||||
responsive: true,
|
||||
"order": [[0,"desc"]]
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user