5 Jan 2004 20:12
Re: Create transaction log
Phil Greer <greer <at> mrctr.upmc.edu>
2004-01-05 19:12:33 GMT
2004-01-05 19:12:33 GMT
Got it worked out in case someone is interested in this functionality. I made a copy of the mrbs_entry table and named it mrbs_transactions. Could be called mrbs_log, whatever... I also created a duplicate of mrbsCreateSingleEntry() function in mrbs_sql.inc and called it mrbsCreateSingleTransaction() calling the mrbs_transactions table. All table entries are the same. A call to mrbsCreateSingleTransacions() needs to be called everywhere mrbsCreateSingleEntry() is called. This would be three places. One in edit_entry_handler.php and twice in the mrbs_sql.inc within the mrbsCreateRepeatingEntrys() function (third function from the bottom). I have one more thing to do yet, and that is to put in a category in the transaction log for when they delete the entry. Will put in how I do this in a later post... So, why did I do this? Well, I am using MRBS it to track time on research equipment linked to a specific room and we need to have better usage stats than the ones that are available with mrbs by default. The point is to keep track of all of the changes in the booking system. If someone books a room (in my case equipment), then comes back and changes the booking requesting additional supplies for the room, you loose the original request date. This same thing happens if you are trying to mark the booking as completed or cancelled. I know not all people are using this for this purpose, but it is something that I have found useful so that I can keep track of the resources used here. ******************************************** * Phil Greer * * Unix/Network Administrator * * MR Research Center *(Continue reading)
RSS Feed