GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
gncInvoiceP.h
1 /********************************************************************\
2  * gncInvoiceP.h -- the Core Busines Invoice Interface *
3  * *
4  * This program is free software; you can redistribute it and/or *
5  * modify it under the terms of the GNU General Public License as *
6  * published by the Free Software Foundation; either version 2 of *
7  * the License, or (at your option) any later version. *
8  * *
9  * This program is distributed in the hope that it will be useful, *
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of *
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
12  * GNU General Public License for more details. *
13  * *
14  * You should have received a copy of the GNU General Public License*
15  * along with this program; if not, contact: *
16  * *
17  * Free Software Foundation Voice: +1-617-542-5942 *
18  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 *
19  * Boston, MA 02110-1301, USA [email protected] *
20  * *
21 \********************************************************************/
22 
23 /*
24  * Copyright (C) 2001 Derek Atkins
25  * Author: Derek Atkins <[email protected]>
26  */
27 
28 #ifndef GNC_INVOICEP_H_
29 #define GNC_INVOICEP_H_
30 
31 #include "gncInvoice.h"
32 #include "Account.h"
33 #include "Transaction.h"
34 #include "gnc-lot.h"
35 #include "gncOwner.h"
36 
37 gboolean gncInvoiceRegister (void);
38 gchar *gncInvoiceNextID (QofBook *book, const GncOwner *owner);
39 void gncInvoiceSetPostedAcc (GncInvoice *invoice, Account *acc);
40 void gncInvoiceSetPostedTxn (GncInvoice *invoice, Transaction *txn);
41 void gncInvoiceSetPostedLot (GncInvoice *invoice, GNCLot *lot);
42 //void gncInvoiceSetPaidTxn (GncInvoice *invoice, Transaction *txn);
43 
44 #define gncInvoiceSetGUID(I,G) qof_instance_set_guid(QOF_INSTANCE(I),(G))
45 #endif /* GNC_INVOICEP_H_ */
Business Interface: Object OWNERs.
Account handling public routines.
Business Invoice Interface.
API for Transactions and Splits (journal entries)