// 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';
}
}
});
}
| 07 Sept |
Adding item codes to products, and allowing those item codes to flow from the product, to the invoice, through to Xero, and back again. | Enhancement |
| 07 Sept |
Allowing Xero integration to handle invoices that are set to inclusive / exclusive | Enhancement |
| 07 Sept |
Performance and efficiency improvement for exporting availability chart. | Enhancement |
| 07 Sept |
Bugfix for clearing the search in purchase order details, not working properly. | Bugfix |
| 14 Sept |
Performance improvement for exporting customers via CSV | Enhancement |
| 14 Sept |
Improve error handling between Jobman and Xero Accounting Software. This change means that if an invoice fails when sending it to Xero, Jobman won’t retry until the invoice is fixed and re-saved. | Enhancement |
| 14 Sept |
Performance improvement for the lead awarded report | Enhancement |
| 14 Sept |
Bugfix for Xero Accoutning Software integration, where sometimes invoices would duplicate in Xero. Also updating the ability to change invoice tax inclusive / exclusive. | Bugfix |
| 28 Sept |
Allowing invoice lines to automatically choose the correct account code, when turning a quote into an invoice, based on products and invoice item types. | Enhancement |
