Open rekaehreth opened 3 years ago
A coach can have multiple groups assigned to them, and a group can have multiple coaches assigned to it. It's possible, that multiple groups of one coach can apply for the same training. AS A trainee WHEN I register to a training I WANT TO be able to see the coaches of my groups that've already registered SO I can decide if I want to go, or not.
The trainee should be able to choose which group they want to join if they have multiple
Payment A coach should have their wage, and weather that's absolute (it doesn't matter how many attended their training, they get paid the same amount), or per capita. When a trainee registers for a training, their payment should be created according to the group they've choosen and the coach that'll be there. E.g. group: Tanfolyam, coach: Réka, and Tündi registers for it --> Réka should have a +4000 payment linked to their user, and Tündi should have a -4000 payment linked to theirs (Réka has an absolute wage) E.g.2: group: Team Ildi, coach: Ildi, attendees registered: Matyi, Bogi, Réka, Petra, and Gréti. Ildi should have a +5000 payment, all the attendees should have a -3000 payment linked to their profile (Ildi has a per capita wage)
Training registration Change icon on training card from person_add to person_remove
Training application + Payment Handle time differences in trainings (50 mins - 4000, 80 mins - 6000, 110 min - 8000)
Every payment should have the name, email, and role of the linked user (Especially interested if the registration is linked to a guardian)
Users Make groups contain chips https://material.angular.io/components/chips/overview
Training details
if (currentTime < training.startTime+15min)
OR if (training.status === "pending")
past
Sorting The following components should have sort options
Display users in table in group component
Make the following components scrollable:
Filtering Add filtering in the following components
Check session validity before edit / delete training
Layout: In the following tables, the following data is displayed weirdly (text is higher up than other data in same row) | Component | Column |
---|---|---|
Users | Groups | |
Finances (admin) | Name | |
Finances (admin) | ||
Finances (admin) | Amount | |
Finances (user) | Amount |
Create dialog when adding coach to users roles to get wage
G33V+VV Budapest
This issue is a collection of minor issues, so I can open individual ones for the important ones, and don't forget about them