// 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';
}
}
});
}
| 7th June | Allowing quote introduction to hold more than 64k characters. | Enhancement |
| 14th June | Bugfix for setting target dates before and after a set task, where if a target was locked, setting dates would skip over it instead of stopping as requested. | Bugfix |
| 14th June | Bugfix for MYOB invoice date timezone issue. | Bugfix |
| 14th June | Bugfix for raw material report not handling cubic metre rate type correctly. | Bugfix |
| 14th June | Allowing the use of {$ParentJob.xxx} replacement variables when a template is used inside a work order. | Enhancement |
| 21st June | Handle extremely large values in the stock item report (total warehouse value more than $1m per line) | Enhancement |
| 21st June | Adding “Value” column to the Job Raw Material report | Enhancement |
| 21st June | Allowing Job, Lead and ContactPerson replacement variables in invoice type lines | Enhancement |
| 21st June | Turning Hafele integration back on | Enhancement |
| 28th June | Updating stock report to have removal date filters | Enhancement |
| 28th June | Allowing the {$ParentJob. replacement variable set to work for jobs themselves, rather than just for work orders. | Enhancement |
| 28th June | Allowing the use of the {$SupplierCustomer.x} tag for all customer related variables, not just some of them. | Enhancement |
| 28th June | Bugfix for MYOB integration, where the ABN wouldn’t be synchronised from suppliers to Jobman | Bugfix |
