|
GnuCash c935c2f+
|
-- Business Helper Functions More...
Go to the source code of this file.
Macros | |
| #define | OWNER_EXPORT_PDF_DIRNAME "export-pdf-directory" |
| #define | LAST_POSTED_TO_ACCT "last-posted-to-acct" |
| #define | GNC_PAYMENT "payment" |
| #define | GNC_LAST_ACCOUNT "last_acct" |
| #define | GNC_BILLTERM_MODULE_NAME GNC_ID_BILLTERM |
| #define | GNC_CUSTOMER_MODULE_NAME GNC_ID_CUSTOMER |
| #define | GNC_EMPLOYEE_MODULE_NAME GNC_ID_EMPLOYEE |
| #define | GNC_ENTRY_MODULE_NAME GNC_ID_ENTRY |
| #define | GNC_INVOICE_MODULE_NAME GNC_ID_INVOICE |
| #define | GNC_JOB_MODULE_NAME GNC_ID_JOB |
| #define | GNC_ORDER_MODULE_NAME GNC_ID_ORDER |
| #define | GNC_OWNER_MODULE_NAME GNC_ID_OWNER |
| #define | GNC_TAXTABLE_MODULE_NAME GNC_ID_TAXTABLE |
| #define | GNC_VENDOR_MODULE_NAME GNC_ID_VENDOR |
| #define | DI(x) x |
Typedefs | |
| typedef GList | OwnerList |
| For SWIG: A GList containing GncOwner. | |
Functions | |
| GList * | gncBusinessGetList (QofBook *book, QofIdTypeConst type_name, gboolean all_including_inactive) |
| Returns a GList of all objects of the given type_name in the given book. | |
| OwnerList * | gncBusinessGetOwnerList (QofBook *book, QofIdTypeConst type_name, gboolean all_including_inactive) |
| Returns a GList of all objects of the given type_name in the given book, but each object is wrapped in a GncOwner object. | |
| gboolean | gncBusinessIsPaymentAcctType (GNCAccountType type) |
| Returns whether the given account type is a valid type to use in business payments. | |
-- Business Helper Functions
Definition in file gncBusiness.h.
| #define DI | ( | x | ) | x |
Definition at line 111 of file gncBusiness.h.
| #define GNC_BILLTERM_MODULE_NAME GNC_ID_BILLTERM |
Definition at line 91 of file gncBusiness.h.
| #define GNC_CUSTOMER_MODULE_NAME GNC_ID_CUSTOMER |
Definition at line 92 of file gncBusiness.h.
| #define GNC_EMPLOYEE_MODULE_NAME GNC_ID_EMPLOYEE |
Definition at line 93 of file gncBusiness.h.
| #define GNC_ENTRY_MODULE_NAME GNC_ID_ENTRY |
Definition at line 94 of file gncBusiness.h.
| #define GNC_INVOICE_MODULE_NAME GNC_ID_INVOICE |
Definition at line 95 of file gncBusiness.h.
| #define GNC_JOB_MODULE_NAME GNC_ID_JOB |
Definition at line 96 of file gncBusiness.h.
| #define GNC_LAST_ACCOUNT "last_acct" |
Definition at line 88 of file gncBusiness.h.
| #define GNC_ORDER_MODULE_NAME GNC_ID_ORDER |
Definition at line 97 of file gncBusiness.h.
| #define GNC_OWNER_MODULE_NAME GNC_ID_OWNER |
Definition at line 98 of file gncBusiness.h.
| #define GNC_PAYMENT "payment" |
Definition at line 87 of file gncBusiness.h.
| #define GNC_TAXTABLE_MODULE_NAME GNC_ID_TAXTABLE |
Definition at line 99 of file gncBusiness.h.
| #define GNC_VENDOR_MODULE_NAME GNC_ID_VENDOR |
Definition at line 100 of file gncBusiness.h.
| #define LAST_POSTED_TO_ACCT "last-posted-to-acct" |
Definition at line 86 of file gncBusiness.h.
| #define OWNER_EXPORT_PDF_DIRNAME "export-pdf-directory" |
Definition at line 85 of file gncBusiness.h.
| typedef GList OwnerList |
For SWIG: A GList containing GncOwner.
Definition at line 121 of file gncBusiness.h.
| OwnerList * gncBusinessGetOwnerList | ( | QofBook * | book, |
| QofIdTypeConst | type_name, | ||
| gboolean | all_including_inactive | ||
| ) |
Returns a GList of all objects of the given type_name in the given book, but each object is wrapped in a GncOwner object.
The wrapping was done by qofOwnerSetEntity(), hence the owner will contain data only for {CUSTOMER, JOB, VENDOR, EMPLOYEE}, otherwise the owner will be of type GNC_OWNER_NONE and not contain the original data.
| gboolean gncBusinessIsPaymentAcctType | ( | GNCAccountType | type | ) |
Returns whether the given account type is a valid type to use in business payments.
Currently payments are allowed to/from assets, liabilities and equity accounts.
Definition at line 92 of file gncBusiness.c.