After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 685102 - Scheduled Transactions don't always respect weekends
Scheduled Transactions don't always respect weekends
Status: RESOLVED OBSOLETE
Product: GnuCash
Classification: Other
Component: Scheduled Transactions
2.4.x
Other Linux
: Normal normal
: ---
Assigned To: Christian Stimming
gnucash-core-maint
: 740146 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-09-29 17:01 UTC by Tommy Trussell
Modified: 2018-06-29 23:11 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Tommy Trussell 2012-09-29 17:01:47 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.
Comment 1 Tommy Trussell 2012-09-29 18:46:39 UTC
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.
Comment 2 Tommy Trussell 2012-09-29 18:56:13 UTC
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.
Comment 3 Tommy Trussell 2012-09-29 19:53:09 UTC
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.
Comment 4 Geert Janssens 2015-02-07 15:45:41 UTC
Confirmed and still the case in GnuCash 2.6.5.
Comment 5 Geert Janssens 2015-02-11 10:23:53 UTC
*** Bug 740146 has been marked as a duplicate of this bug. ***
Comment 6 John Ralls 2017-09-24 22:18:18 UTC
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
Comment 7 Paul White 2018-02-01 14:42:28 UTC
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.
Comment 8 John Ralls 2018-06-29 23:11:03 UTC
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.