manioul / TeamTime

Web application to manage a team working on a recurrent shift (not necessarily weekly).
Other
1 stars 2 forks source link

préréquations multiples dans le récapitulatif #15

Open oukase opened 9 years ago

oukase commented 9 years ago

La page des péréq récapitulent les péréq déjà déposées. Chaque péréquation apparaît plusieurs fois (sdid identiques présents plusieurs fois avec des jours de cycles différents..).

manioul commented 9 years ago

La vue VIEW_LIST_DISPO, sur laquelle est basée l'affichage des péréq, ne prend pas en compte l'affectation des utilisateurs ; l'affichage multiple correspond au nombre d'affectations différentes que comporte la base de données :

VIEW VIEW_LIST_DISPO AS select l.sdid AS sdid,l.uid AS uid,u.nom AS nom,d.dispo AS dispo,l.date AS date,c.vacation AS vacation,year(l.date) AS year,l.pereq AS pereq from ((((TBL_L_SHIFT_DISPO l join TBL_USERS u) join TBL_DISPO d) join TBL_GRILLE g) join TBL_CYCLE c) where ((l.date = g.date) and (g.cid = c.cid) and (u.uid = l.uid) and (d.did = l.did)) union select l.sdid AS sdid,l.uid AS uid,u.nom AS nom,d.dispo AS dispo,l.date AS date,l.date AS date,v.year AS year,l.pereq AS pereq from (((TBL_L_SHIFT_DISPO l join TBL_USERS u) join TBL_DISPO d) join TBL_VACANCES v) where ((l.date = 0) and (l.sdid = v.sdid) and (u.uid = l.uid) and (d.did = l.did)) order by date,nom;