percent discount will overrule amount discount because percent 0 was manually entered before
Sometimes it happens with my colleagues that they play around with a quotation and then enter a percent discount and later go and set the percent discount to 0 again and enter an amount.
I noticed that always when they entered something before and then set the percent to 0, the amount would be ignored and still the percent discount would become active.
A simple check solved the whole problem for us. In the file include/utils/EditViewUtils.php on line 367 I added to the id condition: {code} if(!empty(focus->column_fields['hdnDiscountPercent']) && floatval(focus->column_fields['hdnDiscountPercent']) != 0) {/code}
I'll post a pull request shortly