Jump to content

Recommended Posts

Posted

@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.

Posted
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
Posted
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
Posted

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.

Posted

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.

Posted (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 by nickbro
Posted

@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.

Posted

@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.

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...