GnuCash 7574033+
Loading...
Searching...
No Matches

Tax Table programming interface. More...

#include "Account.h"
#include "qof.h"
#include "gncBusiness.h"
#include "gncOwner.h"

Go to the source code of this file.

Data Structures

struct  GncAccountValue

Macros

#define GNC_ID_TAXTABLE   "gncTaxTable"
#define GNC_TYPE_TAXTABLE   (gnc_taxtable_get_type ())
#define GNC_TAXTABLE(o)
#define GNC_TAXTABLE_CLASS(k)
#define GNC_IS_TAXTABLE(o)
#define GNC_IS_TAXTABLE_CLASS(k)
#define GNC_TAXTABLE_GET_CLASS(o)
#define GNC_TT_NAME   "tax table name"
 QOF parameter definitions.
#define GNC_TT_REFCOUNT   "reference count"
#define gncTaxTableGetGUID(x)
#define gncTaxTableRetGUID(x)
#define gncTaxTableLookupDirect(G, B)

Enumerations

enum  GncAmountType { GNC_AMT_TYPE_VALUE = 1 , GNC_AMT_TYPE_PERCENT }
 How to interpret the amount. More...
enum  GncTaxIncluded { GNC_TAXINCLUDED_YES = 1 , GNC_TAXINCLUDED_NO , GNC_TAXINCLUDED_USEGLOBAL }
 How to interpret the TaxIncluded. More...

Functions

GType gnc_taxtable_get_type (void)
const char * gncAmountTypeToString (GncAmountType type)
gboolean gncAmountStringToType (const char *str, GncAmountType *type)
const char * gncTaxIncludedTypeToString (GncTaxIncluded type)
gboolean gncTaxIncludedStringToType (const char *str, GncTaxIncluded *type)
void gncTaxTableAddEntry (GncTaxTable *table, GncTaxTableEntry *entry)
void gncTaxTableRemoveEntry (GncTaxTable *table, GncTaxTableEntry *entry)
void gncTaxTableChanged (GncTaxTable *table)
void gncTaxTableBeginEdit (GncTaxTable *table)
void gncTaxTableCommitEdit (GncTaxTable *table)
gboolean gncTaxTableEqual (const GncTaxTable *a, const GncTaxTable *b)
int gncTaxTableCompare (const GncTaxTable *a, const GncTaxTable *b)
int gncTaxTableEntryCompare (const GncTaxTableEntry *a, const GncTaxTableEntry *b)
gboolean gncTaxTableEntryEqual (const GncTaxTableEntry *a, const GncTaxTableEntry *b)
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.
GList * gncAccountValueAddList (GList *l1, GList *l2)
 Merge l2 into l1.
gnc_numeric gncAccountValueTotal (GList *list)
 return the total for this list
void gncAccountValueDestroy (GList *list)
 Destroy a list of accountvalues.
Create/Destroy Functions
GncTaxTable * gncTaxTableCreate (QofBook *book)
void gncTaxTableDestroy (GncTaxTable *table)
GncTaxTableEntry * gncTaxTableEntryCreate (void)
void gncTaxTableEntryDestroy (GncTaxTableEntry *entry)
Set Functions
void gncTaxTableSetName (GncTaxTable *table, const char *name)
void gncTaxTableIncRef (GncTaxTable *table)
void gncTaxTableDecRef (GncTaxTable *table)
void gncTaxTableEntrySetAccount (GncTaxTableEntry *entry, Account *account)
void gncTaxTableEntrySetType (GncTaxTableEntry *entry, GncAmountType type)
void gncTaxTableEntrySetAmount (GncTaxTableEntry *entry, gnc_numeric amount)

Get Functions

#define gncTaxTableGetChild(t)
typedef GList GncTaxTableList
typedef GList GncTaxTableEntryList
GncTaxTable * gncTaxTableLookupByName (QofBook *book, const char *name)
GncTaxTable * gncTaxTableGetDefault (QofBook *book, GncOwnerType type)
GncTaxTableList * gncTaxTableGetTables (QofBook *book)
const char * gncTaxTableGetName (const GncTaxTable *table)
GncTaxTable * gncTaxTableGetParent (const GncTaxTable *table)
GncTaxTable * gncTaxTableReturnChild (GncTaxTable *table, gboolean make_new)
GncTaxTableEntryList * gncTaxTableGetEntries (const GncTaxTable *table)
gint64 gncTaxTableGetRefcount (const GncTaxTable *table)
time64 gncTaxTableLastModifiedSecs (const GncTaxTable *table)
Account * gncTaxTableEntryGetAccount (const GncTaxTableEntry *entry)
GncAmountType gncTaxTableEntryGetType (const GncTaxTableEntry *entry)
gnc_numeric gncTaxTableEntryGetAmount (const GncTaxTableEntry *entry)

Detailed Description

Tax Table programming interface.

Author
Copyright (C) 2002 Derek Atkins warlo.nosp@m.rd@M.nosp@m.IT.ED.nosp@m.U

Definition in file gncTaxTable.h.