// 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';
}
}
});
}
| 5th April | Bugfix for quote item subtotals not being hidden when they should have been hidden due to being zero. | Bugfix |
| 5th April | Bugfix to ensure that values columns are shown in the Stock Items report if the staff member has access to see the values. | Bugfix |
| 12th April | Improving automatic text handling, when converting a quote item to an invoice item (especially when making a quote item from a section that has been formatted in HTML). | Enhancement |
| 12th April | Bugfix for Appliance Type not showing the list of Appliance Types in the correct order. | Enhancement |
| 12th April | Showing the latest operation comment for a particular labour centre, on the agenda screen. This allows a user to flag a problem using their timesheet, which then shows up on the agenda screen. | Enhancement |
| 19th April | Add a Job filtering function to the capacity planning report. | Enhancement |
| 19th April | Preventing inaccuracy in the number of items in the warehouse, when a user opens the warehouse items, then hits Picklist, then marks items as removed, and then saves the form (which re-saves the old value). | Bugfix |
| 26th April | Adding ability to handle Cabinet Vision 8 uploads using JMSync | Enhancement |
