hi,
Has anyone built a checkin/out type of system? Something similar to a library checkout.
I am doing this for demo items for a customer.
What fields I have now are below:
* title (item name)
* serial
* status (in/out)
* history (matrix that includes a. checked out to, b. approved by, c. checkout date, d. checkin date)
* Additional notes
I want to have a list of the items with the title being the link to the detail page of the item (done), that then has the status and a button that will either “check in” or “check out” the item.
I figure I can get rid of the status field if I can somehow possible use PHP (or something else that might already be built) to enter the proper info into the correct field when someone clicks the “check in/out” button.
Example:
the list page has a list of items. One Item shows that it is checked out. the button will then give the option to “check in”. When a user clicks the button, it will enter the current date and time into the current last row of the matrix’s “check in date” field.
On the flip side, if the item in the list is “in”, the button will display the link/button “check out”. When the user clicks this, i need to somehow create a new row in the matrix, and enter the matrix info listed above, minus the checkin date obviously.
Any one have any ideas if this is possible?
I figure i will probably need to use a combination of php, javascript and the query tags to do this, but not too sure.
Just trying to get ideas.
Many thanks,
Ryan