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 644898 - Calendar of upcoming SXes has various display issues
Calendar of upcoming SXes has various display issues
Status: RESOLVED FIXED
Product: GnuCash
Classification: Other
Component: Scheduled Transactions
2.4.x
Other All
: Normal normal
: ---
Assigned To: gnucash-core-maint
gnucash-core-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-16 09:54 UTC by Maf. King
Modified: 2018-06-29 22:55 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Screenshot showing wrong DoW for a upcoming SX. (174.27 KB, image/png)
2011-03-16 09:54 UTC, Maf. King
Details

Description Maf. King 2011-03-16 09:54:36 UTC
Created attachment 183504 [details]
Screenshot showing wrong DoW for a upcoming SX.

as reported on the user mailing list, in the thread starting here:
http://lists.gnucash.org/pipermail/gnucash-user/2011-March/039098.html

The SX upcoming transactions calendar display has some problems with the start month and date of transaction.

Some users report no problems, others can't set the starting month to show the current month (when there are still SXes due to happen).

I see another problem, with a SX due every 4th tuesday showing up in the calendar as happening on a thursday.  Viewing the calender whilst editing that SX shows correctly, both with regard to start date and day of week.
PNG attached to illustrate this.

I see problems in 2.2.7, others report problems in versions 2.2.9 and 2.4.4

Sorry that this is a bit vague, more details are in the email thread linked above!
Comment 1 david 2011-03-16 10:15:06 UTC
This bug exists on versions of GnuCash running on Windows XP as well as Ubuntu Linux.
Comment 2 Fred Bone 2011-03-16 10:59:59 UTC
(In reply to comment #0)

On WinXPPro-SP3, using 2.4.4:

On first opening the SX Editor, the "Upcoming" calendar starts with Jan 2012. (Same was true in 2.4.0). This is the case for all choices of "View".

However it changes in response to editing a SX:

(A)
1. Open SX editor window. "Upcoming" starts Jan 2012.
2. Find a monthly SX whose last-occur date is in April 2011. Double-click 
to "Edit" it.
3. Go to its "Frequency" page. The calendar starts with May 2011.
4. Advance the start date by one week (in my case, from 2010-04-12 to 
2010-04-19). Calendar now starts with April 2011.
5. "OK" the dialog.
6. "Upcoming" list now starts with April 2011.
7. Close and reopen SX editor window. "Upcoming" list starts Jan 2012.

(B)
[As above, but with a SX that was for 12 monthly repeats and finished on 
2011-02-25.]
3. Change "Repeats" to "Forever" (so next-due is 2011-03-25).
4. Close the "Edit" dialog. "Upcoming" calendar now starts with March 
2011.
As before, close-and-reopen makes it revert to Jan 2012.

So apparently the starting month is set to include the next-due-date of the just-edited SX (which seems reasonable), but on first opening (when there is none), the starting month is taken from something arbitrary.

Note that
(a) most of my SXs are created 30 days in advance;
(b) I have nine SXs whose next-occur is in 2012, including one next due on 2012-11-24.

I can also partly confirm Maf.King's observation about wrong dates, though I cannot give a screenshot:
After making a null edit to a SX due every 8 weeks on a Wednesday, next due on 2011-05-18, hovering over the "Upcoming" list at that date produces a list which includes two SXs due on Mondays. Hovering over other Wednesday dates similarly shows the Monday SXs.
(I have only the three "n-weekly" SXs: one weekly on Monday, one 4-weekly on Monday, one 8-weekly on Wednesday).
Comment 3 Christian Stimming 2011-03-16 11:08:12 UTC
There have been issues in this calendar in all 2.2.x versions, but they were fixed on the way to 2.4.0. Because of that, please don't report bugs in any 2.2.x versions anymore because they are most likely already fixed.

The report of comment #2 is valid, though:
> So apparently the starting month is set to include the next-due-date of the
> just-edited SX (which seems reasonable), but on first opening (when there is
> none), the starting month is taken from something arbitrary.
Comment 4 Fred Bone 2011-03-16 14:28:56 UTC
Further re SXs showing on incorrect dates in "Upcoming":

As stated, I have one weekly/Monday SX. The initial "Upcoming" view (starting Jan 2012) first shows this on 2012-01-18, which is a Wednesday, and every Wednesday therafter. My 4wkly/Monday SX also first appears then (and every 4th Wednesday), though it should appear on 2012-01-23; as does my 8wkly/Wednesday SX (should appear on 2012-02-22).

I also have a monthly/15th SX, which shows up on:
2012-01-15
2012-02-14
2012-03-16
2012-04-15
2012-05-16
2012-06-16
2012-07-16
2012-08-16
2012-09-15
2012-10-16
2012-11-16
2012-12-15
I have six monthly/1st SXs, which all show on
2012-01-01
2012-02-01
2012-03-02
2012-04-02
2012-05-03
2012-06-02
2012-07-03
2012-08-02
2012-09-02
2012-10-03
2012-11-01
2012-12-02
OTOH, my 6monthly/1st SX shows correctly on 1st of Jan and July.
3-monthly SXs show in wrong months as well as on wrong days of the month. For example, a 3-monthly/6th which should appear in Mar/Jun/Sep/Dec shows on
2012-01-06
2012-04-07
2012-07-07
2012-10-07
and my 3-monthly/5th SXs shows on
2012-01-05
2012-04-06
2012-07-07
2012-10-06
(these months are correct, but that may be by chance).
If I close and reopen GnuCash, the dates stay the same, so it seems to be deterministic.
Comment 5 Volker Englisch 2011-03-17 02:43:32 UTC
I've never noticed it before but my Upcoming calendar shows incorrect entries as well.
For instance, I have an annual SX for Feb-3 but it is listed on the calendar for Mar-3.
However, in the list of transactions the Last Occur/Next Occur dates are displayed correctly.

Another SX scheduled for every first of a quarter is listed in the Upcoming calendar on March 1st with the next occurrence on May 31st.

Ubuntu 10.10, GC 2.4.3 from SVN (r20379)
Comment 6 Geert Janssens 2016-08-24 19:15:56 UTC
I have just pushed a patch to the stable branch that may fix the wrong dates in the calendar. This will first appear in the upcoming 2.6.14 release.

Please report back if you still experience the issue of wrong occurrence dates. Thank you.
Comment 7 Geert Janssens 2017-09-16 14:35:40 UTC
I take the silence as no more issues were seen after using my patch :)

If not feel free to reopen and add more details.
Thanks for the report!
Comment 8 John Ralls 2017-09-24 22:48:22 UTC
Reassign version to 2.4.x so that individual 2.4 versions can be retired.
Comment 9 John Ralls 2018-06-29 22:55:04 UTC
GnuCash bug tracking has moved to a new Bugzilla host. This bug has been copied to https://bugs.gnucash.org/show_bug.cgi?id=644898. Please update any external references or bookmarks.