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))
115GType gnc_taxtable_get_type(
void);
119gboolean gncAmountStringToType (
const char *str,
GncAmountType *type);
122gboolean gncTaxIncludedStringToType (
const char *str,
GncTaxIncluded *type);
140void gncTaxTableEntrySetAmount (
GncTaxTableEntry *entry, gnc_numeric amount);
165typedef GList GncTaxTableList;
166GncTaxTableList * gncTaxTableGetTables (
QofBook *book);
171#define gncTaxTableGetChild(t) gncTaxTableReturnChild((t),FALSE)
172typedef 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))
Account handling public routines.
-- Business Helper Functions
Business Interface: Object OWNERs.
#define QOF_BOOK_RETURN_ENTITY(book, guid, e_type, c_type)
Encapsulates all the information about a dataset manipulated by QOF.
gint64 time64
Most systems that are currently maintained, including Microsoft Windows, BSD-derived Unixes and Linux...
void gncAccountValueDestroy(GList *list)
Destroy a list of accountvalues.
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.
GncAmountType
How to interpret the amount.
GncTaxIncluded
How to interpret the TaxIncluded.
GList * gncAccountValueAddList(GList *l1, GList *l2)
Merge l2 into l1.
gnc_numeric gncAccountValueTotal(GList *list)
return the total for this list
@ GNC_AMT_TYPE_VALUE
tax is a number
@ GNC_AMT_TYPE_PERCENT
tax is a percentage
@ GNC_TAXINCLUDED_NO
tax is not included
@ GNC_TAXINCLUDED_YES
tax is included
@ GNC_TAXINCLUDED_USEGLOBAL
use the global setting
The type used to store guids in C.
modtime is the internal date of the last modtime See libgnucash/engine/TaxTableBillTermImmutability....