jinhanjinhan / pe

0 stars 0 forks source link

Markpaid command can mark multiple times even the user has marked that month as paid already #7

Closed jinhanjinhan closed 1 week ago

jinhanjinhan commented 1 week ago

Screenshot 2024-11-15 at 4.45.51 PM.png

Markpaid command can still execute after the student is marked paid already, but the ideal behaviour should be to reject such behaviours from occurring, or give an error message that tells the user the student has paid already, since that is the most resonable behaviour. The implementation is also relatively simple as you can simply add a check for whether the payment for that month is already present or not.