GnuCash
2.6.99
|
Business Invoice Interface. More...
#include <glib.h>
#include "gncBillTerm.h"
#include "gncEntry.h"
#include "gncOwner.h"
#include "gnc-lot.h"
#include "qofbook.h"
#include "gnc-pricedb.h"
Go to the source code of this file.
Macros | |
#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 | 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_IS_CN "credit_note" |
#define | INVOICE_TYPE "type" |
#define | INVOICE_TYPE_STRING "type_string" |
#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())) |
Typedefs | |
typedef struct _gncInvoice | GncInvoice |
typedef struct _gncInvoiceClass | GncInvoiceClass |
typedef GList | GncInvoiceList |
typedef GList | EntryList |
Functions | |
GType | gnc_invoice_get_type (void) |
void | gncInvoiceAddEntry (GncInvoice *invoice, GncEntry *entry) |
void | gncInvoiceRemoveEntry (GncInvoice *invoice, GncEntry *entry) |
void | gncInvoiceAddPrice (GncInvoice *invoice, GNCPrice *price) |
void | gncBillAddEntry (GncInvoice *bill, GncEntry *entry) |
void | gncBillRemoveEntry (GncInvoice *bill, GncEntry *entry) |
void | gncInvoiceSortEntries (GncInvoice *invoice) |
void | gncInvoiceRemoveEntries (GncInvoice *invoice) |
gnc_numeric | gncInvoiceGetTotal (GncInvoice *invoice) |
gnc_numeric | gncInvoiceGetTotalOf (GncInvoice *invoice, GncEntryPaymentType type) |
gnc_numeric | gncInvoiceGetTotalSubtotal (GncInvoice *invoice) |
gnc_numeric | gncInvoiceGetTotalTax (GncInvoice *invoice) |
EntryList * | gncInvoiceGetEntries (GncInvoice *invoice) |
GNCPrice * | gncInvoiceGetPrice (GncInvoice *invoice, gnc_commodity *commodity) |
gboolean | gncInvoiceAmountPositive (const GncInvoice *invoice) |
GHashTable * | gncInvoiceGetForeignCurrencies (const GncInvoice *invoice) |
Transaction * | gncInvoicePostToAccount (GncInvoice *invoice, Account *acc, Timespec *posted_date, Timespec *due_date, const char *memo, gboolean accumulatesplits, gboolean autopay) |
gboolean | gncInvoiceUnpost (GncInvoice *invoice, gboolean reset_tax_tables) |
void | gncInvoiceAutoApplyPayments (GncInvoice *invoice) |
void | gncInvoiceApplyPayment (const GncInvoice *invoice, Transaction *txn, Account *xfer_acc, gnc_numeric amount, gnc_numeric exch, Timespec date, const char *memo, const char *num) |
GncInvoice * | gncInvoiceGetInvoiceFromTxn (const Transaction *txn) |
GncInvoice * | gncInvoiceGetInvoiceFromLot (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) |
QofBook * | gncInvoiceGetBook (GncInvoice *x) |
gboolean | gncInvoiceEqual (const GncInvoice *a, const GncInvoice *b) |
Create/Destroy Functions | |
GncInvoice * | gncInvoiceCreate (QofBook *book) |
void | gncInvoiceDestroy (GncInvoice *invoice) |
GncInvoice * | gncInvoiceCopy (const GncInvoice *other_invoice) |
Set Functions | |
void | gncInvoiceSetID (GncInvoice *invoice, const char *id) |
void | gncInvoiceSetOwner (GncInvoice *invoice, GncOwner *owner) |
void | gncInvoiceSetDateOpenedGDate (GncInvoice *invoice, const GDate *date) |
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 | gncInvoiceSetIsCreditNote (GncInvoice *invoice, gboolean credit_note) |
void | gncInvoiceSetBillTo (GncInvoice *invoice, GncOwner *billto) |
void | gncInvoiceSetToChargeAmount (GncInvoice *invoice, gnc_numeric amount) |
Get Functions | |
const char * | gncInvoiceGetID (const GncInvoice *invoice) |
const GncOwner * | gncInvoiceGetOwner (const GncInvoice *invoice) |
Timespec | gncInvoiceGetDateOpened (const GncInvoice *invoice) |
Timespec | gncInvoiceGetDatePosted (const GncInvoice *invoice) |
Timespec | gncInvoiceGetDateDue (const GncInvoice *invoice) |
GncBillTerm * | gncInvoiceGetTerms (const GncInvoice *invoice) |
const char * | gncInvoiceGetBillingID (const GncInvoice *invoice) |
const char * | gncInvoiceGetNotes (const GncInvoice *invoice) |
GncOwnerType | gncInvoiceGetOwnerType (const GncInvoice *invoice) |
GList * | gncInvoiceGetTypeListForOwnerType (const GncOwnerType type) |
GncInvoiceType | gncInvoiceGetType (const GncInvoice *invoice) |
const char * | gncInvoiceGetTypeString (const GncInvoice *invoice) |
gnc_commodity * | gncInvoiceGetCurrency (const GncInvoice *invoice) |
GncOwner * | gncInvoiceGetBillTo (GncInvoice *invoice) |
gnc_numeric | gncInvoiceGetToChargeAmount (const GncInvoice *invoice) |
gboolean | gncInvoiceGetActive (const GncInvoice *invoice) |
gboolean | gncInvoiceGetIsCreditNote (const GncInvoice *invoice) |
GNCLot * | gncInvoiceGetPostedLot (const GncInvoice *invoice) |
Transaction * | gncInvoiceGetPostedTxn (const GncInvoice *invoice) |
Account * | gncInvoiceGetPostedAcc (const GncInvoice *invoice) |
Business Invoice Interface.
Definition in file gncInvoice.h.