aggiornato lista dei movimenti e inserito come test il fullcalendar

This commit is contained in:
2023-10-04 13:41:10 +02:00
parent 21cc195ce4
commit 67775716b8
13 changed files with 99 additions and 25 deletions

View File

@@ -27,7 +27,8 @@ class GenDoc extends Model
public static function listDocument($entity,$entity_id)
{
// Ritorna la lista dei documenti in base all'entità e al rispettivo id
return DB::table('gen_docs')->where('entity','=',$entity)->andWere('entity_id','=',$entity_id)->get();
// return DB::table('gen_docs')->where('entity','=',$entity)->where('entity_id','=',$entity_id)->get(); //nuova funzione
return DB::table('documentis')->where('movimenti_id','=', $entity_id)->get();
}
public static function countDocument($entity,$entity_id){