GnuCash  5.6-150-g038405b370+
gncBusiness.h
Go to the documentation of this file.
1 /* gncBusiness.h -- Business Helper Functions
2  *
3  * This program is free software; you can redistribute it and/or
4  * modify it under the terms of the GNU General Public License as
5  * published by the Free Software Foundation; either version 2 of
6  * the License, or (at your option) any later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, contact:
15  *
16  * Free Software Foundation Voice: +1-617-542-5942
17  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
18  * Boston, MA 02110-1301, USA gnu@gnu.org
19  */
71 #ifndef GNC_BUSINESS_H_
72 #define GNC_BUSINESS_H_
73 
74 #include <glib.h>
75 
76 #include "qof.h"
77 #include "Account.h"
78 
79 #ifdef __cplusplus
80 extern "C"
81 {
82 #endif
83 
84 /* KVP key for report PDF directories */
85 #define OWNER_EXPORT_PDF_DIRNAME "export-pdf-directory"
86 #define LAST_POSTED_TO_ACCT "last-posted-to-acct"
87 #define GNC_PAYMENT "payment"
88 #define GNC_LAST_ACCOUNT "last_acct"
89 
90 /* @deprecated backwards-compat definitions */
91 #define GNC_BILLTERM_MODULE_NAME GNC_ID_BILLTERM
92 #define GNC_CUSTOMER_MODULE_NAME GNC_ID_CUSTOMER
93 #define GNC_EMPLOYEE_MODULE_NAME GNC_ID_EMPLOYEE
94 #define GNC_ENTRY_MODULE_NAME GNC_ID_ENTRY
95 #define GNC_INVOICE_MODULE_NAME GNC_ID_INVOICE
96 #define GNC_JOB_MODULE_NAME GNC_ID_JOB
97 #define GNC_ORDER_MODULE_NAME GNC_ID_ORDER
98 #define GNC_OWNER_MODULE_NAME GNC_ID_OWNER
99 #define GNC_TAXTABLE_MODULE_NAME GNC_ID_TAXTABLE
100 #define GNC_VENDOR_MODULE_NAME GNC_ID_VENDOR
101 
102 /* The initialization of the business objects is done in
103  * cashobjects_register() of <engine/cashobjects.h>. */
104 
105 #ifndef DI
106 # ifdef _MSC_VER
107 /* MSVC compiler doesn't have C99 "designated initializers"
108  * so we wrap them in a macro that is empty on MSVC. */
109 # define DI(x) /* */
110 # else
111 # define DI(x) x
112 # endif
113 #endif
114 
117 GList * gncBusinessGetList (QofBook *book, QofIdTypeConst type_name,
118  gboolean all_including_inactive);
119 
121 typedef GList OwnerList;
122 
130 OwnerList * gncBusinessGetOwnerList (QofBook *book, QofIdTypeConst type_name,
131  gboolean all_including_inactive);
132 
137 
138 #ifdef __cplusplus
139 }
140 #endif
141 
142 #endif /* GNC_BUSINESS_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 i...
const gchar * QofIdTypeConst
QofIdTypeConst declaration.
Definition: qofid.h:82
gboolean gncBusinessIsPaymentAcctType(GNCAccountType type)
Returns whether the given account type is a valid type to use in business payments.
Definition: gncBusiness.c:92
Account handling public routines.
GNCAccountType
The account types are used to determine how the transaction data in the account is displayed...
Definition: Account.h:101
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.
GList OwnerList
For SWIG: A GList containing GncOwner.
Definition: gncBusiness.h:121