March 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'; } } }); }        
1st March Bugfix for state handling, where multiple states sent at once were not being handled properly. Bugfix
8th March Performance improvement when making many work orders from the one parent lead, using the sections to work orders allocation code. Enhancement
22nd March Bugfix for lead checklist timing out when making a new job, when the job is very complicated with lots of work orders. Bugfix
22nd March Allowing job raw materials to be partially picked from the warehouse Enhancement
22nd March Adding ability to use Sharepoint shared folders, instead of a personal OneDrive folder. Enhancement
22nd March Bugfix for staff type not restricting staff from viewing certain reports. Bugfix
29th March Bugfix for printing quote subtotals, where the quote subtotal is negative, and certain items are hidden on the printout.  Bugfix
 29th March Ensuring that the quote item discount field shows the discount amount, even for sections.  Enhancement
 29th March Allowing restriction of certain staff levels, from seeing values in the warehouse items.  Enhancement