For Signature 18.04b06 or higher, new service calls cannot be created for inactive service locations from the New Service Call window and from the BOB dashboard in MobileTech. If you want your technicians to be able to create new service calls for inactive locations, you will need to make offline HTML modifications.
To enable service call and service request creation for inactive locations from the New Service Call Form:
// ----- LOCATION -----
.Locate the line if (afterVersion2018R6) {
Add the comment out slashes // to the front of the following line:
entity.addFilter().where(SCHEMA.location.Properties.isinactive, 'eq', 'false')
Add the comment out slashes as shown below: |
You will only need to do these steps if you are using the Building Optimization Broker integration and you want to allow for service calls and service requests to be created for inactive locations.
To enable service call and service request creation for inactive locations from the BOB Dashboard:
In the Edit window, scroll down to the following line: var dynamicActionItems = [];
You will need to remove the following:
In the following line, you will need to remove (afterVersion2018R6 && selected.equipment.islocationinactive) ||
if ((afterVersion2018R6 && selected.equipment.islocationinactive) || !canCreateCall) { // Remove 1. Create Service Call
In the same section, you will also need to remove the following lines:
else if (afterVersion2018R6 && selected.equipment.islocationinactive) { // Remove 1. Create Service Call & 3. Create Service Request
dynamicActionItems.push(actionItems[0], actionItems[2], actionItems[4]);
}
Remove the highlighted text: |
Select Save in the Edit window.
To enable service call and service request creation for inactive locations from the BOB Fault List:
In the Edit window, scroll down to the following line:
if ((afterVersion2018R6 && location.properties.isinactive) || (!canCreateCall && selected.equipment.statusNo === undefined)) {
Remove ((afterVersion2018R6 && location.properties.isinactive) || as well as the second right parenthesis " ) " from the line so that the line displays as:
if (!canCreateCall && selected.equipment.statusNo === undefined) {
Remove the highlighted text: |