GnuCash  5.6-150-g038405b370+
Macros | Functions

Vendor Interface. More...

#include "gncAddress.h"
#include "gncBillTerm.h"
#include "gncTaxTable.h"
#include "gncJob.h"

Go to the source code of this file.

Macros

#define GNC_ID_VENDOR   "gncVendor"
 
#define GNC_TYPE_VENDOR   (gnc_vendor_get_type ())
 
#define GNC_VENDOR(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_VENDOR, GncVendor))
 
#define GNC_VENDOR_CLASS(k)   (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_VENDOR, GncVendorClass))
 
#define GNC_IS_VENDOR(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_VENDOR))
 
#define GNC_IS_VENDOR_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_VENDOR))
 
#define GNC_VENDOR_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_VENDOR, GncVendorClass))
 
#define VENDOR_ID   "id"
 
#define VENDOR_NAME   "name"
 
#define VENDOR_ADDR   "addr"
 
#define VENDOR_NOTES   "vendor_notes"
 
#define VENDOR_TERMS   "vendor_terms"
 
#define VENDOR_TAX_INC   "vendor_tax_included"
 
#define VENDOR_ACTIVE   "vendor_is_active"
 
#define VENDOR_TAX_OVERRIDE   "override_tax_table"
 
#define VENDOR_TAX_TABLE   "vendor_tax_table"
 
#define gncVendorGetBook(X)   qof_instance_get_book (QOF_INSTANCE(X))
 deprecated functions
 
#define gncVendorGetGUID(X)   qof_instance_get_guid (QOF_INSTANCE(X))
 
#define gncVendorRetGUID(X)   (X ? *(qof_instance_get_guid (QOF_INSTANCE(X))) : *(guid_null()))
 
#define gncVendorLookupDirect(G, B)   gncVendorLookup((B),&(G))
 

Functions

GType gnc_vendor_get_type (void)
 
GncVendor * gncVendorCreate (QofBook *book)
 
void gncVendorDestroy (GncVendor *vendor)
 
void gncVendorAddJob (GncVendor *vendor, GncJob *job)
 
void gncVendorRemoveJob (GncVendor *vendor, GncJob *job)
 
void gncVendorBeginEdit (GncVendor *vendor)
 
void gncVendorCommitEdit (GncVendor *vendor)
 
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 copied list.
 
gboolean gncVendorEqual (const GncVendor *a, const GncVendor *b)
 Test support function, used by test-dbi-business-stuff.c.
 
gboolean gncVendorIsDirty (const GncVendor *vendor)
 
Set Functions
void gncVendorSetID (GncVendor *vendor, const char *id)
 
void gncVendorSetName (GncVendor *vendor, const char *name)
 
void gncVendorSetNotes (GncVendor *vendor, const char *notes)
 
void gncVendorSetTerms (GncVendor *vendor, GncBillTerm *terms)
 
void gncVendorSetTaxIncluded (GncVendor *vendor, GncTaxIncluded taxincl)
 
void gncVendorSetCurrency (GncVendor *vendor, gnc_commodity *currency)
 
void gncVendorSetActive (GncVendor *vendor, gboolean active)
 
void gncVendorSetTaxTableOverride (GncVendor *vendor, gboolean override)
 
void gncVendorSetTaxTable (GncVendor *vendor, GncTaxTable *table)
 
Get Functions
const char * gncVendorGetID (const GncVendor *vendor)
 
const char * gncVendorGetName (const GncVendor *vendor)
 
GncAddressgncVendorGetAddr (const GncVendor *vendor)
 
const char * gncVendorGetNotes (const GncVendor *vendor)
 
GncBillTerm * gncVendorGetTerms (const GncVendor *vendor)
 
GncTaxIncluded gncVendorGetTaxIncluded (const GncVendor *vendor)
 
gnc_commodity * gncVendorGetCurrency (const GncVendor *vendor)
 
gboolean gncVendorGetActive (const GncVendor *vendor)
 
gboolean gncVendorGetTaxTableOverride (const GncVendor *vendor)
 
GncTaxTablegncVendorGetTaxTable (const GncVendor *vendor)
 

Detailed Description

Vendor Interface.

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

Definition in file gncVendor.h.