Paul-K Posted August 31, 2013 Posted August 31, 2013 @nickbro I have enabled shared booking for two resource types, laptops and equipment, but in laptops I am unable to change the quantity I require as the number of laptops is already set and am unable to change this, In the equipment I am able to change the quantity but when another user logs in to book the other half of the whatever equipment is listed they are unable too. In the hapconfig.xml file all resources have canshare="true", I presumed this was all I needed to do, have I set something incorrectly? Thanks in advance.
nickbro Posted August 31, 2013 Posted August 31, 2013 Quantity selector is not available on a Laptop Resource type at present. All the rest should work fine
Paul-K Posted August 31, 2013 Author Posted August 31, 2013 I have just gone into the booking.xml file and changed the count manually on a booking and it works but when selecting a quantity thought the front end it doesn't appear to be setting the count
nickbro Posted August 31, 2013 Posted August 31, 2013 Which version of HAP+ are you using, this was fixed in 9.4
Paul-K Posted August 31, 2013 Author Posted August 31, 2013 I am using version 9.4.0727, I updated everything except the web.config as that stopped my install from working, I used the web.config from 9.2
nickbro Posted August 31, 2013 Posted August 31, 2013 Ok, you will need to do some http://www.edugeek.net/forums/home-access-plus/86059-hap-json-debugging.html to find if it's sending the quantity to the server in the post request
Paul-K Posted August 31, 2013 Author Posted August 31, 2013 Hi Nick, It doesn't appear to be sending the count in the post request as shown below:
nickbro Posted August 31, 2013 Posted August 31, 2013 That's not the request, that's the response, I need to know what's getting sent not want comes back
Paul-K Posted August 31, 2013 Author Posted August 31, 2013 Sorry Nick, Hopefully this is what your after this time
nickbro Posted August 31, 2013 Posted August 31, 2013 Yep that's it, nope it's not sending the quantity. Can you post your resources section of your hapConfig.xml file please?
Paul-K Posted August 31, 2013 Author Posted August 31, 2013 Is there anything else I could have setup wrong that would explain this not working correctly
nickbro Posted August 31, 2013 Posted August 31, 2013 It might not be you, hmmm, can you edit ~/bookingsystem/default.aspx in notepad, go to line 361, and change "else if" to "if". That will enable the count on all resources so be very careful, I need to put some code in there to not do what I don't want it to do.
Paul-K Posted September 1, 2013 Author Posted September 1, 2013 Just upgraded to 9.5 which has resolved the issue, thanks @nickbro
Paul-K Posted September 4, 2013 Author Posted September 4, 2013 Hi Nick, Sorry to be a pain but I'm just checking to be sure, in 9.5 should all resources have the count on them even laptops, as when I book the laptops it still shows 16 available. Is this what you were talking about in your earlier post It might not be you, hmmm, can you edit ~/bookingsystem/default.aspx in notepad, go to line 361, and change "else if" to "if". That will enable the count on all resources so be very careful, I need to put some code in there to not do what I don't want it to do.
nickbro Posted September 4, 2013 Posted September 4, 2013 (edited) Yes, will have to try another way. Line 361, change to if (curres.Type != "Loan" && curres.Type != "Laptops" && curres.Quantities.length > 0 && curres.CanShare && parseInt($("#bfquantspin").val()) < parseInt(curres.Quantities[curres.Quantities.length - 1])) { Laptops will use a set amount, i.e. the number in a single trolley. The select as many as you need isn't supported with Laptops. Edited September 4, 2013 by nickbro
Paul-K Posted September 4, 2013 Author Posted September 4, 2013 @nickbro The code above fixes the issue with laptops, the quantity no longer appears once booked but now whenever I book 8 iPads for example, I am no longer able to book the other 8 for another class, they appear to be bookable but when you click to book them the side bar appears, all the relevant information is filled in but when you click book, it doesn't book them and still shows 8 available.
Paul-K Posted September 5, 2013 Author Posted September 5, 2013 @nickbro Just to update on this, I have tested with users in my staff OU and they can book the additional shared equipment if a user has only booked some of the resources but users in my Domain Admin OU can't, it seems to be only admin users who have this issue booking equipment that is shared.
Paul-K Posted September 14, 2013 Author Posted September 14, 2013 @nickbro Any update on this one or should I disable shared bookings at the moment until there is a fix available
nickbro Posted September 14, 2013 Posted September 14, 2013 @Paul-K: Hopefully fixed in v9.6, done some work on the booking system tonight
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now