38 #ifndef GNC_TAXTABLE_H_ 39 #define GNC_TAXTABLE_H_ 101 #define GNC_ID_TAXTABLE "gncTaxTable" 104 #define GNC_TYPE_TAXTABLE (gnc_taxtable_get_type ()) 105 #define GNC_TAXTABLE(o) \ 106 (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_TAXTABLE, GncTaxTable)) 107 #define GNC_TAXTABLE_CLASS(k) \ 108 (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_TAXTABLE, GncTaxTableClass)) 109 #define GNC_IS_TAXTABLE(o) \ 110 (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_TAXTABLE)) 111 #define GNC_IS_TAXTABLE_CLASS(k) \ 112 (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_TAXTABLE)) 113 #define GNC_TAXTABLE_GET_CLASS(o) \ 114 (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_TAXTABLE, GncTaxTableClass)) 115 GType gnc_taxtable_get_type(
void);
119 gboolean gncAmountStringToType (
const char *str,
GncAmountType *type);
122 gboolean gncTaxIncludedStringToType (
const char *str,
GncTaxIncluded *type);
140 void gncTaxTableEntrySetAmount (
GncTaxTableEntry *entry, gnc_numeric amount);
157 static inline GncTaxTable *gncTaxTableLookup (
const QofBook* book,
const GncGUID *guid)
162 GncTaxTable *gncTaxTableLookupByName (QofBook *book,
const char *name);
163 GncTaxTable *gncTaxTableGetDefault (QofBook *book, GncOwnerType type);
165 typedef GList GncTaxTableList;
166 GncTaxTableList * gncTaxTableGetTables (QofBook *book);
171 #define gncTaxTableGetChild(t) gncTaxTableReturnChild((t),FALSE) 172 typedef GList GncTaxTableEntryList;
210 #define GNC_TT_NAME "tax table name" 211 #define GNC_TT_REFCOUNT "reference count" 214 #define gncTaxTableGetGUID(x) qof_instance_get_guid(QOF_INSTANCE(x)) 215 #define gncTaxTableRetGUID(x) (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null())) 216 #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
Most systems that are currently maintained, including Microsoft Windows, BSD-derived Unixes and Linux...
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 libgnucash/engine/TaxTableBillTermImmutability.txt for an explanation of the following Code that handles refcount, parent, child, invisible and children is identical to that in ::GncBillTerm