31 #ifndef GNC_TAXTABLE_H_ 32 #define GNC_TAXTABLE_H_ 94 #define GNC_ID_TAXTABLE "gncTaxTable" 97 #define GNC_TYPE_TAXTABLE (gnc_taxtable_get_type ()) 98 #define GNC_TAXTABLE(o) \ 99 (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_TAXTABLE, GncTaxTable)) 100 #define GNC_TAXTABLE_CLASS(k) \ 101 (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_TAXTABLE, GncTaxTableClass)) 102 #define GNC_IS_TAXTABLE(o) \ 103 (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_TAXTABLE)) 104 #define GNC_IS_TAXTABLE_CLASS(k) \ 105 (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_TAXTABLE)) 106 #define GNC_TAXTABLE_GET_CLASS(o) \ 107 (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_TAXTABLE, GncTaxTableClass)) 108 GType gnc_taxtable_get_type(
void);
112 gboolean gncAmountStringToType (
const char *str,
GncAmountType *type);
115 gboolean gncTaxIncludedStringToType (
const char *str,
GncTaxIncluded *type);
133 void gncTaxTableEntrySetAmount (
GncTaxTableEntry *entry, gnc_numeric amount);
150 static inline GncTaxTable *gncTaxTableLookup (
const QofBook* book,
const GncGUID *guid)
155 GncTaxTable *gncTaxTableLookupByName (QofBook *book,
const char *name);
156 GncTaxTable *gncTaxTableGetDefault (QofBook *book, GncOwnerType type);
158 typedef GList GncTaxTableList;
159 GncTaxTableList * gncTaxTableGetTables (QofBook *book);
164 #define gncTaxTableGetChild(t) gncTaxTableReturnChild((t),FALSE) 165 typedef GList GncTaxTableEntryList;
203 #define GNC_TT_NAME "tax table name" 204 #define GNC_TT_REFCOUNT "reference count" 207 #define gncTaxTableGetGUID(x) qof_instance_get_guid(QOF_INSTANCE(x)) 208 #define gncTaxTableRetGUID(x) (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())) 209 #define gncTaxTableLookupDirect(G,B) gncTaxTableLookup((B), &(G))
Business Interface: Object OWNERs.
GncTaxIncluded
How to interpret the TaxIncluded.
gnc_numeric gncAccountValueTotal(GList *list)
return the total for this list
#define QOF_BOOK_RETURN_ENTITY(book, guid, e_type, c_type)
Encapsulates all the information about a dataset manipulated by QOF.
Account handling public routines.
– Business Helper Functions
void gncAccountValueDestroy(GList *list)
Destroy a list of accountvalues.
GList * gncAccountValueAddList(GList *l1, GList *l2)
Merge l2 into l1.
gint64 time64
Many systems, including Microsoft Windows and BSD-derived Unixes like Darwin, are retaining the int-3...
GList * gncAccountValueAdd(GList *list, Account *acc, gnc_numeric value)
This will add value to the account-value for acc, creating a new list object if necessary.
The type used to store guids in C.
GncAmountType
How to interpret the amount.
modtime is the internal date of the last modtime See src/doc/business.txt for an explanation of the f...