mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
1f99b59230
commit
2f7d6a2638
@ -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)
|
||||
{
|
||||
|
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user