mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Switch core SX instance generation from FreqSpec to Recurrence.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@15605 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
493504179c
commit
348e8a85a3
@ -502,7 +502,7 @@ xaccSchedXactionGetNextInstance( SchedXaction *sx, void *stateData )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
xaccFreqSpecGetNextInstance( sx->freq, &last_occur, &next_occur );
|
recurrenceListNextInstance(sx->schedule, &last_occur, &next_occur);
|
||||||
|
|
||||||
/* out-of-bounds check */
|
/* out-of-bounds check */
|
||||||
if ( xaccSchedXactionHasEndDate( sx ) ) {
|
if ( xaccSchedXactionHasEndDate( sx ) ) {
|
||||||
@ -551,7 +551,7 @@ xaccSchedXactionGetInstanceAfter( SchedXaction *sx,
|
|||||||
g_date_subtract_days( &prev_occur, 1 );
|
g_date_subtract_days( &prev_occur, 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
xaccFreqSpecGetNextInstance( sx->freq, &prev_occur, &next_occur );
|
recurrenceListNextInstance(sx->schedule, &prev_occur, &next_occur);
|
||||||
|
|
||||||
if ( xaccSchedXactionHasEndDate( sx ) ) {
|
if ( xaccSchedXactionHasEndDate( sx ) ) {
|
||||||
GDate *end_date;
|
GDate *end_date;
|
||||||
|
Loading…
Reference in New Issue
Block a user