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
|
class MovimentiController extends Controller
|
||||||
{
|
{
|
||||||
// Gestione dei movimenti
|
// Gestione dei movimenti
|
||||||
|
|
||||||
public static function newMovimenti() {
|
public static function newMovimenti() {
|
||||||
$categorie=DB::table('categories')->orderBy('cat_name')->get();
|
$categorie=DB::table('categories')->orderBy('cat_name')->get();
|
||||||
$tags=DB::table('tags')->orderBy('tag_name')->get();
|
$tags=DB::table('tags')->orderBy('tag_name')->get();
|
||||||
@ -23,9 +22,7 @@ class MovimentiController extends Controller
|
|||||||
public static function listMovimenti(){
|
public static function listMovimenti(){
|
||||||
$categorie=DB::table('categories')->orderBy('cat_name')->get();
|
$categorie=DB::table('categories')->orderBy('cat_name')->get();
|
||||||
$tags=DB::table('tags')->orderBy('tag_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')
|
$movimenti=DB::table('movimentis')
|
||||||
->join('categories','movimentis.mov_fk_categoria','=','categories.id')
|
->join('categories','movimentis.mov_fk_categoria','=','categories.id')
|
||||||
->join('tags','movimentis.mov_fk_tags','=','tags.id')
|
->join('tags','movimentis.mov_fk_tags','=','tags.id')
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
<!-- /.col-lg-12 -->
|
<!-- /.col-lg-12 -->
|
||||||
|
|
||||||
@endsection
|
@endsection
|
||||||
|
|
||||||
@section('script')
|
@section('script')
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
|
@ -55,7 +55,8 @@
|
|||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
$('#listamovimenti').DataTable({
|
$('#listamovimenti').DataTable({
|
||||||
responsive: true
|
responsive: true,
|
||||||
|
"order": [[0,"desc"]]
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
Reference in New Issue
Block a user