Highlighting Transaction line fields based on the various conditions

To setup highlighting for certain line fields, use JQuery to change the background colour.

For example,

            if (quantity > 10) {
                document.querySelector(`[data-label='Quantity']`).style.backgroundColor = "yellow";
            } else {
                document.querySelector(`[data-label='Quantity']`).style.backgroundColor = "white";
            }

Leave a comment

Your email address will not be published. Required fields are marked *