|
GnuCash c935c2f+
|
An invoice holds a list of entries, a pointer to the customer, and the job, the dates entered and posted, as well as the account, transaction and lot for the posted invoice. More...
Files | |
| file | gncInvoice.h |
| Business Invoice Interface. | |
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_DOCLINK "doclink" |
| #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_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)) |
| deprecated functions | |
| #define | gncInvoiceRetGUID(x) (x ? *(qof_instance_get_guid (QOF_INSTANCE(x))) : *(guid_null())) |
Typedefs | |
| 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) |
| Call this function when adding an entry to a bill instead of an invoice. | |
| void | gncBillRemoveEntry (GncInvoice *bill, GncEntry *entry) |
| void | gncInvoiceSortEntries (GncInvoice *invoice) |
| Call this function when an Entry is changed and you want to re-sort the list of entries. | |
| void | gncInvoiceRemoveEntries (GncInvoice *invoice) |
| Remove all entries from an invoice. | |
| gnc_numeric | gncInvoiceGetTotal (GncInvoice *invoice) |
| Return the "total" amount of the invoice as seen on the document (and shown to the user in the reports and invoice ledger). | |
| gnc_numeric | gncInvoiceGetTotalOf (GncInvoice *invoice, GncEntryPaymentType type) |
| gnc_numeric | gncInvoiceGetTotalSubtotal (GncInvoice *invoice) |
| gnc_numeric | gncInvoiceGetTotalTax (GncInvoice *invoice) |
| AccountValueList * | gncInvoiceGetTotalTaxList (GncInvoice *invoice) |
| Return a list of tax totals accumulated per tax account. | |
| EntryList * | gncInvoiceGetEntries (GncInvoice *invoice) |
| GNCPrice * | gncInvoiceGetPrice (GncInvoice *invoice, gnc_commodity *commodity) |
| gboolean | gncInvoiceAmountPositive (const GncInvoice *invoice) |
| Depending on the invoice type, invoices have a different effect on the balance. | |
| GHashTable * | gncInvoiceGetForeignCurrencies (const GncInvoice *invoice) |
| Return an overview of amounts on this invoice that will be posted to accounts in currencies that are different from the invoice currency. | |
| Transaction * | gncInvoicePostToAccount (GncInvoice *invoice, Account *acc, time64 posted_date, time64 due_date, const char *memo, gboolean accumulatesplits, gboolean autopay) |
| Post this invoice to an account. | |
| gboolean | gncInvoiceUnpost (GncInvoice *invoice, gboolean reset_tax_tables) |
| Unpost this invoice. | |
| void | gncInvoiceAutoApplyPayments (GncInvoice *invoice) |
| Attempt to pay the invoice using open payment lots and lots for documents of the opposite sign (credit notes versus invoices). | |
| void | gncInvoiceApplyPayment (const GncInvoice *invoice, Transaction *txn, Account *xfer_acc, gnc_numeric amount, gnc_numeric exch, time64 date, const char *memo, const char *num) |
| A convenience function to apply a payment to an invoice. | |
| GncInvoice * | gncInvoiceGetInvoiceFromTxn (const Transaction *txn) |
| Given a transaction, find and return the Invoice. | |
| GncInvoice * | gncInvoiceGetInvoiceFromLot (GNCLot *lot) |
| Given a LOT, find and return the Invoice attached to the 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) |
| Test support function used by test-dbi-business-stuff.c. | |
Create/Destroy Functions | |
| GncInvoice * | gncInvoiceCreate (QofBook *book) |
| void | gncInvoiceDestroy (GncInvoice *invoice) |
| GncInvoice * | gncInvoiceCopy (const GncInvoice *other_invoice) |
| Create a new GncInvoice object as a deep copy of the given other invoice. | |
Set Functions | |
| void | gncInvoiceSetID (GncInvoice *invoice, const char *id) |
| void | gncInvoiceSetOwner (GncInvoice *invoice, GncOwner *owner) |
| void | gncInvoiceSetDateOpenedGDate (GncInvoice *invoice, const GDate *date) |
| Set the DateOpened using a GDate argument. | |
| void | gncInvoiceSetDateOpened (GncInvoice *invoice, time64 date) |
| void | gncInvoiceSetDatePosted (GncInvoice *invoice, time64 date) |
| void | gncInvoiceSetTerms (GncInvoice *invoice, GncBillTerm *terms) |
| void | gncInvoiceSetBillingID (GncInvoice *invoice, const char *billing_id) |
| void | gncInvoiceSetNotes (GncInvoice *invoice, const char *notes) |
| void | gncInvoiceSetDocLink (GncInvoice *invoice, const char *doclink) |
| 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) |
| time64 | gncInvoiceGetDateOpened (const GncInvoice *invoice) |
| time64 | gncInvoiceGetDatePosted (const GncInvoice *invoice) |
| time64 | gncInvoiceGetDateDue (const GncInvoice *invoice) |
| GncBillTerm * | gncInvoiceGetTerms (const GncInvoice *invoice) |
| const char * | gncInvoiceGetBillingID (const GncInvoice *invoice) |
| const char * | gncInvoiceGetNotes (const GncInvoice *invoice) |
| const char * | gncInvoiceGetDocLink (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) |
An invoice holds a list of entries, a pointer to the customer, and the job, the dates entered and posted, as well as the account, transaction and lot for the posted invoice.
| #define GNC_ID_INVOICE "gncInvoice" |
Definition at line 57 of file gncInvoice.h.
| #define GNC_INVOICE | ( | o | ) | (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_INVOICE, GncInvoice)) |
Definition at line 76 of file gncInvoice.h.
| #define GNC_INVOICE_CLASS | ( | k | ) | (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_INVOICE, GncInvoiceClass)) |
Definition at line 78 of file gncInvoice.h.
| #define GNC_INVOICE_GET_CLASS | ( | o | ) | (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_INVOICE, GncInvoiceClass)) |
Definition at line 84 of file gncInvoice.h.
| #define GNC_IS_INVOICE | ( | o | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_INVOICE)) |
Definition at line 80 of file gncInvoice.h.
| #define GNC_IS_INVOICE_CLASS | ( | k | ) | (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_INVOICE)) |
Definition at line 82 of file gncInvoice.h.
| #define GNC_TYPE_INVOICE (gnc_invoice_get_type ()) |
Definition at line 75 of file gncInvoice.h.
| #define gncInvoiceGetGUID | ( | x | ) | qof_instance_get_guid (QOF_INSTANCE(x)) |
deprecated functions
Definition at line 314 of file gncInvoice.h.
| #define gncInvoiceRetGUID | ( | x | ) | (x ? *(qof_instance_get_guid (QOF_INSTANCE(x))) : *(guid_null())) |
Definition at line 315 of file gncInvoice.h.
| #define INVOICE_ACC "account" |
Definition at line 299 of file gncInvoice.h.
| #define INVOICE_BILLINGID "billing_id" |
Definition at line 296 of file gncInvoice.h.
| #define INVOICE_BILLTO "bill-to" |
Definition at line 305 of file gncInvoice.h.
| #define INVOICE_DOCLINK "doclink" |
Definition at line 298 of file gncInvoice.h.
| #define INVOICE_DUE "date_due" |
Definition at line 292 of file gncInvoice.h.
| #define INVOICE_FROM_LOT "invoice-from-lot" |
Definition at line 308 of file gncInvoice.h.
| #define INVOICE_FROM_TXN "invoice-from-txn" |
Definition at line 309 of file gncInvoice.h.
| #define INVOICE_ID "id" |
Definition at line 288 of file gncInvoice.h.
| #define INVOICE_IS_CN "credit_note" |
Definition at line 302 of file gncInvoice.h.
| #define INVOICE_IS_PAID "is_paid?" |
Definition at line 294 of file gncInvoice.h.
| #define INVOICE_IS_POSTED "is_posted?" |
Definition at line 293 of file gncInvoice.h.
| #define INVOICE_JOB "invoice_job" |
Definition at line 306 of file gncInvoice.h.
| #define INVOICE_NOTES "notes" |
Definition at line 297 of file gncInvoice.h.
| #define INVOICE_OPENED "date_opened" |
Definition at line 290 of file gncInvoice.h.
| #define INVOICE_OWNER "owner" |
Definition at line 289 of file gncInvoice.h.
| #define INVOICE_POST_LOT "posted_lot" |
Definition at line 301 of file gncInvoice.h.
| #define INVOICE_POST_TXN "posted_txn" |
Definition at line 300 of file gncInvoice.h.
| #define INVOICE_POSTED "date_posted" |
Definition at line 291 of file gncInvoice.h.
| #define INVOICE_TERMS "terms" |
Definition at line 295 of file gncInvoice.h.
| #define INVOICE_TYPE "type" |
Definition at line 303 of file gncInvoice.h.
| #define INVOICE_TYPE_STRING "type_string" |
Definition at line 304 of file gncInvoice.h.
| typedef GList EntryList |
Definition at line 177 of file gncInvoice.h.
| typedef GList GncInvoiceList |
Definition at line 42 of file gncInvoice.h.
| enum GncInvoiceType |
Definition at line 59 of file gncInvoice.h.
| void gncBillAddEntry | ( | GncInvoice * | bill, |
| GncEntry * | entry | ||
| ) |
Call this function when adding an entry to a bill instead of an invoice.
Definition at line 719 of file gncInvoice.c.
| void gncBillRemoveEntry | ( | GncInvoice * | bill, |
| GncEntry * | entry | ||
| ) |
Definition at line 739 of file gncInvoice.c.
| void gncInvoiceAddEntry | ( | GncInvoice * | invoice, |
| GncEntry * | entry | ||
| ) |
Definition at line 661 of file gncInvoice.c.
| void gncInvoiceAddPrice | ( | GncInvoice * | invoice, |
| GNCPrice * | price | ||
| ) |
Definition at line 692 of file gncInvoice.c.
| gboolean gncInvoiceAmountPositive | ( | const GncInvoice * | invoice | ) |
Depending on the invoice type, invoices have a different effect on the balance.
Customer invoices increase the balance, while vendor bills decrease the balance. Credit notes have the opposite effect.
Returns TRUE if the invoice will increase the balance or FALSE otherwise.
Definition at line 1287 of file gncInvoice.c.
| void gncInvoiceApplyPayment | ( | const GncInvoice * | invoice, |
| Transaction * | txn, | ||
| Account * | xfer_acc, | ||
| gnc_numeric | amount, | ||
| gnc_numeric | exch, | ||
| time64 | date, | ||
| const char * | memo, | ||
| const char * | num | ||
| ) |
A convenience function to apply a payment to an invoice.
It creates a lot for a payment optionally based on an existing transaction and then tries to balance it with the given invoice. Contrary to gncOwnerApplyPayment, no other open documents or payments for the owner will be considered to balance the payment.
This code is actually a convenience wrapper around gncOwnerCreatePaymentLotSecs and gncOwnerAutoApplyPaymentsWithLots. See their descriptions for more details on what happens exactly.
Definition at line 1951 of file gncInvoice.c.
| void gncInvoiceAutoApplyPayments | ( | GncInvoice * | invoice | ) |
Attempt to pay the invoice using open payment lots and lots for documents of the opposite sign (credit notes versus invoices).
Definition at line 1907 of file gncInvoice.c.
| void gncInvoiceBeginEdit | ( | GncInvoice * | invoice | ) |
Definition at line 1996 of file gncInvoice.c.
| void gncInvoiceCommitEdit | ( | GncInvoice * | invoice | ) |
Definition at line 2015 of file gncInvoice.c.
| int gncInvoiceCompare | ( | const GncInvoice * | a, |
| const GncInvoice * | b | ||
| ) |
Definition at line 2022 of file gncInvoice.c.
| GncInvoice * gncInvoiceCopy | ( | const GncInvoice * | other_invoice | ) |
Create a new GncInvoice object as a deep copy of the given other invoice.
The returned new invoice has everything copied from the other invoice, including the ID string field. All GncEntries are newly allocated copies of the original invoice's entries.
Definition at line 336 of file gncInvoice.c.
| GncInvoice * gncInvoiceCreate | ( | QofBook * | book | ) |
Definition at line 313 of file gncInvoice.c.
| void gncInvoiceDestroy | ( | GncInvoice * | invoice | ) |
Definition at line 409 of file gncInvoice.c.
| gboolean gncInvoiceEqual | ( | const GncInvoice * | a, |
| const GncInvoice * | b | ||
| ) |
Test support function used by test-dbi-business-stuff.c.
Definition at line 2037 of file gncInvoice.c.
| gboolean gncInvoiceGetActive | ( | const GncInvoice * | invoice | ) |
Definition at line 1140 of file gncInvoice.c.
| const char * gncInvoiceGetBillingID | ( | const GncInvoice * | invoice | ) |
Definition at line 864 of file gncInvoice.c.
| GncOwner * gncInvoiceGetBillTo | ( | GncInvoice * | invoice | ) |
Definition at line 1116 of file gncInvoice.c.
| QofBook * gncInvoiceGetBook | ( | GncInvoice * | x | ) |
Definition at line 103 of file gncInvoice.c.
| gnc_commodity * gncInvoiceGetCurrency | ( | const GncInvoice * | invoice | ) |
Definition at line 1110 of file gncInvoice.c.
| time64 gncInvoiceGetDateDue | ( | const GncInvoice * | invoice | ) |
Definition at line 849 of file gncInvoice.c.
| time64 gncInvoiceGetDateOpened | ( | const GncInvoice * | invoice | ) |
Definition at line 837 of file gncInvoice.c.
| time64 gncInvoiceGetDatePosted | ( | const GncInvoice * | invoice | ) |
Definition at line 843 of file gncInvoice.c.
| const char * gncInvoiceGetDocLink | ( | const GncInvoice * | invoice | ) |
Definition at line 876 of file gncInvoice.c.
| EntryList * gncInvoiceGetEntries | ( | GncInvoice * | invoice | ) |
Definition at line 1164 of file gncInvoice.c.
| GHashTable * gncInvoiceGetForeignCurrencies | ( | const GncInvoice * | invoice | ) |
Return an overview of amounts on this invoice that will be posted to accounts in currencies that are different from the invoice currency.
These accounts can be the accounts referred to in invoice entries or tax tables. This information is returned in the from of a hash table. The keys in the hash table are the foreign currencies, the values are the accumulated amounts in that currency. Drop the reference to the hash table with g_hash_table_unref when no longer needed.
Definition at line 1308 of file gncInvoice.c.
| const char * gncInvoiceGetID | ( | const GncInvoice * | invoice | ) |
Definition at line 801 of file gncInvoice.c.
| GncInvoice * gncInvoiceGetInvoiceFromLot | ( | GNCLot * | lot | ) |
Given a LOT, find and return the Invoice attached to the lot.
Definition at line 1234 of file gncInvoice.c.
| GncInvoice * gncInvoiceGetInvoiceFromTxn | ( | const Transaction * | txn | ) |
Given a transaction, find and return the Invoice.
Definition at line 1272 of file gncInvoice.c.
| gboolean gncInvoiceGetIsCreditNote | ( | const GncInvoice * | invoice | ) |
Definition at line 1146 of file gncInvoice.c.
| const char * gncInvoiceGetNotes | ( | const GncInvoice * | invoice | ) |
Definition at line 870 of file gncInvoice.c.
| const GncOwner * gncInvoiceGetOwner | ( | const GncInvoice * | invoice | ) |
Definition at line 807 of file gncInvoice.c.
| GncOwnerType gncInvoiceGetOwnerType | ( | const GncInvoice * | invoice | ) |
Definition at line 888 of file gncInvoice.c.
| Account * gncInvoiceGetPostedAcc | ( | const GncInvoice * | invoice | ) |
Definition at line 1134 of file gncInvoice.c.
| GNCLot * gncInvoiceGetPostedLot | ( | const GncInvoice * | invoice | ) |
Definition at line 1122 of file gncInvoice.c.
| Transaction * gncInvoiceGetPostedTxn | ( | const GncInvoice * | invoice | ) |
Definition at line 1128 of file gncInvoice.c.
| GNCPrice * gncInvoiceGetPrice | ( | GncInvoice * | invoice, |
| gnc_commodity * | commodity | ||
| ) |
Definition at line 1170 of file gncInvoice.c.
| GncBillTerm * gncInvoiceGetTerms | ( | const GncInvoice * | invoice | ) |
Definition at line 858 of file gncInvoice.c.
| gnc_numeric gncInvoiceGetToChargeAmount | ( | const GncInvoice * | invoice | ) |
Definition at line 1158 of file gncInvoice.c.
| gnc_numeric gncInvoiceGetTotal | ( | GncInvoice * | invoice | ) |
Return the "total" amount of the invoice as seen on the document (and shown to the user in the reports and invoice ledger).
Definition at line 1008 of file gncInvoice.c.
| gnc_numeric gncInvoiceGetTotalOf | ( | GncInvoice * | invoice, |
| GncEntryPaymentType | type | ||
| ) |
Definition at line 1026 of file gncInvoice.c.
| gnc_numeric gncInvoiceGetTotalSubtotal | ( | GncInvoice * | invoice | ) |
Definition at line 1014 of file gncInvoice.c.
| gnc_numeric gncInvoiceGetTotalTax | ( | GncInvoice * | invoice | ) |
Definition at line 1020 of file gncInvoice.c.
| AccountValueList * gncInvoiceGetTotalTaxList | ( | GncInvoice * | invoice | ) |
Return a list of tax totals accumulated per tax account.
Definition at line 1032 of file gncInvoice.c.
| GncInvoiceType gncInvoiceGetType | ( | const GncInvoice * | invoice | ) |
Definition at line 1065 of file gncInvoice.c.
| GList * gncInvoiceGetTypeListForOwnerType | ( | const GncOwnerType | type | ) |
Definition at line 1041 of file gncInvoice.c.
| const char * gncInvoiceGetTypeString | ( | const GncInvoice * | invoice | ) |
Definition at line 1089 of file gncInvoice.c.
| gboolean gncInvoiceIsPaid | ( | const GncInvoice * | invoice | ) |
Definition at line 1987 of file gncInvoice.c.
| gboolean gncInvoiceIsPosted | ( | const GncInvoice * | invoice | ) |
Definition at line 1981 of file gncInvoice.c.
| Transaction * gncInvoicePostToAccount | ( | GncInvoice * | invoice, |
| Account * | acc, | ||
| time64 | posted_date, | ||
| time64 | due_date, | ||
| const char * | memo, | ||
| gboolean | accumulatesplits, | ||
| gboolean | autopay | ||
| ) |
Post this invoice to an account.
Returns the new Transaction that is tied to this invoice. The transaction is set with the supplied posted date, due date, and memo. The Transaction description is set to the name of the company.
If accumulate splits is TRUE, entries in the same account will be merged into one single split in that account. Otherwise each entry will be posted as a separate split, possibly resulting in multiple splits in one account.
If autopay is TRUE, the code will try to find pre-payments, invoices or credit notes that can reduce the amount due for this invoice, marking the invoice as fully or partially paid, depending on the amounts on all documents involved. If autopay is FALSE, it's the user's responsibility to explicitly pay the invoice.
Definition at line 1442 of file gncInvoice.c.
| void gncInvoiceRemoveEntries | ( | GncInvoice * | invoice | ) |
Remove all entries from an invoice.
To be called before destroying an invoice.
Definition at line 760 of file gncInvoice.c.
| void gncInvoiceRemoveEntry | ( | GncInvoice * | invoice, |
| GncEntry * | entry | ||
| ) |
Definition at line 681 of file gncInvoice.c.
| void gncInvoiceSetActive | ( | GncInvoice * | invoice, |
| gboolean | active | ||
| ) |
Definition at line 566 of file gncInvoice.c.
| void gncInvoiceSetBillingID | ( | GncInvoice * | invoice, |
| const char * | billing_id | ||
| ) |
Definition at line 528 of file gncInvoice.c.
| void gncInvoiceSetBillTo | ( | GncInvoice * | invoice, |
| GncOwner * | billto | ||
| ) |
Definition at line 607 of file gncInvoice.c.
| void gncInvoiceSetCurrency | ( | GncInvoice * | invoice, |
| gnc_commodity * | currency | ||
| ) |
Definition at line 595 of file gncInvoice.c.
| void gncInvoiceSetDateOpened | ( | GncInvoice * | invoice, |
| time64 | date | ||
| ) |
Definition at line 494 of file gncInvoice.c.
| void gncInvoiceSetDateOpenedGDate | ( | GncInvoice * | invoice, |
| const GDate * | date | ||
| ) |
Set the DateOpened using a GDate argument.
(Note: Internally this stores the date in a time64 as created through time64CanonicalDayTime()).
Definition at line 488 of file gncInvoice.c.
| void gncInvoiceSetDatePosted | ( | GncInvoice * | invoice, |
| time64 | date | ||
| ) |
Definition at line 504 of file gncInvoice.c.
| void gncInvoiceSetDocLink | ( | GncInvoice * | invoice, |
| const char * | doclink | ||
| ) |
Definition at line 544 of file gncInvoice.c.
| void gncInvoiceSetID | ( | GncInvoice * | invoice, |
| const char * | id | ||
| ) |
Definition at line 444 of file gncInvoice.c.
| void gncInvoiceSetIsCreditNote | ( | GncInvoice * | invoice, |
| gboolean | credit_note | ||
| ) |
Definition at line 576 of file gncInvoice.c.
| void gncInvoiceSetNotes | ( | GncInvoice * | invoice, |
| const char * | notes | ||
| ) |
Definition at line 536 of file gncInvoice.c.
| void gncInvoiceSetOwner | ( | GncInvoice * | invoice, |
| GncOwner * | owner | ||
| ) |
Definition at line 452 of file gncInvoice.c.
| void gncInvoiceSetTerms | ( | GncInvoice * | invoice, |
| GncBillTerm * | terms | ||
| ) |
Definition at line 514 of file gncInvoice.c.
| void gncInvoiceSetToChargeAmount | ( | GncInvoice * | invoice, |
| gnc_numeric | amount | ||
| ) |
Definition at line 618 of file gncInvoice.c.
| void gncInvoiceSortEntries | ( | GncInvoice * | invoice | ) |
Call this function when an Entry is changed and you want to re-sort the list of entries.
Definition at line 750 of file gncInvoice.c.
| gboolean gncInvoiceUnpost | ( | GncInvoice * | invoice, |
| gboolean | reset_tax_tables | ||
| ) |
Unpost this invoice.
This will destroy the posted transaction and return the invoice to its unposted state. It may leave empty lots out there. If reset_tax_tables is TRUE, then it will also revert all the Tax Tables to the parent, which will potentially change the total value of the invoice. It may also leave some orphaned Tax Table children.
Returns TRUE if successful, FALSE if there is a problem.
Definition at line 1736 of file gncInvoice.c.