GNOME Bugzilla – Bug 671323
Scheduled monthly transactions lose "except on weekends" setting when using MySQL
Last modified: 2018-06-29 23:07:06 UTC
When the data file is stored in a MySQL database instead of the default GnuCash file the "except on weekends" option setting for a monthly transaction is not retained when GnuCash is stopped and restarted. In other words, it appears that the option requesting previous weekday or next weekday is not written to the MySQL database or is not read back in when the database is opened. In testing this problem I totally uninstalled GnuCash (2.4.10-1) and reinstalled (2.4.10-1) on my Windows 7 32-bit system. There was no change in behavior.
Confirmed. This also happens with the other SQL backends and on linux. I am reassigning this to the SQL backend component as this seems to be a backend problem, not a problem with scheduled transactions themselves.
Oh, and I forgot to mention this also happens in trunk, not only in 2.4.x.
I have just committed a fix in trunk. The parameter was effectively ignored by the sql backend. The fix updated the sql table format. So once you use the fixed gnucash version with your data, an older version of gnucash will probably refuse to load it (or read-only at best). I'm not sure if I am allowed to backport this fix to the stable branch of gnucash, due to this compatibility issue. I have asked on the mailing list and will go by the feedback there.
And backported to 2.4 in r22232. After a test, it turns out that 2.4.10 will load an updated data file just fine, but won't let you change the weekly_adjust parameter or create new scheduled transactions. For the rest it will continue to work as before.
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=671323. Please update any external references or bookmarks.