GnuCash  4.12-400-gc78bb3c22c
Account.h
Go to the documentation of this file.
1 /********************************************************************\
2  * This program is free software; you can redistribute it and/or *
3  * modify it under the terms of the GNU General Public License as *
4  * published by the Free Software Foundation; either version 2 of *
5  * the License, or (at your option) any later version. *
6  * *
7  * This program is distributed in the hope that it will be useful, *
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
10  * GNU General Public License for more details. *
11  * *
12  * You should have received a copy of the GNU General Public License*
13  * along with this program; if not, contact: *
14  * *
15  * Free Software Foundation Voice: +1-617-542-5942 *
16  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
17  * Boston, MA 02110-1301, USA gnu@gnu.org *
18  * *
19 \********************************************************************/
45 #ifndef XACC_ACCOUNT_H
46 #define XACC_ACCOUNT_H
47 #include "qof.h"
48 #include "gnc-engine.h"
49 #include "policy.h"
50 
51 #ifdef __cplusplus
52 extern "C" {
53 #endif
54 typedef gnc_numeric (*xaccGetBalanceFn)( const Account *account );
55 
56 typedef gnc_numeric (*xaccGetBalanceInCurrencyFn) (
57  const Account *account, const gnc_commodity *report_commodity,
58  gboolean include_children);
59 
60 typedef gnc_numeric (*xaccGetBalanceAsOfDateFn) (
61  Account *account, time64 date);
62 
63 typedef void (*AccountCb)(Account *a, gpointer data);
64 typedef gpointer (*AccountCb2)(Account *a, gpointer data);
65 
66 typedef struct
67 {
68  QofInstanceClass parent_class;
69 } AccountClass;
70 
71 typedef struct
72 {
73  Account *acc;
74  QofBook *book;
76 
77 /* --- type macros --- */
78 #define GNC_TYPE_ACCOUNT (gnc_account_get_type ())
79 #define GNC_ACCOUNT(o) \
80  (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_ACCOUNT, Account))
81 #define GNC_ACCOUNT_CLASS(k) \
82  (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_ACCOUNT, AccountClass))
83 #define GNC_IS_ACCOUNT(o) \
84  (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_ACCOUNT))
85 #define GNC_IS_ACCOUNT_CLASS(k) \
86  (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_ACCOUNT))
87 #define GNC_ACCOUNT_GET_CLASS(o) \
88  (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_ACCOUNT, AccountClass))
89 
93 GType gnc_account_get_type(void);
94 
104 #ifdef __cplusplus
105 enum GNCAccountType
106 #else
107 typedef enum
108 #endif
109 {
170  /* bank account types */
179  ACCT_TYPE_LAST
180 #ifdef __cplusplus
181 };
182 #else
184 #endif
185 
186 
191  Account * xaccMallocAccount (QofBook *book);
192 
194  Account * gnc_account_create_root (QofBook *book);
195 
204  Account * xaccCloneAccount (const Account *source, QofBook *book);
205 
208  void xaccAccountBeginEdit (Account *account);
209 
212  void xaccAccountCommitEdit (Account *account);
213 
217  void xaccAccountDestroy (Account *account);
218 
220  gboolean xaccAccountEqual(const Account *a, const Account* b,
221  gboolean check_guids);
222 
232  int xaccAccountOrder (const Account *account_1, const Account *account_2);
233 
236  /* ------------------ */
237 
245  const gchar *gnc_get_account_separator_string (void);
246  gunichar gnc_get_account_separator (void);
247  void gnc_set_account_separator (const gchar *separator);
248 
249  /*@ dependent @*/
250  Account *gnc_book_get_root_account(QofBook *book);
251  void gnc_book_set_root_account(QofBook *book, Account *root);
252 
254 #define xaccAccountGetGUID(X) qof_entity_get_guid(QOF_INSTANCE(X))
255 #define xaccAccountReturnGUID(X) (X ? *(qof_entity_get_guid(QOF_INSTANCE(X))) : *(guid_null()))
256 
260  /*@ dependent @*/ Account * xaccAccountLookup (const GncGUID *guid, QofBook *book);
261 #define xaccAccountLookupDirect(g,b) xaccAccountLookup(&(g),b)
262 
265  /* Tests account and descendants -- if all have no splits then return TRUE.
266  * Otherwise if any account or its descendants have split return FALSE.
267  */
268 
269  gboolean gnc_account_and_descendants_empty (Account *acc);
270 
283  gchar *gnc_account_name_violations_errmsg (const gchar *separator, GList* invalid_account_names);
284 
295  GList *gnc_account_list_name_violations (QofBook *book, const gchar *separator);
296 
297  /* ------------------ */
298 
302  QofBook *gnc_account_get_book(const Account *account);
304  void xaccAccountSetType (Account *account, GNCAccountType);
306  void xaccAccountSetName (Account *account, const char *name);
308  void xaccAccountSetCode (Account *account, const char *code);
310  void xaccAccountSetDescription (Account *account, const char *desc);
312  void xaccAccountSetColor (Account *account, const char *color);
314  void xaccAccountSetFilter (Account *account, const char *filter);
316  void xaccAccountSetSortOrder (Account *account, const char *sortorder);
318  void xaccAccountSetSortReversed (Account *account, gboolean sortreversed);
320  void xaccAccountSetNotes (Account *account, const char *notes);
322  void xaccAccountSetLastNum (Account *account, const char *num);
324  void gnc_account_set_policy (Account *account, GNCPolicy *policy);
329  GNCAccountType xaccAccountGetType (const Account *account);
332  gboolean xaccAccountIsPriced(const Account *acc);
333 
342  const gnc_numeric start_baln);
343 
352  const gnc_numeric start_baln);
353 
362  const gnc_numeric start_baln);
363 
369 
375 
385  void gnc_account_set_defer_bal_computation (Account *acc, gboolean defer);
386 
396  gboolean gnc_account_insert_split (Account *acc, Split *s);
397 
407  gboolean gnc_account_remove_split (Account *acc, Split *s);
408 
410  const char * xaccAccountGetName (const Account *account);
412  const char * xaccAccountGetCode (const Account *account);
414  const char * xaccAccountGetDescription (const Account *account);
416  const char * xaccAccountGetColor (const Account *account);
418  const char * xaccAccountGetFilter (const Account *account);
420  const char * xaccAccountGetSortOrder (const Account *account);
422  gboolean xaccAccountGetSortReversed (const Account *account);
424  const char * xaccAccountGetNotes (const Account *account);
426  const char * xaccAccountGetLastNum (const Account *account);
428  GNCPolicy *gnc_account_get_policy (Account *account);
431 
436 
441  void xaccAccountSortSplits (Account *acc, gboolean force);
442 
456  gchar * gnc_account_get_full_name (const Account *account);
457 
468  Account * xaccAccountGainsAccount (Account *acc, gnc_commodity *curr);
475  void dxaccAccountSetPriceSrc (Account *account, const char *src);
482  const char * dxaccAccountGetPriceSrc (const Account *account);
517  void xaccAccountSetCommodity (Account *account, gnc_commodity *comm);
518 
520  /*@ dependent @*/
521  gnc_commodity * xaccAccountGetCommodity (const Account *account);
522 
529  gnc_commodity * gnc_account_get_currency_or_parent(const Account* account);
530 
535  int xaccAccountGetCommoditySCU (const Account *account);
536 
539  int xaccAccountGetCommoditySCUi (const Account *account);
540 
545  void xaccAccountSetCommoditySCU (Account *account, int frac);
546 
548  void xaccAccountSetNonStdSCU (Account *account, gboolean flag);
549 
552  gboolean xaccAccountGetNonStdSCU (const Account *account);
561  gnc_numeric xaccAccountGetBalance (const Account *account);
564  gnc_numeric xaccAccountGetClearedBalance (const Account *account);
567  gnc_numeric xaccAccountGetReconciledBalance (const Account *account);
568  gnc_numeric xaccAccountGetPresentBalance (const Account *account);
569  gnc_numeric xaccAccountGetProjectedMinimumBalance (const Account *account);
571  gnc_numeric xaccAccountGetBalanceAsOfDate (Account *account,
572  time64 date);
573 
575  gnc_numeric xaccAccountGetReconciledBalanceAsOfDate (Account *account, time64 date);
576 
577  /* These two functions convert a given balance from one commodity to
578  another. The account argument is only used to get the Book, and
579  may have nothing to do with the supplied balance. Likewise, the
580  date argument is only used for commodity conversion and may have
581  nothing to do with supplied balance.
582 
583  Since they really have nothing to do with Accounts, there's
584  probably some better place for them, but where? gnc-commodity.h?
585  */
586  gnc_numeric xaccAccountConvertBalanceToCurrency(
587  const Account *account, /* for book */
588  gnc_numeric balance,
589  const gnc_commodity *balance_currency,
590  const gnc_commodity *new_currency);
591  gnc_numeric xaccAccountConvertBalanceToCurrencyAsOfDate(
592  const Account *account, /* for book */
593  gnc_numeric balance, const gnc_commodity *balance_currency,
594  const gnc_commodity *new_currency, time64 date);
595 
596  /* These functions get some type of balance in the desired commodity.
597  'report_commodity' may be NULL to use the account's commodity. */
598  gnc_numeric xaccAccountGetBalanceInCurrency (
599  const Account *account, const gnc_commodity *report_commodity,
600  gboolean include_children);
601  gnc_numeric xaccAccountGetClearedBalanceInCurrency (
602  const Account *account, const gnc_commodity *report_commodity,
603  gboolean include_children);
604  gnc_numeric xaccAccountGetReconciledBalanceInCurrency (
605  const Account *account, const gnc_commodity *report_commodity,
606  gboolean include_children);
607  gnc_numeric xaccAccountGetPresentBalanceInCurrency (
608  const Account *account, const gnc_commodity *report_commodity,
609  gboolean include_children);
610  gnc_numeric xaccAccountGetProjectedMinimumBalanceInCurrency (
611  const Account *account, const gnc_commodity *report_commodity,
612  gboolean include_children);
613 
617  Account *acc, time64 date, gnc_commodity *report_commodity,
618  gboolean include_children);
622  Account *account, time64 date, gnc_commodity *report_commodity,
623  gboolean include_children);
624 
625  gnc_numeric xaccAccountGetNoclosingBalanceChangeForPeriod (
626  Account *acc, time64 date1, time64 date2, gboolean recurse);
627  gnc_numeric xaccAccountGetBalanceChangeForPeriod (
628  Account *acc, time64 date1, time64 date2, gboolean recurse);
629 
660  void gnc_account_append_child (Account *new_parent, Account *child);
661 
672  void gnc_account_remove_child (Account *parent, Account *child);
673 
682  /*@ dependent @*/
683  Account * gnc_account_get_parent (const Account *account);
684 
694  Account * gnc_account_get_root (Account *account);
695 
702  gboolean gnc_account_is_root (const Account *account);
703 
718  GList *gnc_account_get_children (const Account *account);
719 
723  GList *gnc_account_get_children_sorted (const Account *account);
724 
731  gint gnc_account_n_children (const Account *account);
732 
744  gint gnc_account_child_index (const Account *parent, const Account *child);
745 
756  Account *gnc_account_nth_child (const Account *parent, gint num);
757 
773  GList * gnc_account_get_descendants (const Account *account);
774 
793  GList *gnc_account_get_descendants_sorted (const Account *account);
794 
801  gint gnc_account_n_descendants (const Account *account);
802 
809  gint gnc_account_get_current_depth (const Account *account);
810 
818  gint gnc_account_get_tree_depth (const Account *account);
819 
836  void gnc_account_foreach_child (const Account *account,
837  AccountCb func, /*@ null @*/ gpointer user_data);
838 
852  void gnc_account_foreach_descendant (const Account *account,
853  AccountCb func, /*@ null @*/ gpointer user_data);
854 
870  gpointer gnc_account_foreach_descendant_until (const Account *account,
871  AccountCb2 func, /*@ null @*/ gpointer user_data);
872 
873 
886  void gnc_account_join_children (Account *to_parent, Account *from_parent);
887 
893  void gnc_account_merge_children (Account *parent);
894 
898  void xaccAccountSetReconcileChildrenStatus(Account *account, gboolean status);
899 
901  gboolean xaccAccountGetReconcileChildrenStatus(const Account *account);
902 
908  gboolean xaccAccountHasAncestor(const Account *acc, const Account *ancestor);
909 
924  Account *gnc_account_lookup_by_name (const Account *parent, const char *name);
925 
930  Account *gnc_account_lookup_by_full_name (const Account *any_account,
931  const gchar *name);
932 
937  const char *code);
938 
945  Account *gnc_account_lookup_by_opening_balance (Account *account, gnc_commodity *commodity);
946 
962  const char* name,
963  GNCAccountType acctype,
964  gnc_commodity* commodity);
967  /* ------------------ */
968 
977  const char * xaccAccountTypeEnumAsString (GNCAccountType type);
983  gboolean xaccAccountStringToType (const char* str, GNCAccountType *type);
989  GNCAccountType xaccAccountStringToEnum (const char* str);
990 
994  const char * xaccAccountGetTypeStr (GNCAccountType type);
995 
1000 
1003 
1006  gboolean xaccAccountTypesCompatible (GNCAccountType parent_type,
1007  GNCAccountType child_type);
1008 
1011  guint32 xaccAccountTypesValid(void);
1012 
1017 
1021 
1022 
1027 
1031 
1032 
1035  /* ------------------ */
1036 
1044 #define xaccAccountInsertSplit(acc, s) xaccSplitSetAccount((s), (acc))
1045 
1057  SplitList* xaccAccountGetSplitList (const Account *account);
1058 
1061  void xaccAccountMoveAllSplits (Account *accfrom, Account *accto);
1062 
1091  gint xaccAccountForEachTransaction(const Account *account,
1092  TransactionCallback proc,
1093  void *data);
1094 
1096  Transaction * xaccAccountFindTransByDesc(const Account *account,
1097  const char *description);
1098 
1100  Split * xaccAccountFindSplitByDesc(const Account *account,
1101  const char *description);
1102 
1105  /* ------------------ */
1106 
1115  void xaccAccountInsertLot (Account *, GNCLot *);
1116  void xaccAccountRemoveLot (Account *, GNCLot *);
1117 
1126  LotList* xaccAccountGetLotList (const Account *account);
1127 
1134  gpointer xaccAccountForEachLot(
1135  const Account *acc,
1136  gpointer (*proc)(GNCLot *lot, gpointer user_data), /*@ null @*/ gpointer user_data);
1137 
1138 
1144  LotList * xaccAccountFindOpenLots (const Account *acc,
1145  gboolean (*match_func)(GNCLot *lot,
1146  gpointer user_data),
1147  /*@ null @*/ gpointer user_data, GCompareFunc sort_func);
1148 
1150  /* ------------------ */
1151 
1156  gboolean xaccAccountGetReconcileLastDate (const Account *account,
1157  time64 *last_date);
1159  void xaccAccountSetReconcileLastDate (Account *account, time64 last_date);
1160 
1162  gboolean xaccAccountGetReconcileLastInterval (const Account *account,
1163  int *months, int *days);
1166  int months, int days);
1168  gboolean xaccAccountGetReconcilePostponeDate (const Account *account,
1169  time64 *postpone_date);
1172  time64 postpone_date);
1173 
1175  gboolean xaccAccountGetReconcilePostponeBalance (const Account *account,
1176  gnc_numeric *balance);
1179  gnc_numeric balance);
1180 
1187  typedef enum
1188  {
1189  PLACEHOLDER_NONE,
1190  PLACEHOLDER_THIS,
1191  PLACEHOLDER_CHILD,
1193 
1204  gboolean xaccAccountGetPlaceholder (const Account *account);
1205 
1212  void xaccAccountSetPlaceholder (Account *account, gboolean val);
1213 
1226  gboolean xaccAccountGetAppendText (const Account *account);
1227 
1236  void xaccAccountSetAppendText (Account *account, gboolean val);
1237 
1244  gboolean xaccAccountGetIsOpeningBalance (const Account *account);
1245 
1252  void xaccAccountSetIsOpeningBalance (Account *account, gboolean val);
1253 
1273  gboolean xaccAccountGetHidden (const Account *acc);
1274 
1282  void xaccAccountSetHidden (Account *acc, gboolean val);
1283 
1293  gboolean xaccAccountIsHidden (const Account *acc);
1306  gboolean xaccAccountGetAutoInterest (const Account *acc);
1307 
1314  void xaccAccountSetAutoInterest (Account *acc, gboolean val);
1315 
1324  gboolean xaccAccountGetTaxRelated (const Account *account);
1326  void xaccAccountSetTaxRelated (Account *account, gboolean tax_related);
1328  const char * xaccAccountGetTaxUSCode (const Account *account);
1330  void xaccAccountSetTaxUSCode (Account *account, const char *code);
1332  const char * xaccAccountGetTaxUSPayerNameSource (const Account *account);
1334  void xaccAccountSetTaxUSPayerNameSource (Account *account, const char *source);
1336  gint64 xaccAccountGetTaxUSCopyNumber (const Account *account);
1338  void xaccAccountSetTaxUSCopyNumber (Account *account, gint64 copy_number);
1346  const char *gnc_account_get_debit_string (GNCAccountType acct_type);
1348  const char *gnc_account_get_credit_string (GNCAccountType acct_type);
1349 
1362  void xaccAccountSetMark (Account *account, short mark);
1363 
1369  void xaccClearMark (Account *account, short val);
1370 
1373  void xaccClearMarkDown (Account *account, short val);
1421 
1427 
1433 
1439  gboolean xaccTransactionTraverse(Transaction *trans, int stage);
1440 
1455  unsigned int stage,
1456  TransactionCallback thunk,
1457  void *data);
1458 
1473  unsigned int stage,
1474  TransactionCallback thunk,
1475  void *data);
1476 
1509  TransactionCallback proc, void *data);
1510 
1514 
1515  /* Look up an Account in the map non-Baysian
1516  */
1517  Account* gnc_account_imap_find_account (GncImportMatchMap *imap, const char* category,
1518  const char *key);
1519 
1520  /* Store an Account in the map non Baysian
1521  */
1522  void gnc_account_imap_add_account (GncImportMatchMap *imap, const char *category,
1523  const char *key, Account *acc);
1524 
1525  /* Remove a reference to an Account in the map non Baysian
1526  */
1527  void gnc_account_imap_delete_account (GncImportMatchMap *imap, const char *category,
1528  const char *key);
1529 
1533 
1536  void gnc_account_imap_add_account_bayes (GncImportMatchMap *imap, GList* tokens,
1537  Account *acc);
1538 
1539  typedef struct imap_info
1540  {
1541  Account *source_account;
1542  Account *map_account;
1543  GList *list;
1544  char *head;
1545  char *category;
1546  char *match_string;
1547  char *count;
1548  }GncImapInfo;
1549 
1554 
1558  GList *gnc_account_imap_get_info (Account *acc, const char *category);
1559 
1563  gchar *gnc_account_get_map_entry (Account *acc, const char *head, const char *category);
1564 
1568  void gnc_account_delete_map_entry (Account *acc, char *head, char *category,
1569  char *match_string, gboolean empty);
1570 
1574 
1579 
1592  void DxaccAccountSetCurrency (Account *account, gnc_commodity *currency);
1593 
1597  gnc_commodity * DxaccAccountGetCurrency (const Account *account);
1598 
1606  void dxaccAccountSetQuoteTZ (Account *account, const char *tz);
1614  const char * dxaccAccountGetQuoteTZ (const Account *account);
1617  GList * gnc_accounts_and_all_descendants (GList *accounts);
1618 
1622 #define ACCOUNT_KVP "kvp"
1623 #define ACCOUNT_NAME_ "name"
1624 #define ACCOUNT_CODE_ "code"
1625 #define ACCOUNT_DESCRIPTION_ "desc"
1626 #define ACCOUNT_COLOR_ "color"
1627 #define ACCOUNT_FILTER_ "filter"
1628 #define ACCOUNT_SORT_ORDER_ "sort-order"
1629 #define ACCOUNT_SORT_REVERSED_ "sort-reversed"
1630 #define ACCOUNT_NOTES_ "notes"
1631 #define ACCOUNT_BALANCE_ "balance"
1632 #define ACCOUNT_NOCLOSING_ "noclosing"
1633 #define ACCOUNT_OPENING_BALANCE_ "opening-balance"
1634 #define ACCOUNT_CLEARED_ "cleared"
1635 #define ACCOUNT_RECONCILED_ "reconciled"
1636 #define ACCOUNT_PRESENT_ "present"
1637 #define ACCOUNT_FUTURE_MINIMUM_ "future-minimum"
1638 #define ACCOUNT_TAX_RELATED "tax-related-p"
1639 #define ACCOUNT_TYPE_ "account-type"
1640 #define ACCOUNT_SCU "smallest-commodity-unit"
1641 #define ACCOUNT_NSCU "non-standard-scu"
1642 #define ACCOUNT_PARENT "parent-account"
1643 
1648 #define ACCOUNT_MATCH_ALL_TYPE "account-match-all"
1649 
1650 #ifdef __cplusplus
1651  } /* extern "C" */
1652 #endif
1653 
1654 #endif /* XACC_ACCOUNT_H */
1655 
void xaccAccountSetType(Account *account, GNCAccountType)
Set the account's type.
Definition: Account.cpp:2426
Account * gnc_account_get_parent(const Account *account)
This routine returns a pointer to the parent of the specified account.
Definition: Account.cpp:2899
void xaccAccountSetFilter(Account *account, const char *filter)
Set the account's Filter.
Definition: Account.cpp:2576
void xaccAccountSetSortOrder(Account *account, const char *sortorder)
Set the account's Sort Order.
Definition: Account.cpp:2586
gint xaccAccountForEachTransaction(const Account *account, TransactionCallback proc, void *data)
The xaccAccountForEachTransaction() routine will traverse all of the transactions in account and call...
Definition: Account.cpp:5437
int xaccAccountTreeForEachTransaction(Account *acc, TransactionCallback proc, void *data)
Traverse all of the transactions in the given account group.
int gnc_account_tree_staged_transaction_traversal(const Account *account, unsigned int stage, TransactionCallback thunk, void *data)
gnc_account_tree_staged_transaction_traversal() calls thunk on each transaction in the group whose cu...
Definition: Account.cpp:5380
gboolean xaccAccountGetAutoInterest(const Account *acc)
Get the "auto interest" flag for an account.
Definition: Account.cpp:4315
const char * xaccAccountGetLastNum(const Account *account)
Get the last num field of an Account.
Definition: Account.cpp:4912
GNCAccountType xaccAccountTypeGetFundamental(GNCAccountType t)
Convenience function to return the fundamental type asset/liability/income/expense/equity given an ac...
Definition: Account.cpp:4635
gchar * gnc_account_get_map_entry(Account *acc, const char *head, const char *category)
Returns the text string pointed to by head and category for the Account, free the returned text...
Definition: Account.cpp:6040
GList LotList
GList of GNCLots.
Definition: gnc-engine.h:209
gboolean xaccAccountGetSortReversed(const Account *account)
Get the account's Sort Order direction.
Definition: Account.cpp:3400
guint32 xaccAccountTypesCompatibleWith(GNCAccountType type)
Return the bitmask of account types compatible with a given type.
Definition: Account.cpp:4507
void gnc_account_append_child(Account *new_parent, Account *child)
This function will remove from the child account any pre-existing parent relationship, and will then add the account as a child of the new parent.
Definition: Account.cpp:2801
gpointer xaccAccountForEachLot(const Account *acc, gpointer(*proc)(GNCLot *lot, gpointer user_data), gpointer user_data)
The xaccAccountForEachLot() method will apply the function 'proc' to each lot in the account...
GList * gnc_account_get_descendants_sorted(const Account *account)
This function returns a GList containing all the descendants of the specified account, sorted at each level.
Definition: Account.cpp:3044
gint gnc_account_n_descendants(const Account *account)
Return the number of descendants of the specified account.
Definition: Account.cpp:2981
gint64 xaccAccountGetTaxUSCopyNumber(const Account *account)
DOCUMENT ME!
Definition: Account.cpp:4175
gboolean gnc_account_is_root(const Account *account)
This routine indicates whether the specified account is the root node of an account tree...
Definition: Account.cpp:2923
SplitList * xaccAccountGetSplitList(const Account *account)
The xaccAccountGetSplitList() routine returns a pointer to a GList of the splits in the account...
Definition: Account.cpp:4007
gboolean xaccAccountGetNonStdSCU(const Account *account)
Return boolean, indicating whether this account uses a non-standard SCU.
Definition: Account.cpp:2730
int xaccAccountGetCommoditySCUi(const Account *account)
Return the 'internal' SCU setting.
Definition: Account.cpp:2694
gnc_commodity * DxaccAccountGetCurrency(const Account *account)
Definition: Account.cpp:3426
void gnc_account_foreach_descendant(const Account *account, AccountCb func, gpointer user_data)
This method will traverse all children of this accounts and their descendants, calling 'func' on each...
Definition: Account.cpp:3245
void xaccAccountSetNotes(Account *account, const char *notes)
Set the account's notes.
Definition: Account.cpp:2622
gboolean xaccAccountIsPriced(const Account *acc)
Returns true if the account is a stock, mutual fund or currency, otherwise false. ...
Definition: Account.cpp:4691
void gnc_account_delete_map_entry(Account *acc, char *head, char *category, char *match_string, gboolean empty)
Delete the entry for Account pointed to by head,category and match_string, if empty is TRUE then use ...
Definition: Account.cpp:6050
Expense accounts are used to denote expenses.
Definition: Account.h:149
const char * xaccAccountGetFilter(const Account *account)
Get the account's filter.
Definition: Account.cpp:3380
GNCAccountType xaccAccountGetType(const Account *account)
Returns the account's account type.
Definition: Account.cpp:3279
void xaccAccountSetMark(Account *account, short mark)
Set a mark on the account.
Definition: Account.cpp:2062
int xaccAccountGetCommoditySCU(const Account *account)
Return the SCU for the account.
Definition: Account.cpp:2701
const char * xaccAccountGetCode(const Account *account)
Get the account's accounting code.
Definition: Account.cpp:3356
gboolean xaccAccountGetAppendText(const Account *account)
Get the "import-append-text" flag for an account.
Definition: Account.cpp:4253
void xaccAccountSetReconcileLastDate(Account *account, time64 last_date)
DOCUMENT ME!
Definition: Account.cpp:4731
Account * gnc_account_create_root(QofBook *book)
Create a new root level account.
Definition: Account.cpp:1242
void xaccAccountSetTaxRelated(Account *account, gboolean tax_related)
DOCUMENT ME!
Definition: Account.cpp:4131
Mutual Fund accounts will typically be shown in registers which show three columns: price...
Definition: Account.h:131
void xaccAccountSortSplits(Account *acc, gboolean force)
The xaccAccountSortSplits() routine will resort the account's splits if the sort is dirty...
Definition: Account.cpp:2004
void xaccAccountSetCode(Account *account, const char *code)
Set the account's accounting code.
Definition: Account.cpp:2467
gpointer gnc_account_foreach_descendant_until(const Account *account, AccountCb2 func, gpointer user_data)
This method will traverse all children of this accounts and their descendants, calling 'func' on each...
Definition: Account.cpp:3253
void gnc_account_set_policy(Account *account, GNCPolicy *policy)
Set the account's lot order policy.
Definition: Account.cpp:2111
void xaccAccountSetReconcileLastInterval(Account *account, int months, int days)
DOCUMENT ME!
Definition: Account.cpp:4783
gboolean gnc_account_remove_split(Account *acc, Split *s)
Remove the given split from an account.
Definition: Account.cpp:1979
gnc_numeric xaccAccountGetBalanceAsOfDateInCurrency(Account *account, time64 date, gnc_commodity *report_commodity, gboolean include_children)
This function gets the balance at the end of the given date in the desired commodity.
Definition: Account.cpp:3950
guint32 xaccAccountTypesValid(void)
Returns the bitmask of the account type enums that are valid.
Definition: Account.cpp:4612
const char * xaccAccountTypeEnumAsString(GNCAccountType type)
Conversion routines for the account types to/from strings that are used in persistent storage...
Definition: Account.cpp:4387
stop here; the following types just aren't ready for prime time
Definition: Account.h:167
GList * gnc_account_list_name_violations(QofBook *book, const gchar *separator)
Runs through all the accounts and returns a list of account names that contain the provided separator...
Definition: Account.cpp:269
void xaccAccountInsertLot(Account *, GNCLot *)
The xaccAccountInsertLot() method will register the indicated lot with this account.
Definition: Account.cpp:2143
void xaccAccountMoveAllSplits(Account *accfrom, Account *accto)
The xaccAccountMoveAllSplits() routine reassigns each of the splits in accfrom to accto...
Definition: Account.cpp:2203
void gnc_account_set_sort_dirty(Account *acc)
Tell the account believes that the splits may be incorrectly sorted and need to be resorted...
Definition: Account.cpp:1889
The cash account type is used to denote a shoe-box or pillowcase stuffed with * cash.
Definition: Account.h:116
const char * gnc_account_get_debit_string(GNCAccountType acct_type)
Get the debit string associated with this account type.
Definition: Account.cpp:4213
void xaccAccountSetLastNum(Account *account, const char *num)
Set the last num field of an Account.
Definition: Account.cpp:4924
gnc_numeric xaccAccountGetClearedBalance(const Account *account)
Get the current balance of the account, only including cleared transactions.
Definition: Account.cpp:3536
Account * gnc_account_imap_find_account_bayes(GncImportMatchMap *imap, GList *tokens)
Look up an Account in the map using Baysian.
Definition: Account.cpp:5826
gboolean xaccAccountGetReconcilePostponeDate(const Account *account, time64 *postpone_date)
DOCUMENT ME!
Definition: Account.cpp:4807
Account used to record multiple commodity transactions.
Definition: Account.h:161
void xaccAccountDestroy(Account *account)
The xaccAccountDestroy() routine can be used to get rid of an account.
Definition: Account.cpp:1569
gboolean xaccAccountIsHidden(const Account *acc)
Should this account be "hidden".
Definition: Account.cpp:4342
Account * gnc_account_lookup_by_name(const Account *parent, const char *name)
The gnc_account_lookup_by_name() subroutine fetches the account by name from the descendants of the s...
Definition: Account.cpp:3083
void gnc_account_remove_child(Account *parent, Account *child)
This function will remove the specified child account from the specified parent account.
Definition: Account.cpp:2863
int xaccAccountOrder(const Account *account_1, const Account *account_2)
The xaccAccountOrder() subroutine defines a sorting order on accounts.
Definition: Account.cpp:2362
Stock accounts will typically be shown in registers which show three columns: price, number of shares, and value.
Definition: Account.h:128
const char * xaccAccountGetColor(const Account *account)
Get the account's color.
Definition: Account.cpp:3370
Split * xaccAccountFindSplitByDesc(const Account *account, const char *description)
Returns a pointer to the split, not a copy.
Definition: Account.cpp:5152
gboolean xaccAccountIsAssetLiabType(GNCAccountType t)
Convenience function to check if the account is a valid Asset or Liability type, but not a business a...
Definition: Account.cpp:4621
void xaccClearMarkDown(Account *account, short val)
The xaccClearMarkDown will clear the mark only in this and in sub-accounts.
Definition: Account.cpp:2084
GList SplitList
GList of Split.
Definition: gnc-engine.h:211
GNCAccountType xaccAccountStringToEnum(const char *str)
Conversion routines for the account types to/from strings that are used in persistent storage...
Definition: Account.cpp:4458
bank account type – don't use this for now, see NUM_ACCOUNT_TYPES
Definition: Account.h:171
gchar * gnc_account_get_full_name(const Account *account)
The gnc_account_get_full_name routine returns the fully qualified name of the account using the given...
Definition: Account.cpp:3308
gnc_numeric xaccAccountGetReconciledBalanceAsOfDate(Account *account, time64 date)
Get the reconciled balance of the account at the end of the day of the date specified.
Definition: Account.cpp:3632
void gnc_account_imap_add_account_bayes(GncImportMatchMap *imap, GList *tokens, Account *acc)
Updates the imap for a given account using a list of tokens.
Definition: Account.cpp:5889
void xaccAccountSetPlaceholder(Account *account, gboolean val)
Set the "placeholder" flag for an account.
Definition: Account.cpp:4247
gboolean xaccAccountTypesCompatible(GNCAccountType parent_type, GNCAccountType child_type)
Return TRUE if accounts of type parent_type can have accounts of type child_type as children...
Definition: Account.cpp:4594
gnc_numeric xaccAccountGetNoclosingBalanceAsOfDateInCurrency(Account *acc, time64 date, gnc_commodity *report_commodity, gboolean include_children)
This function gets the balance at the end of the given date, ignoring closing entries, in the desired commodity.
Definition: Account.cpp:3960
gchar * gnc_account_name_violations_errmsg(const gchar *separator, GList *invalid_account_names)
Composes a translatable error message showing which account names clash with the current account sepa...
Definition: Account.cpp:231
gboolean xaccTransactionTraverse(Transaction *trans, int stage)
xaccTransactionTraverse() checks the stage of the given transaction.
Definition: Account.cpp:5303
void xaccAccountSetColor(Account *account, const char *color)
Set the account's Color.
Definition: Account.cpp:2566
Transaction * xaccAccountFindTransByDesc(const Account *account, const char *description)
Returns a pointer to the transaction, not a copy.
Definition: Account.cpp:5167
void gnc_account_set_balance_dirty(Account *acc)
Tell the account that the running balances may be incorrect and need to be recomputed.
Definition: Account.cpp:1903
Income accounts are used to denote income.
Definition: Account.h:146
void gnc_account_foreach_child(const Account *account, AccountCb func, gpointer user_data)
This method will traverse the immediate children of this accounts, calling 'func' on each account...
Definition: Account.cpp:3227
Account * gnc_account_lookup_by_code(const Account *parent, const char *code)
The gnc_account_lookup_by_code() subroutine works like gnc_account_lookup_by_name, but uses the account code.
Definition: Account.cpp:3096
void gnc_account_tree_begin_staged_transaction_traversals(Account *acc)
gnc_account_tree_begin_staged_transaction_traversals() resets the traversal marker inside every trans...
Definition: Account.cpp:5330
void dxaccAccountSetPriceSrc(Account *account, const char *src)
Set a string that identifies the Finance::Quote backend that should be used to retrieve online prices...
Definition: Account.cpp:5019
void xaccAccountBeginStagedTransactionTraversals(const Account *account)
xaccAccountBeginStagedTransactionTraversals() resets the traversal marker for each transaction which ...
Definition: Account.cpp:5292
Implement Accounting Policy.
GNCPlaceholderType xaccAccountGetDescendantPlaceholder(const Account *account)
Returns PLACEHOLDER_NONE if account is NULL or neither account nor any descendant of account is a pla...
Definition: Account.cpp:4291
const char * xaccAccountGetDescription(const Account *account)
Get the account's description.
Definition: Account.cpp:3363
void gnc_account_set_start_reconciled_balance(Account *acc, const gnc_numeric start_baln)
This function will set the starting reconciled commodity balance for this account.
Definition: Account.cpp:3516
void gnc_account_delete_all_bayes_maps(Account *acc)
Delete all bayes entries for Account.
Definition: Account.cpp:6077
const char * dxaccAccountGetQuoteTZ(const Account *account)
Get the timezone to be used when interpreting the results from a given Finance::Quote backend...
Definition: Account.cpp:5058
GType gnc_account_get_type(void)
Returns the GType type system description of the Account class.
line of credit – don't use this for now, see NUM_ACCOUNT_TYPES
Definition: Account.h:177
void xaccAccountClearReconcilePostpone(Account *account)
DOCUMENT ME!
Definition: Account.cpp:4898
const char * xaccAccountGetTaxUSPayerNameSource(const Account *account)
DOCUMENT ME!
Definition: Account.cpp:4156
void xaccSplitsBeginStagedTransactionTraversals(SplitList *splits)
xaccSplitsBeginStagedTransactionTraversals() resets the traversal marker for each transaction which i...
Definition: Account.cpp:5276
void gnc_account_reset_convert_bayes_to_flat(void)
Reset the flag that indicates the function imap_convert_bayes_to_flat has been run.
Definition: Account.cpp:5794
GList * gnc_account_get_children_sorted(const Account *account)
This routine returns a GList of all children accounts of the specified account, ordered by xaccAccoun...
Definition: Account.cpp:2937
The bank account type denotes a savings or checking account held at a bank.
Definition: Account.h:113
LotList * xaccAccountGetLotList(const Account *account)
The xaccAccountGetLotList() routine returns a list of all lots in this account.
Definition: Account.cpp:4029
void xaccAccountRecomputeBalance(Account *)
The following recompute the partial balances (stored with the transaction) and the total balance...
Definition: Account.cpp:2281
GList * gnc_account_imap_get_info_bayes(Account *acc)
Returns a GList of structure imap_info of all Bayesian mappings for required Account.
Definition: Account.cpp:6000
GList * gnc_account_imap_get_info(Account *acc, const char *category)
Returns a GList of structure imap_info of all Non Bayesian mappings for required Account.
Definition: Account.cpp:6011
Account * gnc_account_lookup_by_full_name(const Account *any_account, const gchar *name)
The gnc_account_lookup_full_name() subroutine works like gnc_account_lookup_by_name, but uses fully-qualified names using the given separator.
Definition: Account.cpp:3163
gboolean gnc_account_get_defer_bal_computation(Account *acc)
Get the account's flag for deferred balance computation.
Definition: Account.cpp:1929
void xaccAccountSetReconcilePostponeDate(Account *account, time64 postpone_date)
DOCUMENT ME!
Definition: Account.cpp:4832
A/P account type.
Definition: Account.h:157
const char * xaccAccountGetTaxUSCode(const Account *account)
DOCUMENT ME!
Definition: Account.cpp:4137
gboolean xaccAccountIsAPARType(GNCAccountType t)
Convenience function to check if the account is a valid business account type (meaning an Accounts Pa...
Definition: Account.cpp:4667
bank account type – don't use this for now, see NUM_ACCOUNT_TYPES
Definition: Account.h:173
gboolean xaccAccountStringToType(const char *str, GNCAccountType *type)
Conversion routines for the account types to/from strings that are used in persistent storage...
Definition: Account.cpp:4424
void xaccAccountSetIsOpeningBalance(Account *account, gboolean val)
Set the "opening-balance" flag for an account.
Definition: Account.cpp:4281
void xaccAccountSetReconcilePostponeBalance(Account *account, gnc_numeric balance)
DOCUMENT ME!
Definition: Account.cpp:4878
gboolean xaccAccountEqual(const Account *a, const Account *b, gboolean check_guids)
Compare two accounts for equality - this is a deep compare.
Definition: Account.cpp:1644
gboolean xaccAccountGetTaxRelated(const Account *account)
DOCUMENT ME!
Definition: Account.cpp:4125
void gnc_account_set_start_cleared_balance(Account *acc, const gnc_numeric start_baln)
This function will set the starting cleared commodity balance for this account.
Definition: Account.cpp:3503
Account * xaccCloneAccount(const Account *source, QofBook *book)
The xaccCloneAccount() routine makes a simple copy of the indicated account, placing it in the indica...
Definition: Account.cpp:1259
gnc_numeric xaccAccountGetReconciledBalance(const Account *account)
Get the current balance of the account, only including reconciled transactions.
Definition: Account.cpp:3543
asset (and liability) accounts indicate generic, generalized accounts that are none of the above...
Definition: Account.h:122
gint gnc_account_n_children(const Account *account)
Return the number of children of the specified account.
Definition: Account.cpp:2952
void gnc_account_join_children(Account *to_parent, Account *from_parent)
The gnc_account_join_children() subroutine will move (reparent) all child accounts from the from_pare...
Definition: Account.cpp:5180
gnc_numeric xaccAccountGetBalanceAsOfDate(Account *account, time64 date)
Get the balance of the account at the end of the day before the date specified.
Definition: Account.cpp:3620
All type declarations for the whole Gnucash engine.
gnc_numeric xaccAccountGetBalance(const Account *account)
Get the current balance of the account, which may include future splits.
Definition: Account.cpp:3529
gboolean xaccAccountGetReconcileLastDate(const Account *account, time64 *last_date)
DOCUMENT ME!
Definition: Account.cpp:4706
void dxaccAccountSetQuoteTZ(Account *account, const char *tz)
Set the timezone to be used when interpreting the results from a given Finance::Quote backend...
Definition: Account.cpp:5047
The currency account type indicates that the account is a currency trading account.
Definition: Account.h:135
void xaccAccountSetCommoditySCU(Account *account, int frac)
Set the SCU for the account.
Definition: Account.cpp:2678
GNCAccountType
The account types are used to determine how the transaction data in the account is displayed...
Definition: Account.h:107
gnc_commodity * gnc_account_get_currency_or_parent(const Account *account)
Returns a gnc_commodity that is a currency, suitable for being a Transaction's currency.
Definition: Account.cpp:3455
gboolean xaccAccountGetHidden(const Account *acc)
Get the "hidden" flag for an account.
Definition: Account.cpp:4330
void xaccAccountSetAppendText(Account *account, gboolean val)
Set the "import-append-text" flag for an account.
Definition: Account.cpp:4259
GncImportMatchMap * gnc_account_imap_create_imap(Account *acc)
Obtain an ImportMatchMap object from an Account or a Book.
Definition: Account.cpp:5456
gboolean gnc_account_insert_split(Account *acc, Split *s)
Insert the given split from an account.
Definition: Account.cpp:1943
GList * gnc_account_get_descendants(const Account *account)
This routine returns a flat list of all of the accounts that are descendants of the specified account...
Definition: Account.cpp:3036
void xaccAccountSetAutoInterest(Account *acc, gboolean val)
Set the "auto interest" flag for an account.
Definition: Account.cpp:4321
void xaccAccountSetTaxUSCode(Account *account, const char *code)
DOCUMENT ME!
Definition: Account.cpp:4146
GNCPlaceholderType
DOCUMENT ME!
Definition: Account.h:1187
gboolean xaccAccountGetIsOpeningBalance(const Account *account)
Get the "opening-balance" flag for an account.
Definition: Account.cpp:4265
guint32 xaccParentAccountTypesCompatibleWith(GNCAccountType type)
Return the bitmask of parent account types compatible with a given type.
Definition: Account.cpp:4547
gboolean xaccAccountGetReconcileChildrenStatus(const Account *account)
DOCUMENT ME!
Definition: Account.cpp:5095
gboolean xaccAccountGetReconcileLastInterval(const Account *account, int *months, int *days)
DOCUMENT ME!
Definition: Account.cpp:4749
Not a type.
Definition: Account.h:110
const char * dxaccAccountGetPriceSrc(const Account *account)
Get a string that identifies the Finance::Quote backend that should be used to retrieve online prices...
Definition: Account.cpp:5031
liability (and asset) accounts indicate generic, generalized accounts that are none of the above...
Definition: Account.h:125
const char * gnc_account_get_credit_string(GNCAccountType acct_type)
Get the credit string associated with this account type.
Definition: Account.cpp:4225
GList * gnc_account_get_children(const Account *account)
This routine returns a GList of all children accounts of the specified account.
Definition: Account.cpp:2930
void xaccAccountSetHidden(Account *acc, gboolean val)
Set the "hidden" flag for an account.
Definition: Account.cpp:4336
void xaccAccountBeginEdit(Account *account)
The xaccAccountBeginEdit() subroutine is the first phase of a two-phase-commit wrapper for account up...
Definition: Account.cpp:1449
gboolean xaccAccountHasAncestor(const Account *acc, const Account *ancestor)
Returns true if the account is 'ancestor' or has 'ancestor' as an ancestor.
Definition: Account.cpp:4364
gnc_commodity * xaccAccountGetCommodity(const Account *account)
Get the account's commodity.
Definition: Account.cpp:3448
gboolean xaccAccountGetPlaceholder(const Account *account)
Get the "placeholder" flag for an account.
Definition: Account.cpp:4241
gint gnc_account_get_current_depth(const Account *account)
Return the number of levels of this account below the root account.
Definition: Account.cpp:2989
A/R account type.
Definition: Account.h:155
void xaccAccountSetSortReversed(Account *account, gboolean sortreversed)
Set the account's Sort Order direction.
Definition: Account.cpp:2596
bank account type – don't use this for now, see NUM_ACCOUNT_TYPES
Definition: Account.h:175
Account * xaccAccountGainsAccount(Account *acc, gnc_commodity *curr)
Retrieve the gains account used by this account for the indicated currency, creating and recording a ...
Definition: Account.cpp:4979
Account * gnc_account_nth_child(const Account *parent, gint num)
Return the n'th child account of the specified parent account.
Definition: Account.cpp:2967
Account * xaccMallocAccount(QofBook *book)
Constructor.
Definition: Account.cpp:1228
gint gnc_account_child_index(const Account *parent, const Account *child)
Return the index of the specified child within the list of the parent's children. ...
Definition: Account.cpp:2959
gint64 time64
Many systems, including Microsoft Windows and BSD-derived Unixes like Darwin, are retaining the int-3...
Definition: gnc-date.h:93
void xaccAccountSetTaxUSPayerNameSource(Account *account, const char *source)
DOCUMENT ME!
Definition: Account.cpp:4165
void xaccAccountSetDescription(Account *account, const char *desc)
Set the account's description.
Definition: Account.cpp:2486
void DxaccAccountSetCurrency(Account *account, gnc_commodity *currency)
Definition: Account.cpp:2741
void gnc_account_set_start_balance(Account *acc, const gnc_numeric start_baln)
This function will set the starting commodity balance for this account.
Definition: Account.cpp:3491
void xaccAccountSetNonStdSCU(Account *account, gboolean flag)
Set the flag indicating that this account uses a non-standard SCU.
Definition: Account.cpp:2714
LotList * xaccAccountFindOpenLots(const Account *acc, gboolean(*match_func)(GNCLot *lot, gpointer user_data), gpointer user_data, GCompareFunc sort_func)
Find a list of open lots that match the match_func.
Definition: Account.cpp:4036
Account * gnc_account_get_root(Account *account)
This routine returns the root account of the account tree that the specified account belongs to...
Definition: Account.cpp:2906
Account * gnc_account_lookup_by_opening_balance(Account *account, gnc_commodity *commodity)
Find the opening balance account for the currency.
Definition: Account.cpp:3111
void gnc_account_set_defer_bal_computation(Account *acc, gboolean defer)
Set the defer balance flag.
Definition: Account.cpp:1916
const char * xaccAccountGetName(const Account *account)
Get the account's name.
Definition: Account.cpp:3301
Equity account is used to balance the balance sheet.
Definition: Account.h:152
const char * xaccAccountGetTypeStr(GNCAccountType type)
The xaccAccountGetTypeStr() routine returns a string suitable for use in the GUI/Interface.
Definition: Account.cpp:4497
const char * xaccAccountGetSortOrder(const Account *account)
Get the account's Sort Order.
Definition: Account.cpp:3390
Not a type.
Definition: Account.h:111
The type used to store guids in C.
Definition: guid.h:75
int xaccAccountStagedTransactionTraversal(const Account *a, unsigned int stage, TransactionCallback thunk, void *data)
xaccAccountStagedTransactionTraversal() calls thunk on each transaction in account a whose current ma...
Definition: Account.cpp:5340
void xaccAccountCommitEdit(Account *account)
ThexaccAccountCommitEdit() subroutine is the second phase of a two-phase-commit wrapper for account u...
Definition: Account.cpp:1490
void xaccClearMark(Account *account, short val)
Get the mark set by xaccAccountSetMark short xaccAccountGetMark (const Account *account);.
Definition: Account.cpp:2073
void xaccAccountSetName(Account *account, const char *name)
Set the account's name.
Definition: Account.cpp:2447
The hidden root account of an account tree.
Definition: Account.h:159
GNCPolicy * gnc_account_get_policy(Account *account)
Get the account's lot order policy.
Definition: Account.cpp:2103
void gnc_account_merge_children(Account *parent)
The gnc_account_merge_children() subroutine will go through an account, merging all child accounts th...
Definition: Account.cpp:5205
gboolean xaccAccountIsEquityType(GNCAccountType t)
Convenience function to check if the account is a valid Equity type.
Definition: Account.cpp:4679
void xaccAccountSetReconcileChildrenStatus(Account *account, gboolean status)
DOCUMENT ME!
Definition: Account.cpp:5072
The Credit card account is used to denote credit (e.g.
Definition: Account.h:119
const gchar * gnc_get_account_separator_string(void)
Returns the account separation character chosen by the user.
Definition: Account.cpp:201
void xaccAccountSetCommodity(Account *account, gnc_commodity *comm)
Set the account's commodity.
Definition: Account.cpp:2632
GList * gnc_account_lookup_by_type_and_commodity(Account *root, const char *name, GNCAccountType acctype, gnc_commodity *commodity)
Find a direct child account matching name, GNCAccountType, and/or commodity.
Definition: Account.cpp:3188
const char * xaccAccountGetNotes(const Account *account)
Get the account's notes.
Definition: Account.cpp:3416
gboolean xaccAccountGetReconcilePostponeBalance(const Account *account, gnc_numeric *balance)
DOCUMENT ME!
Definition: Account.cpp:4851
gint gnc_account_get_tree_depth(const Account *account)
Return the number of levels of descendants accounts below the specified account.
Definition: Account.cpp:3008
Account * xaccAccountLookup(const GncGUID *guid, QofBook *book)
The xaccAccountLookup() subroutine will return the account associated with the given id...
Definition: Account.cpp:2050
void xaccAccountSetTaxUSCopyNumber(Account *account, gint64 copy_number)
DOCUMENT ME!
Definition: Account.cpp:4189