Bug #511606: Fix ipmt() and ppmt() functions in scheduled transactions.

Patch by Jean-Baptiste: " The instance counter is now incremented into increment_sx_state function."

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18571 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2010-01-15 20:38:33 +00:00
parent c259408efe
commit 53dd0f605a

View File

@ -881,7 +881,7 @@ increment_sx_state(GncSxInstance *inst, GDate **last_occur_date, int *instance_c
*last_occur_date = &inst->date;
}
*instance_count = gnc_sx_get_instance_count(inst->parent->sx, inst->temporal_state);
*instance_count = gnc_sx_get_instance_count(inst->parent->sx, inst->temporal_state) + 1;
if (*remain_occur_count > 0)
{