gncInvoice.h File Reference


Detailed Description

Business Invoice Interface.

Author:
Copyright (C) 2001,2006 Derek Atkins <warlord@MIT.EDU>

Copyright (c) 2005 Neil Williams <linux@codehelp.co.uk>

Definition in file gncInvoice.h.

#include "gncBillTerm.h"
#include "gncEntry.h"
#include "gncOwner.h"
#include "gnc-lot.h"
#include "qofbook.h"

Go to the source code of this file.

Defines

#define GNC_ID_INVOICE   "gncInvoice"
#define GNC_TYPE_INVOICE   (gnc_invoice_get_type ())
#define GNC_INVOICE(o)   (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_INVOICE, GncInvoice))
#define GNC_INVOICE_CLASS(k)   (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_INVOICE, GncInvoiceClass))
#define GNC_IS_INVOICE(o)   (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_INVOICE))
#define GNC_IS_INVOICE_CLASS(k)   (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_INVOICE))
#define GNC_INVOICE_GET_CLASS(o)   (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_INVOICE, GncInvoiceClass))
#define gncInvoiceLookup(book, guid)   QOF_BOOK_LOOKUP_ENTITY((book),(guid),GNC_ID_INVOICE, GncInvoice)
#define INVOICE_ID   "id"
#define INVOICE_OWNER   "owner"
#define INVOICE_OPENED   "date_opened"
#define INVOICE_POSTED   "date_posted"
#define INVOICE_DUE   "date_due"
#define INVOICE_IS_POSTED   "is_posted?"
#define INVOICE_IS_PAID   "is_paid?"
#define INVOICE_TERMS   "terms"
#define INVOICE_BILLINGID   "billing_id"
#define INVOICE_NOTES   "notes"
#define INVOICE_ACC   "account"
#define INVOICE_POST_TXN   "posted_txn"
#define INVOICE_POST_LOT   "posted_lot"
#define INVOICE_TYPE   "type"
#define INVOICE_BILLTO   "bill-to"
#define INVOICE_ENTRIES   "list_of_entries"
#define INVOICE_JOB   "invoice_job"
#define INVOICE_FROM_LOT   "invoice-from-lot"
#define INVOICE_FROM_TXN   "invoice-from-txn"
#define gncInvoiceGetGUID(x)   qof_instance_get_guid(QOF_INSTANCE(x))
#define gncInvoiceRetGUID(x)   (x ? *(qof_instance_get_guid(QOF_INSTANCE(x))) : *(guid_null()))
#define gncInvoiceLookupDirect(G, B)   gncInvoiceLookup((B),&(G))

Typedefs

typedef _gncInvoice GncInvoice
typedef _gncInvoiceClass GncInvoiceClass
typedef GList EntryList

Functions

GType gnc_invoice_get_type (void)
void gncInvoiceAddEntry (GncInvoice *invoice, GncEntry *entry)
void gncInvoiceRemoveEntry (GncInvoice *invoice, GncEntry *entry)
void gncBillAddEntry (GncInvoice *bill, GncEntry *entry)
void gncBillRemoveEntry (GncInvoice *bill, GncEntry *entry)
void gncInvoiceSortEntries (GncInvoice *invoice)
gnc_numeric gncInvoiceGetTotal (GncInvoice *invoice)
gnc_numeric gncInvoiceGetTotalOf (GncInvoice *invoice, GncEntryPaymentType type)
gnc_numeric gncInvoiceGetTotalSubtotal (GncInvoice *invoice)
gnc_numeric gncInvoiceGetTotalTax (GncInvoice *invoice)
EntryListgncInvoiceGetEntries (GncInvoice *invoice)
TransactiongncInvoicePostToAccount (GncInvoice *invoice, Account *acc, Timespec *posted_date, Timespec *due_date, const char *memo, gboolean accumulatesplits)
gboolean gncInvoiceUnpost (GncInvoice *invoice, gboolean reset_tax_tables)
TransactiongncOwnerApplyPayment (GncOwner *owner, GncInvoice *invoice, Account *posted_acc, Account *xfer_acc, gnc_numeric amount, Timespec date, const char *memo, const char *num)
GncInvoicegncInvoiceGetInvoiceFromTxn (const Transaction *txn)
GncInvoicegncInvoiceGetInvoiceFromLot (GNCLot *lot)
void gncInvoiceBeginEdit (GncInvoice *invoice)
void gncInvoiceCommitEdit (GncInvoice *invoice)
int gncInvoiceCompare (const GncInvoice *a, const GncInvoice *b)
gboolean gncInvoiceIsPosted (const GncInvoice *invoice)
gboolean gncInvoiceIsPaid (const GncInvoice *invoice)
QofBookgncInvoiceGetBook (GncInvoice *x)
Create/Destroy Functions
GncInvoicegncInvoiceCreate (QofBook *book)
void gncInvoiceDestroy (GncInvoice *invoice)
Set Functions
void gncInvoiceSetID (GncInvoice *invoice, const char *id)
void gncInvoiceSetOwner (GncInvoice *invoice, GncOwner *owner)
void gncInvoiceSetDateOpened (GncInvoice *invoice, Timespec date)
void gncInvoiceSetDatePosted (GncInvoice *invoice, Timespec date)
void gncInvoiceSetTerms (GncInvoice *invoice, GncBillTerm *terms)
void gncInvoiceSetBillingID (GncInvoice *invoice, const char *billing_id)
void gncInvoiceSetNotes (GncInvoice *invoice, const char *notes)
void gncInvoiceSetCurrency (GncInvoice *invoice, gnc_commodity *currency)
void gncInvoiceSetActive (GncInvoice *invoice, gboolean active)
void gncInvoiceSetBillTo (GncInvoice *invoice, GncOwner *billto)
void gncInvoiceSetToChargeAmount (GncInvoice *invoice, gnc_numeric amount)
Get Functions
const char * gncInvoiceGetID (const GncInvoice *invoice)
GncOwnergncInvoiceGetOwner (GncInvoice *invoice)
Timespec gncInvoiceGetDateOpened (const GncInvoice *invoice)
Timespec gncInvoiceGetDatePosted (const GncInvoice *invoice)
Timespec gncInvoiceGetDateDue (const GncInvoice *invoice)
GncBillTermgncInvoiceGetTerms (const GncInvoice *invoice)
const char * gncInvoiceGetBillingID (const GncInvoice *invoice)
const char * gncInvoiceGetNotes (const GncInvoice *invoice)
const char * gncInvoiceGetType (GncInvoice *invoice)
gnc_commoditygncInvoiceGetCurrency (const GncInvoice *invoice)
GncOwnergncInvoiceGetBillTo (GncInvoice *invoice)
gnc_numeric gncInvoiceGetToChargeAmount (const GncInvoice *invoice)
gboolean gncInvoiceGetActive (const GncInvoice *invoice)
GNCLotgncInvoiceGetPostedLot (const GncInvoice *invoice)
TransactiongncInvoiceGetPostedTxn (const GncInvoice *invoice)
AccountgncInvoiceGetPostedAcc (const GncInvoice *invoice)


Generated on Fri Oct 10 05:06:48 2008 for GnuCash by  doxygen 1.5.2