Menu

#31 Credit values are set 60 points higher than they should be

open-works-for-me
nobody
None
5
2011-03-13
2011-03-10
Garet
No

The vt_appointment database has a creditvalue field. I believe an appointment will always be worth ( 60 credits * hours ) but currently it looks like ( 60 + 60 * hours ).

I believe the bug is on the request tutor page when the appointment is added to the database.

Is a creditvalue field needed/useful? How can we store a 30 min appointment with hours as ints?

Discussion

  • Kris  Koford

    Kris Koford - 2011-03-13
    • status: open --> open-works-for-me
     
  • Kris  Koford

    Kris Koford - 2011-03-13

    [kris] I have adjusted the code for both the live and dev sites to behave the same when it comes to the creation of the credits in the appointment table. it puts in the correct amount to the data base at this time. I also added the code to remove and check the available credits of the tutee at the time of the creation of the appointment. if the tutee does not have enough tempcredits in the drupal_users table then nothing happens and the user sees a message saying that they do not have enough credits to make the appoinment.

     

Log in to post a comment.

Auth0 Logo