46 #define GNC_ID_VENDOR "gncVendor" 49 #define GNC_TYPE_VENDOR (gnc_vendor_get_type ()) 50 #define GNC_VENDOR(o) \ 51 (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_VENDOR, GncVendor)) 52 #define GNC_VENDOR_CLASS(k) \ 53 (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_VENDOR, GncVendorClass)) 54 #define GNC_IS_VENDOR(o) \ 55 (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_VENDOR)) 56 #define GNC_IS_VENDOR_CLASS(k) \ 57 (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_VENDOR)) 58 #define GNC_VENDOR_GET_CLASS(o) \ 59 (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_VENDOR, GncVendorClass)) 60 GType gnc_vendor_get_type(
void);
64 GncVendor *gncVendorCreate (QofBook *book);
65 void gncVendorDestroy (GncVendor *vendor);
71 void gncVendorSetID (GncVendor *vendor,
const char *
id);
72 void gncVendorSetName (GncVendor *vendor,
const char *name);
73 void gncVendorSetNotes (GncVendor *vendor,
const char *notes);
74 void gncVendorSetTerms (GncVendor *vendor, GncBillTerm *terms);
75 void gncVendorSetTaxIncluded (GncVendor *vendor,
GncTaxIncluded taxincl);
76 void gncVendorSetCurrency (GncVendor *vendor, gnc_commodity *currency);
77 void gncVendorSetActive (GncVendor *vendor, gboolean active);
78 void gncVendorSetTaxTableOverride (GncVendor *vendor, gboolean
override);
83 void gncVendorAddJob (GncVendor *vendor, GncJob *job);
84 void gncVendorRemoveJob (GncVendor *vendor, GncJob *job);
86 void gncVendorBeginEdit (GncVendor *vendor);
87 void gncVendorCommitEdit (GncVendor *vendor);
93 const char * gncVendorGetID (
const GncVendor *vendor);
94 const char * gncVendorGetName (
const GncVendor *vendor);
95 GncAddress * gncVendorGetAddr (
const GncVendor *vendor);
96 const char * gncVendorGetNotes (
const GncVendor *vendor);
97 GncBillTerm * gncVendorGetTerms (
const GncVendor *vendor);
99 gnc_commodity * gncVendorGetCurrency (
const GncVendor *vendor);
100 gboolean gncVendorGetActive (
const GncVendor *vendor);
102 gboolean gncVendorGetTaxTableOverride (
const GncVendor *vendor);
103 GncTaxTable* gncVendorGetTaxTable (
const GncVendor *vendor);
116 static inline GncVendor * gncVendorLookup (
const QofBook *book,
const GncGUID *guid)
121 #define VENDOR_ID "id" 122 #define VENDOR_NAME "name" 123 #define VENDOR_ADDR "addr" 124 #define VENDOR_NOTES "vendor_notes" 125 #define VENDOR_TERMS "vendor_terms" 126 #define VENDOR_TAX_INC "vendor_tax_included" 127 #define VENDOR_ACTIVE "vendor_is_active" 128 #define VENDOR_TAX_OVERRIDE "override_tax_table" 129 #define VENDOR_TAX_TABLE "vendor_tax_table" 132 #define gncVendorGetBook(X) qof_instance_get_book (QOF_INSTANCE(X)) 133 #define gncVendorGetGUID(X) qof_instance_get_guid (QOF_INSTANCE(X)) 134 #define gncVendorRetGUID(X) (X ? *(qof_instance_get_guid (QOF_INSTANCE(X))) : *(guid_null())) 135 #define gncVendorLookupDirect(G,B) gncVendorLookup((B),&(G)) 138 gboolean gncVendorIsDirty (
const GncVendor *vendor);
GncTaxIncluded
How to interpret the TaxIncluded.
#define QOF_BOOK_RETURN_ENTITY(book, guid, e_type, c_type)
Encapsulates all the information about a dataset manipulated by QOF.
Tax Table programming interface.
int gncVendorCompare(const GncVendor *a, const GncVendor *b)
XXX should be renamed to RetJobList to be consistent with other usage, since caller must free the cop...
gboolean gncVendorEqual(const GncVendor *a, const GncVendor *b)
Test support function, used by test-dbi-business-stuff.c.
The type used to store guids in C.
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