GNOME Bugzilla – Bug 729157
Bill Term discount days are allowed to be more than due days
Last modified: 2018-06-29 23:30:30 UTC
Although a function was in place to check for that, there was no relevant code. I added the code so that discount days are no more than due days (for days) or discount days are no later than due date (for proximo).
Created attachment 275393 [details] [review] fix for function verify_term_ok
Comment on attachment 275393 [details] [review] fix for function verify_term_ok Thank you for your patch. I have committed it to the maintenance branch and merged into master. The only thing I changed in a follow-up commit was to define the error message only once. That avoids potential future translation issues if someone would alter only one of the two strings. If it was your intention to display a different message for proximo and days type discounts we can revert my change and change the strings accordingly of course.
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=729157. Please update any external references or bookmarks.