31 #ifndef GNC_CUSTOMER_H_
32 #define GNC_CUSTOMER_H_
65 #define GNC_ID_CUSTOMER "gncCustomer"
68 #define GNC_TYPE_CUSTOMER (gnc_customer_get_type ())
69 #define GNC_CUSTOMER(o) \
70 (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_CUSTOMER, GncCustomer))
71 #define GNC_CUSTOMER_CLASS(k) \
72 (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_CUSTOMER, GncCustomerClass))
73 #define GNC_IS_CUSTOMER(o) \
74 (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_CUSTOMER))
75 #define GNC_IS_CUSTOMER_CLASS(k) \
76 (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_CUSTOMER))
77 #define GNC_CUSTOMER_GET_CLASS(o) \
78 (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_CUSTOMER, GncCustomerClass))
79 GType gnc_customer_get_type(
void);
92 void gncCustomerSetID (
GncCustomer *customer,
const char *
id);
93 void gncCustomerSetName (
GncCustomer *customer,
const char *name);
94 void gncCustomerSetNotes (
GncCustomer *customer,
const char *notes);
97 void gncCustomerSetActive (
GncCustomer *customer, gboolean active);
102 void gncCustomerSetTaxTableOverride (
GncCustomer *customer, gboolean
override);
123 const char * gncCustomerGetID (
const GncCustomer *customer);
124 const char * gncCustomerGetName (
const GncCustomer *customer);
127 const char * gncCustomerGetNotes (
const GncCustomer *customer);
130 gboolean gncCustomerGetActive (
const GncCustomer *customer);
135 gboolean gncCustomerGetTaxTableOverride (
const GncCustomer *customer);
142 #define CUSTOMER_ID "id"
143 #define CUSTOMER_NAME "name"
144 #define CUSTOMER_ADDR "addr"
145 #define CUSTOMER_SHIPADDR "shipaddr"
146 #define CUSTOMER_NOTES "notes"
147 #define CUSTOMER_DISCOUNT "amount of discount"
148 #define CUSTOMER_CREDIT "amount of credit"
149 #define CUSTOMER_TT_OVER "tax table override"
150 #define CUSTOMER_TAX_INC "customer_tax_included"
151 #define CUSTOMER_TERMS "customer_terms"
152 #define CUSTOMER_ACTIVE "customer_is_active"
153 #define CUSTOMER_SLOTS "customer_values"
156 #define gncCustomerGetGUID(x) qof_instance_get_guid(QOF_INSTANCE(x))
157 #define gncCustomerRetGUID(x) (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null()))
158 #define gncCustomerGetBook(x) qof_instance_get_book(QOF_INSTANCE(x))
159 #define gncCustomerLookupDirect(g,b) gncCustomerLookup((b), &(g))
164 GList * gncCustomerGetJoblist (
const GncCustomer *customer, gboolean show_all);
165 gboolean gncCustomerIsDirty (
GncCustomer *customer);
#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...
Tax Table programming interface.
gboolean gncCustomerEqual(const GncCustomer *a, const GncCustomer *b)