// 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';
}
}
});
}
| 06 Jul |
Bugfix for Target Calendar, where sometimes when moving between months, the “Show more…” link would be hidden. | Bugfix |
| 06 Jul |
Updating Phone interface to include leave in the “worked” totals. | Enhancement |
| 06 Jul |
Updates to Xero integration, to ensure that contact persons with trailing spaces in their name, or no last name, still get synchronised correctly between Jobman and Xero. |
Bugfix |
| 06 Jul |
Bugfix for the Purchase Orders list, where clicking the “Clear Filters” would sometimes not clear all the filters. | Bugfix |
| 06 Jul |
Bugfix for when a product type discount is applied to a contact, in quotes this works fine when you apply the styles prior to adding a section pre-set, however when you apply the section pre-set, then apply the styles the set product type discount % drops out. | Bugfix |
| 13 Jul |
Bugfix for the “Today” link not working when in day view on the target calendar. | Bugfix |
| 13 Jul |
Bugfix for the target calendar, to ensure that the correct number of events are shown, especially when in month view, and multiple line events are being shown. | Bugfix |
| 13 Jul |
Preventing quote preset items from being sorted the wrong way | Enhancement |
| 13 Jul |
Bugfix for calculating job task durations from accepted quotes, when certain spurious records were present in the database | Bugfix |
| 13 Jul |
Bugfix for purchase orders, where editing the dimensions when making a new purchase order, would not show those same dimensions on the purchase order printout. | Bugfix |
| 13 Jul |
Add an additional report filter for Contact Type to Open Jobs scheduling report (class: Job). | Enhancement |
| 13 Jul |
Allowing the TinyMCE editor to stretch to fill the width of the window, when editing a section in a quote preset. | Enhancement |
| 13 Jul |
Bugfix for Project Manager filter on the Financial Report | Bugfix |
| 13 Jul |
Allowing bills with the same invoice number to be created. This can happen when bills are sent from multiple suppliers. | Bugfix |
| 13 Jul |
Bugfix for jobs grid being able to sort by Customer Type | Bugfix |
| 20 Jul |
Performance improvement for the jobs report | Enhancement |
| 20 Jul |
Adding “Created” and “Modified” columns to the Availability Chart Items grid | Enhancement |
| 20 Jul |
Bugfix for products not handling the given markup percent properly, in very specific circumstances, when adding a quote preset to a quote. | Bugfix |
| 20 Jul |
When the config setting for the QUOTE_ITEM_PROFIT_PERCENTAGE is set with a value, e.g. 20%. For existing Section quote pre-sets added to a quote, it then turns the unit price for Labour into buy price and applies the Quote item default 20% mark up. | Bugfix |
| 20 Jul |
Add a config option to opt Y/N to show header of target calendar on pdf print out | Enhancement |
| 27 Jul |
Ensuring that if a line in a quote preset is of type “Labour”, and the price is set to $0.00, then when the preset is chosen in a quote, the current DEFAULT_CHARGEOUT_RATE will be used instead of $0.00. | Enhancement |
| 27 Jul |
Addition of “Last Updated By” column to the job alerts. | Enhancement |
| 27 Jul |
Bugfix for agenda screens, where sorting by value was sorted by the first numeral, instead of the total value. | Bugfix |
| 27 Jul |
Performance improvement for the Quote report | Enhancement |
| 27 Jul |
Update to the Alert form, so that the Details box is smaller. This allows the images to work better on Samsung Tablets. | Enhancement |
| 27 Jul |
Security improvements relating to cookie storage. | Enhancement |
| 27 Jul |
Bugfix for searching for alerts | Bugfix |
| 27 Jul |
Handle apostrophes in the Invoice Number, e.g. “Don’t pay this invoice, #12345” | Bugfix |
