learning-unlimited / ESP-Website

A website to help manage the logistics of large, short-term educational programs
82 stars 57 forks source link

Changing program admission cost does not update existing transfers #3749

Closed willgearty closed 2 months ago

willgearty commented 2 months ago

When a student does particular actions on the website (I don't remember at the moment what particular actions), it charges their "account" for the current program admission cost. However, if the program admission cost is changed after this happens, it does not update these charges to their account. Interestingly, the descriptions of these charges are updated, but not their values. This can result in different "amount owed" values on different parts of the website. For example, the extra costs page uses the actual program admission to calculate amount owed, whereas the IAC uses the transfer causing the student schedule and accounting page to have a different amount owed.

The values of these transfers should be updated when the program admission cost is updated. This should then make all of these different pages list the same amount owed, but it might also be good to change to using a standard scheme for calculating the amount owed to prevent problems like this in the future.