// 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';
}
}
});
}
| 03 Aug |
Bugfix for lead values not being calculated when the quote is updated | Bugfix |
| 03 Aug |
Bugfix for grids that support grouping, occasionally “going wacky” when adjusting column widths, and they were not displaying in grouped mode. | Bugfix |
| 03 Aug |
Ensuring that the quote report shows the customer for the parent lead |
Bugfix |
| 03 Aug |
Performance improvement for showing the Contact Person form, especially when lots of contacts are present in the system. | Enhancement |
| 03 Aug |
Adding ability to set the “From” email address for all email communications for the business. Unlike setting the “SERVER_EMAIL_ADDRESS”, this is intended for use with SMTP servers like Postmark, and will not set the Reply To address to the staff member who is sending the mail. | Enhancement |
| 03 Aug |
Bugfix for showing alerts in the jobs form | Bugfix |
| 03 Aug |
Bugfix for calculating the next lead operation displayed on the lead grid, where in certain circumstances an inactive lead operation type would be shown. | Bugfix |
| 10 Aug |
Added an Accessories table to JMSync to query accessories on the report. | Enhancement |
| 10 Aug |
Bugfix, where adding a full quote to an invoice the system would not respect the “Match quote template” tickbox. | Bugfix |
| 17 Aug |
Bugfix for printing from the Purchase order grid, where in very specific circumstances the print would show a blank screen. | Bugfix |
| 17 Aug |
Quote email attachment file name. This uses the config variable QUOTE_EMAIL_ATTACHMENT_FILENAME_TEMPLATE, and can have values like {$Customer.Name} Quote {$Quote.QuoteNumber} | Enhancement |
| 24 Aug |
Performance improvement for showing the “Email purchase order” form. | Enhancement |
| 24 Aug |
Bugfix when uploading accessories and specifically checking the quantity | Bugfix |
| 24 Aug |
Bugfix to ensure that the “Show specs for work orders” checkbox is hidden when showing the Job Specs within a lead. | Bugfix |
| 31 Aug |
Add a list of payments to the invoice PDF. | Enhancement |
