|
GnuCash c935c2f+
|
Files | |
| file | gncEntry.h |
| Business Entry Interface. | |
Macros | |
| #define | GNC_ID_ENTRY "gncEntry" |
| #define | GNC_TYPE_ENTRY (gnc_entry_get_type ()) |
| #define | GNC_ENTRY(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_ENTRY, GncEntry)) |
| #define | GNC_ENTRY_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_ENTRY, GncEntryClass)) |
| #define | GNC_IS_ENTRY(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_ENTRY)) |
| #define | GNC_IS_ENTRY_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_ENTRY)) |
| #define | GNC_ENTRY_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_ENTRY, GncEntryClass)) |
| #define | ENTRY_DATE "date" |
| #define | ENTRY_DATE_ENTERED "date-entered" |
| #define | ENTRY_DESC "desc" |
| #define | ENTRY_ACTION "action" |
| #define | ENTRY_NOTES "notes" |
| #define | ENTRY_QTY "qty" |
| #define | ENTRY_IPRICE "iprice" |
| #define | ENTRY_IACCT "invoice-account" |
| #define | ENTRY_BACCT "bill-account" |
| #define | ENTRY_BPRICE "bprice" |
| #define | ENTRY_BILLABLE "billable?" |
| #define | ENTRY_BILLTO "bill-to" |
| #define | ENTRY_ORDER "order" |
| #define | ENTRY_INVOICE "invoice" |
| #define | ENTRY_BILL "bill" |
| #define | ENTRY_INV_DISC_TYPE "discount-type" |
| #define | ENTRY_INV_DISC_HOW "discount-method" |
| #define | ENTRY_INV_TAXABLE "invoice-taxable" |
| #define | ENTRY_BILL_TAXABLE "bill-taxable" |
| #define | ENTRY_INV_TAX_INC "invoice-tax-included" |
| #define | ENTRY_BILL_TAX_INC "bill-tax-included" |
| #define | ENTRY_INV_DISCOUNT "invoice-discount" |
| #define | ENTRY_BILL_PAY_TYPE "bill-payment-type" |
| #define | gncEntryGetGUID(x) qof_instance_get_guid(QOF_INSTANCE(x)) |
Typedefs | |
| typedef GList | AccountValueList |
Enumerations | |
| enum | GncEntryPaymentType { GNC_PAYMENT_CASH = 1 , GNC_PAYMENT_CARD } |
| enum | GncDiscountHow { GNC_DISC_PRETAX = 1 , GNC_DISC_SAMETIME , GNC_DISC_POSTTAX } |
Functions | |
| GType | gnc_entry_get_type (void) |
| const char * | gncEntryDiscountHowToString (GncDiscountHow how) |
| How to apply the discount and taxes. | |
| gboolean | gncEntryDiscountStringToHow (const char *str, GncDiscountHow *how) |
| const char * | gncEntryPaymentTypeToString (GncEntryPaymentType type) |
| gboolean | gncEntryPaymentStringToType (const char *str, GncEntryPaymentType *type) |
| void | gncEntryCopy (const GncEntry *src, GncEntry *dest, gboolean add_entry) |
| GncOrder * | gncEntryGetOrder (const GncEntry *entry) |
| GncInvoice * | gncEntryGetInvoice (const GncEntry *entry) |
| GncInvoice * | gncEntryGetBill (const GncEntry *entry) |
| gboolean | gncEntryIsOpen (const GncEntry *entry) |
| void | gncEntryBeginEdit (GncEntry *entry) |
| void | gncEntryCommitEdit (GncEntry *entry) |
| int | gncEntryCompare (const GncEntry *a, const GncEntry *b) |
Create/Destroy Functions | |
| GncEntry * | gncEntryCreate (QofBook *book) |
| void | gncEntryDestroy (GncEntry *entry) |
Generic (shared) data | |
| void | gncEntrySetDateGDate (GncEntry *entry, const GDate *date) |
| Set the date of this entry. | |
| void | gncEntrySetDate (GncEntry *entry, time64 date) |
| DEPRECATED - use gncEntrySetDateGDate() instead! (Because the time-of-day is a misleading extra information. | |
| void | gncEntrySetDateEntered (GncEntry *entry, time64 date) |
| void | gncEntrySetDescription (GncEntry *entry, const char *desc) |
| void | gncEntrySetAction (GncEntry *entry, const char *action) |
| void | gncEntrySetNotes (GncEntry *entry, const char *notes) |
| void | gncEntrySetQuantity (GncEntry *entry, gnc_numeric quantity) |
| Set the internal quantity without any conversion. | |
| void | gncEntrySetDocQuantity (GncEntry *entry, gnc_numeric quantity, gboolean is_cn) |
| Set the internal quantity converting from the quantity as visible on the physical document. | |
| GDate | gncEntryGetDateGDate (const GncEntry *entry) |
| Returns the day of this entry. | |
| time64 | gncEntryGetDate (const GncEntry *entry) |
| DEPRECATED - use gncEntryGetDateGDate() instead! (Because the time-of-day is a misleading extra information. | |
| time64 | gncEntryGetDateEntered (const GncEntry *entry) |
| const char * | gncEntryGetDescription (const GncEntry *entry) |
| const char * | gncEntryGetAction (const GncEntry *entry) |
| const char * | gncEntryGetNotes (const GncEntry *notes) |
| gnc_numeric | gncEntryGetQuantity (const GncEntry *entry) |
| Get the quantity as stored internally. | |
| gnc_numeric | gncEntryGetDocQuantity (const GncEntry *entry, gboolean is_cn) |
| Get the quantity as on the physical document. | |
Customer Invoices | |
| void | gncEntrySetInvAccount (GncEntry *entry, Account *acc) |
| void | gncEntrySetInvPrice (GncEntry *entry, gnc_numeric price) |
| void | gncEntrySetInvTaxable (GncEntry *entry, gboolean taxable) |
| void | gncEntrySetInvTaxIncluded (GncEntry *entry, gboolean tax_included) |
| void | gncEntrySetInvTaxTable (GncEntry *entry, GncTaxTable *table) |
| void | gncEntrySetInvDiscount (GncEntry *entry, gnc_numeric discount) |
| void | gncEntrySetInvDiscountType (GncEntry *entry, GncAmountType type) |
| void | gncEntrySetInvDiscountHow (GncEntry *entry, GncDiscountHow how) |
| void | qofEntrySetInvDiscType (GncEntry *entry, const char *type) |
| void | qofEntrySetInvDiscHow (GncEntry *entry, const char *type) |
| Account * | gncEntryGetInvAccount (const GncEntry *entry) |
| gnc_numeric | gncEntryGetInvPrice (const GncEntry *entry) |
| gnc_numeric | gncEntryGetPrice (const GncEntry *entry, const gboolean cust_doc, const gboolean net) |
| gnc_numeric | gncEntryGetInvDiscount (const GncEntry *entry) |
| GncAmountType | gncEntryGetInvDiscountType (const GncEntry *entry) |
| GncDiscountHow | gncEntryGetInvDiscountHow (const GncEntry *entry) |
| char * | qofEntryGetInvDiscType (const GncEntry *entry) |
| char * | qofEntryGetInvDiscHow (const GncEntry *entry) |
| gboolean | gncEntryGetInvTaxable (const GncEntry *entry) |
| gboolean | gncEntryGetInvTaxIncluded (const GncEntry *entry) |
| GncTaxTable * | gncEntryGetInvTaxTable (const GncEntry *entry) |
Vendor Bills (and Employee Expenses) | |
| void | gncEntrySetBillAccount (GncEntry *entry, Account *acc) |
| void | gncEntrySetBillPrice (GncEntry *entry, gnc_numeric price) |
| void | gncEntrySetBillTaxable (GncEntry *entry, gboolean taxable) |
| void | gncEntrySetBillTaxIncluded (GncEntry *entry, gboolean tax_included) |
| void | gncEntrySetBillTaxTable (GncEntry *entry, GncTaxTable *table) |
| void | gncEntrySetBillable (GncEntry *entry, gboolean billable) |
| void | gncEntrySetBillTo (GncEntry *entry, GncOwner *billto) |
| Account * | gncEntryGetBillAccount (const GncEntry *entry) |
| gnc_numeric | gncEntryGetBillPrice (const GncEntry *entry) |
| gboolean | gncEntryGetBillTaxable (const GncEntry *entry) |
| gboolean | gncEntryGetBillTaxIncluded (const GncEntry *entry) |
| GncTaxTable * | gncEntryGetBillTaxTable (const GncEntry *entry) |
| gboolean | gncEntryGetBillable (const GncEntry *entry) |
| GncOwner * | gncEntryGetBillTo (GncEntry *entry) |
| GncEntryPaymentType | gncEntryGetBillPayment (const GncEntry *entry) |
employee-stuff | |
| void | gncEntrySetBillPayment (GncEntry *entry, GncEntryPaymentType type) |
Getting Values | |
An entry has three important values:
These values can be retrieved in several variants. Depending on how they will be used some sign reversals can be applied on the values:
For tax there are TaxValue and TaxValues variants: the first one returns to total tax value for this entry, meaning the sum of all individual taxes. The second one returns a list of all the individual tax values for this entry. This list holds unrounded values only, there's no variant with rounded values. Note that this list is not owned by the entry. When no longer needed, it should be freed with gncAccountValueDestroy. Finally, there are rounded and unrounded variants of most of these functions. | |
| gnc_numeric | gncEntryGetDocValue (GncEntry *entry, gboolean round, gboolean is_cust_doc, gboolean is_cn) |
| gnc_numeric | gncEntryGetDocTaxValue (GncEntry *entry, gboolean round, gboolean is_cust_doc, gboolean is_cn) |
| AccountValueList * | gncEntryGetDocTaxValues (GncEntry *entry, gboolean is_cust_doc, gboolean is_cn) |
| Careful: the returned list is NOT owned by the entry and should be freed by the caller. | |
| gnc_numeric | gncEntryGetDocDiscountValue (GncEntry *entry, gboolean round, gboolean is_cust_doc, gboolean is_cn) |
| gnc_numeric | gncEntryGetBalValue (GncEntry *entry, gboolean round, gboolean is_cust_doc) |
| gnc_numeric | gncEntryGetBalTaxValue (GncEntry *entry, gboolean round, gboolean is_cust_doc) |
| AccountValueList * | gncEntryGetBalTaxValues (GncEntry *entry, gboolean is_cust_doc) |
| Careful: the returned list is NOT owned by the entry and should be freed by the caller. | |
| gnc_numeric | gncEntryGetBalDiscountValue (GncEntry *entry, gboolean round, gboolean is_cust_doc) |
| void | gncEntryComputeValue (gnc_numeric qty, gnc_numeric price, const GncTaxTable *tax_table, gboolean tax_included, gnc_numeric discount, GncAmountType discount_type, GncDiscountHow discount_how, int SCU, gnc_numeric *value, gnc_numeric *discount_value, GList **tax_values) |
| Compute the Entry value, tax_value, and discount_value, based on the quantity, price, discount, tax_-table, and types. | |
| #define ENTRY_ACTION "action" |
Definition at line 307 of file gncEntry.h.
| #define ENTRY_BACCT "bill-account" |
Definition at line 313 of file gncEntry.h.
| #define ENTRY_BILL "bill" |
Definition at line 320 of file gncEntry.h.
| #define ENTRY_BILL_PAY_TYPE "bill-payment-type" |
Definition at line 330 of file gncEntry.h.
| #define ENTRY_BILL_TAX_INC "bill-tax-included" |
Definition at line 328 of file gncEntry.h.
| #define ENTRY_BILL_TAXABLE "bill-taxable" |
Definition at line 326 of file gncEntry.h.
| #define ENTRY_BILLABLE "billable?" |
Definition at line 315 of file gncEntry.h.
| #define ENTRY_BILLTO "bill-to" |
Definition at line 316 of file gncEntry.h.
| #define ENTRY_BPRICE "bprice" |
Definition at line 314 of file gncEntry.h.
| #define ENTRY_DATE "date" |
Definition at line 304 of file gncEntry.h.
| #define ENTRY_DATE_ENTERED "date-entered" |
Definition at line 305 of file gncEntry.h.
| #define ENTRY_DESC "desc" |
Definition at line 306 of file gncEntry.h.
| #define ENTRY_IACCT "invoice-account" |
Definition at line 312 of file gncEntry.h.
| #define ENTRY_INV_DISC_HOW "discount-method" |
Definition at line 323 of file gncEntry.h.
| #define ENTRY_INV_DISC_TYPE "discount-type" |
Definition at line 322 of file gncEntry.h.
| #define ENTRY_INV_DISCOUNT "invoice-discount" |
Definition at line 329 of file gncEntry.h.
| #define ENTRY_INV_TAX_INC "invoice-tax-included" |
Definition at line 327 of file gncEntry.h.
| #define ENTRY_INV_TAXABLE "invoice-taxable" |
Definition at line 325 of file gncEntry.h.
| #define ENTRY_INVOICE "invoice" |
Definition at line 319 of file gncEntry.h.
| #define ENTRY_IPRICE "iprice" |
Definition at line 311 of file gncEntry.h.
| #define ENTRY_NOTES "notes" |
Definition at line 308 of file gncEntry.h.
| #define ENTRY_ORDER "order" |
Definition at line 318 of file gncEntry.h.
| #define ENTRY_QTY "qty" |
Definition at line 309 of file gncEntry.h.
| #define GNC_ENTRY | ( | o | ) | (G_TYPE_CHECK_INSTANCE_CAST ((o), GNC_TYPE_ENTRY, GncEntry)) |
Definition at line 68 of file gncEntry.h.
| #define GNC_ENTRY_CLASS | ( | k | ) | (G_TYPE_CHECK_CLASS_CAST((k), GNC_TYPE_ENTRY, GncEntryClass)) |
Definition at line 70 of file gncEntry.h.
| #define GNC_ENTRY_GET_CLASS | ( | o | ) | (G_TYPE_INSTANCE_GET_CLASS ((o), GNC_TYPE_ENTRY, GncEntryClass)) |
Definition at line 76 of file gncEntry.h.
| #define GNC_ID_ENTRY "gncEntry" |
Definition at line 64 of file gncEntry.h.
| #define GNC_IS_ENTRY | ( | o | ) | (G_TYPE_CHECK_INSTANCE_TYPE ((o), GNC_TYPE_ENTRY)) |
Definition at line 72 of file gncEntry.h.
| #define GNC_IS_ENTRY_CLASS | ( | k | ) | (G_TYPE_CHECK_CLASS_TYPE ((k), GNC_TYPE_ENTRY)) |
Definition at line 74 of file gncEntry.h.
| #define GNC_TYPE_ENTRY (gnc_entry_get_type ()) |
Definition at line 67 of file gncEntry.h.
| #define gncEntryGetGUID | ( | x | ) | qof_instance_get_guid(QOF_INSTANCE(x)) |
Definition at line 334 of file gncEntry.h.
| typedef GList AccountValueList |
Definition at line 56 of file gncEntry.h.
| enum GncDiscountHow |
Definition at line 49 of file gncEntry.h.
| enum GncEntryPaymentType |
Definition at line 43 of file gncEntry.h.
| void gncEntryBeginEdit | ( | GncEntry * | entry | ) |
Definition at line 1616 of file gncEntry.c.
| void gncEntryCommitEdit | ( | GncEntry * | entry | ) |
Definition at line 1635 of file gncEntry.c.
| int gncEntryCompare | ( | const GncEntry * | a, |
| const GncEntry * | b | ||
| ) |
Definition at line 1647 of file gncEntry.c.
| void gncEntryComputeValue | ( | gnc_numeric | qty, |
| gnc_numeric | price, | ||
| const GncTaxTable * | tax_table, | ||
| gboolean | tax_included, | ||
| gnc_numeric | discount, | ||
| GncAmountType | discount_type, | ||
| GncDiscountHow | discount_how, | ||
| int | SCU, | ||
| gnc_numeric * | value, | ||
| gnc_numeric * | discount_value, | ||
| GList ** | tax_values | ||
| ) |
Compute the Entry value, tax_value, and discount_value, based on the quantity, price, discount, tax_-table, and types.
The value is the amount the merchant gets, the taxes are what the gov't gets, and the discount is how much the customer saved. The SCU is the target denominator of the value and tax – it should be the account or commodity SCU of the target.
The return values are NOT rounded.
If the tax_values list is owned by the entry, it will be destroyed automatically. Otherwise use gncAccountValueDestroy to free it.
| void gncEntryCopy | ( | const GncEntry * | src, |
| GncEntry * | dest, | ||
| gboolean | add_entry | ||
| ) |
Definition at line 859 of file gncEntry.c.
| GncEntry * gncEntryCreate | ( | QofBook * | book | ) |
Definition at line 413 of file gncEntry.c.
| void gncEntryDestroy | ( | GncEntry * | entry | ) |
Definition at line 446 of file gncEntry.c.
| const char * gncEntryDiscountHowToString | ( | GncDiscountHow | how | ) |
How to apply the discount and taxes.
There are three distinct ways to apply them:
Type: discount tax PRETAX pretax pretax-discount SAMETIME pretax pretax POSTTAX pretax+tax pretax
Definition at line 113 of file gncEntry.c.
| gboolean gncEntryDiscountStringToHow | ( | const char * | str, |
| GncDiscountHow * | how | ||
| ) |
Definition at line 132 of file gncEntry.c.
| const char * gncEntryGetAction | ( | const GncEntry * | entry | ) |
Definition at line 934 of file gncEntry.c.
| gnc_numeric gncEntryGetBalDiscountValue | ( | GncEntry * | entry, |
| gboolean | round, | ||
| gboolean | is_cust_doc | ||
| ) |
Definition at line 1601 of file gncEntry.c.
| gnc_numeric gncEntryGetBalTaxValue | ( | GncEntry * | entry, |
| gboolean | round, | ||
| gboolean | is_cust_doc | ||
| ) |
Definition at line 1577 of file gncEntry.c.
| AccountValueList * gncEntryGetBalTaxValues | ( | GncEntry * | entry, |
| gboolean | is_cust_doc | ||
| ) |
Careful: the returned list is NOT owned by the entry and should be freed by the caller.
Definition at line 1584 of file gncEntry.c.
| gnc_numeric gncEntryGetBalValue | ( | GncEntry * | entry, |
| gboolean | round, | ||
| gboolean | is_cust_doc | ||
| ) |
Definition at line 1571 of file gncEntry.c.
| GncInvoice * gncEntryGetBill | ( | const GncEntry * | entry | ) |
Definition at line 1082 of file gncEntry.c.
| gboolean gncEntryGetBillable | ( | const GncEntry * | entry | ) |
Definition at line 1058 of file gncEntry.c.
| Account * gncEntryGetBillAccount | ( | const GncEntry * | entry | ) |
Definition at line 1028 of file gncEntry.c.
| GncEntryPaymentType gncEntryGetBillPayment | ( | const GncEntry * | entry | ) |
Definition at line 1070 of file gncEntry.c.
| gnc_numeric gncEntryGetBillPrice | ( | const GncEntry * | entry | ) |
Definition at line 1034 of file gncEntry.c.
| gboolean gncEntryGetBillTaxable | ( | const GncEntry * | entry | ) |
Definition at line 1040 of file gncEntry.c.
| gboolean gncEntryGetBillTaxIncluded | ( | const GncEntry * | entry | ) |
Definition at line 1046 of file gncEntry.c.
| GncTaxTable * gncEntryGetBillTaxTable | ( | const GncEntry * | entry | ) |
Definition at line 1052 of file gncEntry.c.
| GncOwner * gncEntryGetBillTo | ( | GncEntry * | entry | ) |
Definition at line 1064 of file gncEntry.c.
| time64 gncEntryGetDate | ( | const GncEntry * | entry | ) |
DEPRECATED - use gncEntryGetDateGDate() instead! (Because the time-of-day is a misleading extra information.
We are only dealing with the day information!
Definition at line 913 of file gncEntry.c.
| time64 gncEntryGetDateEntered | ( | const GncEntry * | entry | ) |
Definition at line 923 of file gncEntry.c.
| GDate gncEntryGetDateGDate | ( | const GncEntry * | entry | ) |
Returns the day of this entry.
Definition at line 918 of file gncEntry.c.
| const char * gncEntryGetDescription | ( | const GncEntry * | entry | ) |
Definition at line 928 of file gncEntry.c.
| gnc_numeric gncEntryGetDocDiscountValue | ( | GncEntry * | entry, |
| gboolean | round, | ||
| gboolean | is_cust_doc, | ||
| gboolean | is_cn | ||
| ) |
Definition at line 1565 of file gncEntry.c.
| gnc_numeric gncEntryGetDocQuantity | ( | const GncEntry * | entry, |
| gboolean | is_cn | ||
| ) |
Get the quantity as on the physical document.
This distinction is made because credit notes store their quantity sign-reversed compared to how the quantity is written on the actual credit note (and hence how the ledger and reports show it to the user).
Definition at line 952 of file gncEntry.c.
| gnc_numeric gncEntryGetDocTaxValue | ( | GncEntry * | entry, |
| gboolean | round, | ||
| gboolean | is_cust_doc, | ||
| gboolean | is_cn | ||
| ) |
Definition at line 1541 of file gncEntry.c.
| AccountValueList * gncEntryGetDocTaxValues | ( | GncEntry * | entry, |
| gboolean | is_cust_doc, | ||
| gboolean | is_cn | ||
| ) |
Careful: the returned list is NOT owned by the entry and should be freed by the caller.
Definition at line 1548 of file gncEntry.c.
| gnc_numeric gncEntryGetDocValue | ( | GncEntry * | entry, |
| gboolean | round, | ||
| gboolean | is_cust_doc, | ||
| gboolean | is_cn | ||
| ) |
Definition at line 1535 of file gncEntry.c.
| Account * gncEntryGetInvAccount | ( | const GncEntry * | entry | ) |
Definition at line 960 of file gncEntry.c.
| gnc_numeric gncEntryGetInvDiscount | ( | const GncEntry * | entry | ) |
Definition at line 972 of file gncEntry.c.
| GncDiscountHow gncEntryGetInvDiscountHow | ( | const GncEntry * | entry | ) |
Definition at line 984 of file gncEntry.c.
| GncAmountType gncEntryGetInvDiscountType | ( | const GncEntry * | entry | ) |
Definition at line 978 of file gncEntry.c.
| GncInvoice * gncEntryGetInvoice | ( | const GncEntry * | entry | ) |
Definition at line 1076 of file gncEntry.c.
| gnc_numeric gncEntryGetInvPrice | ( | const GncEntry * | entry | ) |
Definition at line 966 of file gncEntry.c.
| gboolean gncEntryGetInvTaxable | ( | const GncEntry * | entry | ) |
Definition at line 1008 of file gncEntry.c.
| gboolean gncEntryGetInvTaxIncluded | ( | const GncEntry * | entry | ) |
Definition at line 1014 of file gncEntry.c.
| GncTaxTable * gncEntryGetInvTaxTable | ( | const GncEntry * | entry | ) |
Definition at line 1020 of file gncEntry.c.
| const char * gncEntryGetNotes | ( | const GncEntry * | notes | ) |
Definition at line 940 of file gncEntry.c.
| GncOrder * gncEntryGetOrder | ( | const GncEntry * | entry | ) |
Definition at line 1088 of file gncEntry.c.
| gnc_numeric gncEntryGetPrice | ( | const GncEntry * | entry, |
| const gboolean | cust_doc, | ||
| const gboolean | net | ||
| ) |
Definition at line 1502 of file gncEntry.c.
| gnc_numeric gncEntryGetQuantity | ( | const GncEntry * | entry | ) |
Get the quantity as stored internally.
This distinction is made because credit notes store their quantity sign-reversed compared to how the quantity is written on the actual credit note (and hence how the ledger and reports show it to the user).
Definition at line 946 of file gncEntry.c.
| gboolean gncEntryIsOpen | ( | const GncEntry * | entry | ) |
Definition at line 1608 of file gncEntry.c.
| gboolean gncEntryPaymentStringToType | ( | const char * | str, |
| GncEntryPaymentType * | type | ||
| ) |
Definition at line 174 of file gncEntry.c.
| const char * gncEntryPaymentTypeToString | ( | GncEntryPaymentType | type | ) |
Definition at line 157 of file gncEntry.c.
| void gncEntrySetAction | ( | GncEntry * | entry, |
| const char * | action | ||
| ) |
Definition at line 535 of file gncEntry.c.
| void gncEntrySetBillable | ( | GncEntry * | entry, |
| gboolean | billable | ||
| ) |
Definition at line 793 of file gncEntry.c.
| void gncEntrySetBillAccount | ( | GncEntry * | entry, |
| Account * | acc | ||
| ) |
Definition at line 717 of file gncEntry.c.
| void gncEntrySetBillPayment | ( | GncEntry * | entry, |
| GncEntryPaymentType | type | ||
| ) |
Definition at line 815 of file gncEntry.c.
| void gncEntrySetBillPrice | ( | GncEntry * | entry, |
| gnc_numeric | price | ||
| ) |
Definition at line 727 of file gncEntry.c.
| void gncEntrySetBillTaxable | ( | GncEntry * | entry, |
| gboolean | taxable | ||
| ) |
Definition at line 738 of file gncEntry.c.
| void gncEntrySetBillTaxIncluded | ( | GncEntry * | entry, |
| gboolean | tax_included | ||
| ) |
Definition at line 755 of file gncEntry.c.
| void gncEntrySetBillTaxTable | ( | GncEntry * | entry, |
| GncTaxTable * | table | ||
| ) |
Definition at line 772 of file gncEntry.c.
| void gncEntrySetBillTo | ( | GncEntry * | entry, |
| GncOwner * | billto | ||
| ) |
Definition at line 804 of file gncEntry.c.
| void gncEntrySetDate | ( | GncEntry * | entry, |
| time64 | date | ||
| ) |
DEPRECATED - use gncEntrySetDateGDate() instead! (Because the time-of-day is a misleading extra information.
We are only dealing with the day information!
Definition at line 482 of file gncEntry.c.
| void gncEntrySetDateEntered | ( | GncEntry * | entry, |
| time64 | date | ||
| ) |
Definition at line 517 of file gncEntry.c.
| void gncEntrySetDateGDate | ( | GncEntry * | entry, |
| const GDate * | date | ||
| ) |
Set the date of this entry.
Definition at line 504 of file gncEntry.c.
| void gncEntrySetDescription | ( | GncEntry * | entry, |
| const char * | desc | ||
| ) |
Definition at line 527 of file gncEntry.c.
| void gncEntrySetDocQuantity | ( | GncEntry * | entry, |
| gnc_numeric | quantity, | ||
| gboolean | is_cn | ||
| ) |
Set the internal quantity converting from the quantity as visible on the physical document.
This distinction is made because credit notes store their quantity sign-reversed compared to how the quantity is written on the actual credit note (and hence how the ledger and reports show it to the user).
Definition at line 562 of file gncEntry.c.
| void gncEntrySetInvAccount | ( | GncEntry * | entry, |
| Account * | acc | ||
| ) |
Definition at line 575 of file gncEntry.c.
| void gncEntrySetInvDiscount | ( | GncEntry * | entry, |
| gnc_numeric | discount | ||
| ) |
Definition at line 651 of file gncEntry.c.
| void gncEntrySetInvDiscountHow | ( | GncEntry * | entry, |
| GncDiscountHow | how | ||
| ) |
Definition at line 674 of file gncEntry.c.
| void gncEntrySetInvDiscountType | ( | GncEntry * | entry, |
| GncAmountType | type | ||
| ) |
Definition at line 662 of file gncEntry.c.
| void gncEntrySetInvPrice | ( | GncEntry * | entry, |
| gnc_numeric | price | ||
| ) |
Definition at line 585 of file gncEntry.c.
| void gncEntrySetInvTaxable | ( | GncEntry * | entry, |
| gboolean | taxable | ||
| ) |
Definition at line 596 of file gncEntry.c.
| void gncEntrySetInvTaxIncluded | ( | GncEntry * | entry, |
| gboolean | tax_included | ||
| ) |
Definition at line 613 of file gncEntry.c.
| void gncEntrySetInvTaxTable | ( | GncEntry * | entry, |
| GncTaxTable * | table | ||
| ) |
Definition at line 630 of file gncEntry.c.
| void gncEntrySetNotes | ( | GncEntry * | entry, |
| const char * | notes | ||
| ) |
Definition at line 543 of file gncEntry.c.
| void gncEntrySetQuantity | ( | GncEntry * | entry, |
| gnc_numeric | quantity | ||
| ) |
Set the internal quantity without any conversion.
This distinction is made because credit notes store their quantity sign-reversed compared to how the quantity is written on the actual credit note (and hence how the ledger and reports show it to the user).
Definition at line 551 of file gncEntry.c.
| char * qofEntryGetInvDiscHow | ( | const GncEntry * | entry | ) |
Definition at line 999 of file gncEntry.c.
| char * qofEntryGetInvDiscType | ( | const GncEntry * | entry | ) |
Definition at line 990 of file gncEntry.c.
| void qofEntrySetInvDiscHow | ( | GncEntry * | entry, |
| const char * | type | ||
| ) |
Definition at line 701 of file gncEntry.c.
| void qofEntrySetInvDiscType | ( | GncEntry * | entry, |
| const char * | type | ||
| ) |
Definition at line 686 of file gncEntry.c.