GNOME Bugzilla – Bug 685102
Scheduled Transactions don't always respect weekends
Last modified: 2018-06-29 23:11:03 UTC
I just installed 2.4.10 on this laptop running Ubuntu 12.04, and created a scheduled transaction to be created on the 29th of the month. (Today is Saturday September 29th.) I also specified that if the transaction falls on a weekend to create it on the previous weekday. Next I chose Actions --> Scheduled Transactions --> Since last run... and had it create the new transaction. Lo and behold, it created the transaction for TODAY. I expected the transaction to be created for yesterday.
After a discussion on the mailing list I updated the bug. I just tested it for NEXT weekend -- I created a transaction scheduled to be created on the 6th and on the previous weekday, and it created it for October 5th. As it turns out when I created the transaction for NEXT weekend, it seems to follow the rule. I would contend that the SX should ALWAYS follow the rules you set because you might be "catching up" after not running GnuCash for a few weeks and you would want the transactions created as they SHOULD have been. I will create a transaction for this weekend and test it next week to see what it does.
I just tested again trying to create two transactions on the 29th (tomorrow) saying in one scheduled transaction to create it the weekday before, and in the other on the weekday after, and in both cases it created the transaction for tomorrow (Sunday) rather than on Monday as expected.
I just tested yet again trying to create two transactions for Sunday, October 7th, asking it to create a transaction on the previous weekday and the next weekday, and in both cases it created the transactions on Sunday October 7th instead of on Friday October 5th and Monday October 8th as expected.
Confirmed and still the case in GnuCash 2.6.5.
*** Bug 740146 has been marked as a duplicate of this bug. ***
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
I came across this bug using GnuCash 2.6.19. I have a transaction scheduled for the 4th of every month which is to take place on the next weekday if the 4th falls on a weekend. The transaction was created automatically on program start up for 4th February (Sunday) rather than 5th February (Monday) as expected.
GnuCash bug tracking has moved to a new Bugzilla host. The new URL for this bug is https://bugs.gnucash.org/show_bug.cgi?id=685102. Please continue processing the bug there and please update any external references or bookmarks.