November 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'; } } }); }  
02 November Bugfix for handling commas in operation type names, when editing staff Bugfix
02 November Bugfix for jobs occasionally not finding the correct job folder if that folder had been renamed manually. Bugfix
02 November Bugfix for purchase order items added using the “Add More” functionality, not collating properly with other items that were added using Job Raw Materials. Bugfix
02 November Bugfix for adding edge tape to a purchase order, and that purchase order not collating items properly. Bugfix