// 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';
}
}
});
}
| Apr 01 | Bugfix for selecting the supplier for items that are low in stock, when multiple items exist with the same product code | Bugfix |
| Apr 04 | Bugfix for invoice portions occasionally not working correctly, when making a new invoice, and previous invoices had been updated manually | Bugfix |
| Apr 05 | Adding “Quote Number” filter to quote items report | Enhancement |
| Apr 06 | Bugfix for MYOB integration, where if a customer only had a mobile phone number, sometimes that mobile number could be blanked out | Bugfix |
| Apr 07 | Bugfix for sorting job forms by staff member | Bugfix |
| Apr 08 | Bugfix for Job Time report, where entering multiple job numbers, separated by a comma, wasn’t searching for those multiple job numbers | Bugfix |
| Apr 11 | Usability improvements for the schedule (stretching window, remembering size) | Useabilty |
| Apr 12 | Bugfix for purchase orders exporting the old product code, when a product is selected from an alternative supplier | Bugfix |
| Apr 16 | Performance improvement for the financial report | Enhancement |
| Apr 17 | Adding notes to Job and Lead bar charts | Useabilty |
| Apr 18 | Updating woocommerce import to handle updated CSV format | Useabilty |
| Apr 19 | Bugfix for onedrive duplicate folder issue | Bugfix |
