aggiunto selezione anno per il report per categorie
Per riuscire a vedere il report degli anni anche passati
This commit is contained in:
@@ -203,6 +203,14 @@ class Movimenti extends Model
|
||||
});
|
||||
}
|
||||
|
||||
public static function getYearsFromMovimenti()
|
||||
{
|
||||
$anni=DB::table('movimentis')->select(DB::raw('DISTINCT YEAR(mov_data) as anno'))->get();
|
||||
// dd($anni); // for test purposes
|
||||
return $anni;
|
||||
}
|
||||
|
||||
|
||||
private static function dateFormat($type,$string)
|
||||
{
|
||||
if($type)
|
||||
|
||||
Reference in New Issue
Block a user