mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
more documentation cleanup
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@6038 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
085a778161
commit
f63b341c66
@ -1,7 +1,7 @@
|
|||||||
/********************************************************************\
|
/********************************************************************\
|
||||||
* AccountP.h -- Account engine-private data structure *
|
* AccountP.h -- Account engine-private data structure *
|
||||||
* Copyright (C) 1997 Robin D. Clark *
|
* Copyright (C) 1997 Robin D. Clark *
|
||||||
* Copyright (C) 1997-2000, Linas Vepstas <linas@linas.org> *
|
* Copyright (C) 1997-2001, Linas Vepstas <linas@linas.org> *
|
||||||
* *
|
* *
|
||||||
* This program is free software; you can redistribute it and/or *
|
* This program is free software; you can redistribute it and/or *
|
||||||
* modify it under the terms of the GNU General Public License as *
|
* modify it under the terms of the GNU General Public License as *
|
||||||
@ -101,20 +101,10 @@ struct account_s
|
|||||||
*/
|
*/
|
||||||
GNCAccountType type;
|
GNCAccountType type;
|
||||||
|
|
||||||
/* Old semantics: The currency field denotes the default currency in
|
/*
|
||||||
* which all splits in this account are denominated. Currency
|
* The commodity field denotes the kind of 'stuff' stored
|
||||||
* trading accounts allow splits between accounts when the currency
|
* in this account. The 'amount' field of a split indicates
|
||||||
* string matches the security string.
|
* how much of the 'stuff' there is.
|
||||||
*
|
|
||||||
* The gnc_commodity type represents the namespace, full name, and
|
|
||||||
* symbol for the currency.
|
|
||||||
*
|
|
||||||
* New semantics: The account structure will no longer store a
|
|
||||||
* 'currency' and a 'security'. Instead it will store only one
|
|
||||||
* commodity (i.e. currency), that is the one formerly known as
|
|
||||||
* 'security'. The 'amount' of each split represents the
|
|
||||||
* transferred amount in the account's commodity (formerly known as
|
|
||||||
* security).
|
|
||||||
*/
|
*/
|
||||||
gnc_commodity * commodity;
|
gnc_commodity * commodity;
|
||||||
int commodity_scu;
|
int commodity_scu;
|
||||||
@ -160,7 +150,8 @@ struct account_s
|
|||||||
|
|
||||||
|
|
||||||
/* The xaccAccountLookupEntityTable() routine is like xaccAccountLookup
|
/* The xaccAccountLookupEntityTable() routine is like xaccAccountLookup
|
||||||
* but accepts and entity table instead of a book. */
|
* but accepts and entity table instead of a book.
|
||||||
|
*/
|
||||||
Account * xaccAccountLookupEntityTable (const GUID *guid,
|
Account * xaccAccountLookupEntityTable (const GUID *guid,
|
||||||
GNCEntityTable *entity_table);
|
GNCEntityTable *entity_table);
|
||||||
|
|
||||||
@ -173,13 +164,15 @@ Account * xaccAccountLookupEntityTable (const GUID *guid,
|
|||||||
*/
|
*/
|
||||||
void xaccAccountRemoveSplit (Account *, Split *);
|
void xaccAccountRemoveSplit (Account *, Split *);
|
||||||
|
|
||||||
/* xaccAccountSortSplits() will resort the account's splits
|
/* The xaccAccountSortSplits() routine will resort the account's
|
||||||
* if the sort is dirty. If 'force' is true, the account is
|
* splits if the sort is dirty. If 'force' is true, the account
|
||||||
* sorted even if the editlevel is not zero. */
|
* is sorted even if the editlevel is not zero.
|
||||||
|
*/
|
||||||
void xaccAccountSortSplits (Account *acc, gboolean force);
|
void xaccAccountSortSplits (Account *acc, gboolean force);
|
||||||
|
|
||||||
/* the following recompute the partial balances (stored with the
|
/* The following recompute the partial balances (stored with the
|
||||||
* transaction) and the total balance, for this account */
|
* transaction) and the total balance, for this account
|
||||||
|
*/
|
||||||
void xaccAccountRecomputeBalance (Account *);
|
void xaccAccountRecomputeBalance (Account *);
|
||||||
|
|
||||||
/* Set the account's GUID. This should only be done when reading
|
/* Set the account's GUID. This should only be done when reading
|
||||||
@ -195,10 +188,6 @@ void xaccAccountSetGUID (Account *account, const GUID *guid);
|
|||||||
* certain date, and the 'starting balance' will represent the summation
|
* certain date, and the 'starting balance' will represent the summation
|
||||||
* of the splits up to that date.
|
* of the splits up to that date.
|
||||||
*
|
*
|
||||||
* Design Note: this routine assumes that there is only one commodity
|
|
||||||
* associated with this account, and that the reporting currency will
|
|
||||||
* no longer be stored with the account.
|
|
||||||
*
|
|
||||||
* This routine is in the private .h file because only backends are
|
* This routine is in the private .h file because only backends are
|
||||||
* allowed to set the starting balance. This is *not* a user interface
|
* allowed to set the starting balance. This is *not* a user interface
|
||||||
* function.
|
* function.
|
||||||
|
Loading…
Reference in New Issue
Block a user