31 #ifndef GNC_BILLTERM_H_
32 #define GNC_BILLTERM_H_
38 #ifdef GNUCASH_MAJOR_VERSION
41 #define GNC_ID_BILLTERM "gncBillTerm"
44 #define GNC_TYPE_BILLTERM (gnc_billterm_get_type ())
45 #define GNC_BILLTERM(o) \
46 (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_BILLTERM, GncBillTerm))
47 #define GNC_BILLTERM_CLASS(k) \
48 (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_BILLTERM, GncBillTermClass))
49 #define GNC_IS_BILLTERM(o) \
50 (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_BILLTERM))
51 #define GNC_IS_BILLTERM_CLASS(k) \
52 (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_BILLTERM))
53 #define GNC_BILLTERM_GET_CLASS(o) \
54 (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_BILLTERM, GncBillTermClass))
55 GType gnc_billterm_get_type(
void);
59 #define GNC_BILLTERM_NAME "name"
60 #define GNC_BILLTERM_DESC "description"
61 #define GNC_BILLTERM_DUEDAYS "number of days due"
62 #define GNC_BILLTERM_DISCDAYS "number of discounted days"
63 #define GNC_BILLTERM_CUTOFF "cut off"
64 #define GNC_BILLTERM_TYPE "bill type"
65 #define GNC_BILLTERM_DISCOUNT "amount of discount"
66 #define GNC_BILLTERM_REFCOUNT "reference count"
76 #define ENUM_TERMS_TYPE(_) \
77 _(GNC_TERM_TYPE_DAYS,=1) \
78 _(GNC_TERM_TYPE_PROXIMO,)
84 GNC_TERM_TYPE_DAYS = 1,
85 GNC_TERM_TYPE_PROXIMO,
104 void gncBillTermSetName (
GncBillTerm *term,
const char *name);
105 void gncBillTermSetDescription (
GncBillTerm *term,
const char *name);
106 void gncBillTermSetType (
GncBillTerm *term, GncBillTermType type);
107 void gncBillTermSetDueDays (
GncBillTerm *term, gint days);
108 void gncBillTermSetDiscountDays (
GncBillTerm *term, gint days);
110 void gncBillTermSetCutoff (
GncBillTerm *term, gint cutoff);
128 GList * gncBillTermGetTerms (
QofBook *book);
130 const char *gncBillTermGetName (
const GncBillTerm *term);
131 const char *gncBillTermGetDescription (
const GncBillTerm *term);
132 GncBillTermType gncBillTermGetType (
const GncBillTerm *term);
133 gint gncBillTermGetDueDays (
const GncBillTerm *term);
134 gint gncBillTermGetDiscountDays (
const GncBillTerm *term);
136 gint gncBillTermGetCutoff (
const GncBillTerm *term);
138 gboolean gncBillTermIsDirty (
const GncBillTerm *term);
142 #define gncBillTermGetChild(t) gncBillTermReturnChild((t),FALSE)
143 gint64 gncBillTermGetRefcount (
const GncBillTerm *term);
170 #define gncBillTermGetGUID(x) qof_instance_get_guid (QOF_INSTANCE(x))
int gncBillTermCompare(const GncBillTerm *a, const GncBillTerm *b)
#define ENUM_TERMS_TYPE(_)
Use a 64-bit unsigned int timespec.
#define QOF_BOOK_RETURN_ENTITY(book, guid, e_type, c_type)
Encapsulates all the information about a dataset manipulated by QOF. This is the top-most structure u...
gboolean gncBillTermEqual(const GncBillTerm *a, const GncBillTerm *b)
gboolean gncBillTermIsFamily(const GncBillTerm *a, const GncBillTerm *b)