I'm working on a tool for my studies and is designed to display all exams and additionally, it has the functionality of automatic study progress. The idea is that when I click on an exam, it automatically gets marked in green and the progress automatically increases in proportion to the ratio of the marked exam to the total ECTS credits of the program.
The app is structured so that upon launching, the sections "Erster Studienabschnitt" (=First Study Phase), "Zweiter Studienabschnitt" (=Second Study Phase), "Freie Studienleistungen" (=Free Study Achievements) appear, each with their own detailed views. The "Erster Studienabschnitt" includes the exams "Privatrecht I", "Öffentliches Recht I", "Strafrecht I", "Österreichische und europäische Rechtsgeschichte", "Romanistische Grundlagen der europäischen Zivilrechtsdogmatik". Privatrecht I, Öffentliches Recht I and Strafrecht I each lead to their own detail view containing the exams. For these, the function works flawlessly.
However, the whole thing does not work at all for the free study achievements. When you go to "Freie Studienleistungen", you see "KS", "AG", "UE", "KK", "VO", "VL", "ECTS aus anderen Studien", "KV", "Repetitorium". These 9 fields also lead to detailed views where one can see individual exams, which should be added to the progress when marked. The issue is that all exams from these 9 views should only count up to a total of 24 ECTS towards the study progress, so beyond 24 ECTS, the percentage of progress does not increase anymore.
The problem occurs, for example, when I mark the exam "AG Europarecht in "AG", which should be worth 2 ECTS, the percentage remains the same and does not increase at all...
Does anyone see a mistake? The studyprogressview is the "main" view where (I guess) something's missing
Already tried to get help from AI, but did not solve the problem.