mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Follow up on bug #650598 - Cannot Enter Nth Day of Month Scheduled
Transactions git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20742 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
f311fe5fd2
commit
7d9110937c
@ -273,7 +273,8 @@ recurrenceNextInstance(const Recurrence *r, const GDate *ref, GDate *next)
|
|||||||
else if ( g_date_is_last_of_month(next) ||
|
else if ( g_date_is_last_of_month(next) ||
|
||||||
((pt == PERIOD_MONTH || pt == PERIOD_YEAR) &&
|
((pt == PERIOD_MONTH || pt == PERIOD_YEAR) &&
|
||||||
g_date_get_day(next) >= g_date_get_day(start)) ||
|
g_date_get_day(next) >= g_date_get_day(start)) ||
|
||||||
((pt == PERIOD_NTH_WEEKDAY || pt == PERIOD_LAST_WEEKDAY)) )
|
((pt == PERIOD_NTH_WEEKDAY || pt == PERIOD_LAST_WEEKDAY) &&
|
||||||
|
nth_weekday_compare(start, next, pt) <= 0) )
|
||||||
g_date_add_months(next, mult);
|
g_date_add_months(next, mult);
|
||||||
else
|
else
|
||||||
/* one fewer month fwd because of the occurrence in this month */
|
/* one fewer month fwd because of the occurrence in this month */
|
||||||
|
Loading…
Reference in New Issue
Block a user