mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
misc stuff
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@792 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
1671e86c72
commit
8e195768a5
@ -760,6 +760,12 @@ xaccAccountGetBalance (Account *acc)
|
||||
return (acc->balance);
|
||||
}
|
||||
|
||||
double
|
||||
xaccAccountGetClearedBalance (Account *acc)
|
||||
{
|
||||
return (acc->cleared_balance);
|
||||
}
|
||||
|
||||
double
|
||||
xaccAccountGetReconciledBalance (Account *acc)
|
||||
{
|
||||
|
@ -110,6 +110,7 @@ AccountGroup * xaccAccountGetChildren (Account *);
|
||||
AccountGroup * xaccAccountGetParent (Account *);
|
||||
|
||||
double xaccAccountGetBalance (Account *);
|
||||
double xaccAccountGetClearedBalance (Account *);
|
||||
double xaccAccountGetReconciledBalance (Account *);
|
||||
Split * xaccAccountGetSplit (Account *acc, int i);
|
||||
Split ** xaccAccountGetSplitList (Account *acc);
|
||||
|
@ -328,7 +328,7 @@ readGroup (int fd, Account *aparent, int token)
|
||||
\********************************************************************/
|
||||
static Account *
|
||||
readAccount( int fd, AccountGroup *grp, int token )
|
||||
{
|
||||
{
|
||||
int err=0;
|
||||
int i;
|
||||
int numTrans, accID;
|
||||
@ -401,6 +401,7 @@ readAccount( int fd, AccountGroup *grp, int token )
|
||||
}
|
||||
|
||||
xaccAccountRecomputeBalance (acc);
|
||||
|
||||
return acc;
|
||||
}
|
||||
|
||||
@ -719,7 +720,7 @@ readTransaction( int fd, Account *acc, int token )
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return trans;
|
||||
}
|
||||
|
||||
|
@ -106,6 +106,7 @@ xaccFreeSplit( Split *split )
|
||||
split->damount = 0.0;
|
||||
split->share_price = 1.0;
|
||||
split->parent = NULL;
|
||||
split->acc = NULL;
|
||||
|
||||
_free(split);
|
||||
}
|
||||
@ -149,6 +150,8 @@ xaccSplitDestroy (Split *split)
|
||||
numsplits = 0;
|
||||
s = trans->splits[0];
|
||||
while (s) {
|
||||
/* xxxxxxx */
|
||||
printf ("trans %p, %d %p\n", trans, numsplits, s);
|
||||
MARK_SPLIT(s);
|
||||
if (s == split) ismember = 1;
|
||||
numsplits ++;
|
||||
|
Loading…
Reference in New Issue
Block a user