May 2023

// find the parent tr element of any td with the word Bugfix in it document.addEventListener("DOMContentLoaded", function(){ let tableElement = setUpShowMoreButton(); // create top bar, if there are bug fixes if (tableElement != '') { let buttonDiv = document.createElement('div'); buttonDiv.setAttribute('class', 'topNewsBar'); buttonDiv.innerHTML = ''; tableElement.prepend(buttonDiv); } }); function setUpShowMoreButton() { let hideBugfixFlag = false; let tableElement = ''; document.querySelectorAll('td').forEach(function(item){ if (item.innerHTML.indexOf('Bug') != -1) { let thisParentElement = item.parentElement; // thisParentElement.style.display = 'none'; thisParentElement.classList.add('bugfixStyle'); thisParentElement.style = 'display: none' hideBugfixFlag = true; tableElement = thisParentElement.parentElement.parentElement.parentElement; } }); reStyleTableRows(); return tableElement; } function showBugfixes() { let classElements = document.getElementsByClassName('bugfixStyle'); Array.prototype.forEach.call(classElements,function(classElement){ classElement.style = 'display:table-row'; }); let hideButton = document.getElementById('showMoreButton'); hideButton.textContent = 'Show Less'; hideButton.setAttribute('onClick','hideBugfixes()'); reStyleTableRows(); } function hideBugfixes() { let classElements = document.getElementsByClassName('bugfixStyle'); Array.prototype.forEach.call(classElements,function(classElement){ classElement.style = 'display:none'; }); let hideButton = document.getElementById('showMoreButton'); hideButton.textContent = 'Show More'; hideButton.setAttribute('onClick','showBugfixes()'); reStyleTableRows(); } // Re-create alternative row colours function reStyleTableRows() { let rowCount = 0; document.querySelectorAll('tr').forEach(function(item){ if (item.style.display != 'none') { if (rowCount++ % 2) { item.style = 'background-color:#f3f4f5'; } else { item.style = 'background-color:transparent'; } } }); }    
10th May Adding CSV exporting to Financial report when viewing a specific job. Enhancement
10th May Adding new replacement variables for job applicance printouts: {$Appliance.ReceivedDate} {$Appliance.ReceivedDateDisplay} {$Appliance.ReceivedByStaffName} Enhancement
10th May Disabling Hafele Upload, due to longer term unavailability of the Hafele API. Notification
10th May Bugfix for handling stock going into the warehouse, where if a PO was split, and part of the order was picked from the store, then the picklist would erroneously show just received stock as being already picked. Bugfix
10th May Bugfix for Job Time Report not opening if some operation names had double quotes in them. Bugfix
17th May Preventing quote sections from being shown on the Quote report Bugfix
17th May Allowing values of leads and jobs to be hidden from the trigger emails Enhancement
24th May Allowing xero integration to handle rate limit issues when sending raw requests (not requestArray calls) Enhancement
24th May Allowing the Dispatch touchscreen to be able to save pallets at different warehouses for the one job. Enhancement
24th May Performance improvement for showing the quote window, when lots of quotes already exist in the system. Enhancement