add a trival utility routine

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@700 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-03-23 06:53:13 +00:00
parent 1f99b59230
commit 2f7d6a2638
2 changed files with 10 additions and 2 deletions

View File

@ -271,10 +271,14 @@ xaccFreeTransaction( Transaction *trans )
}
/********************************************************************\
* Walk the debit-splits array, and compute the new
* credit amounts based on that.
\********************************************************************/
void
xaccTransRebalance (Transaction * trans)
{
xaccSplitRebalance (&(trans->source_split));
}
void
xaccSplitRebalance (Split *split)
{

View File

@ -107,9 +107,13 @@ void xaccTransRemoveSplit (Transaction *, Split *);
* and credited to the same account as the source split.
* Hopefully, the user will notice this, and reparent the
* destination split properly.
*
* The xaccTransRebalance() routine merely calls xaccSplitRebalance()
* on the source split.
*/
void xaccSplitRebalance (Split *);
void xaccTransRebalance (Transaction *);
/* ------------- gets --------------- */
/* return pointer to the source split */