GnuCash c935c2f+
Loading...
Searching...
No Matches
gncInvoiceP.h
1/********************************************************************\
2 * gncInvoiceP.h -- the Core Business 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 gnu@gnu.org *
20 * *
21\********************************************************************/
22
23/*
24 * Copyright (C) 2001 Derek Atkins
25 * Author: Derek Atkins <warlord@MIT.EDU>
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#ifdef __cplusplus
38extern "C" {
39#endif
40
41gboolean gncInvoiceRegister (void);
42gchar *gncInvoiceNextID (QofBook *book, const GncOwner *owner);
43void gncInvoiceSetPostedAcc (GncInvoice *invoice, Account *acc);
44void gncInvoiceSetPostedTxn (GncInvoice *invoice, Transaction *txn);
45void gncInvoiceSetPostedLot (GncInvoice *invoice, GNCLot *lot);
46//void gncInvoiceSetPaidTxn (GncInvoice *invoice, Transaction *txn);
47
48void gncInvoiceAttachToLot (GncInvoice *invoice, GNCLot *lot);
49void gncInvoiceDetachFromLot (GNCLot *lot);
50void gncInvoiceAttachToTxn (GncInvoice *invoice, Transaction *txn);
51
52#define gncInvoiceSetGUID(I,G) qof_instance_set_guid(QOF_INSTANCE(I),(G))
53
54#ifdef __cplusplus
55}
56#endif
57
58#endif /* GNC_INVOICEP_H_ */
Account handling public routines.
API for Transactions and Splits (journal entries)
Business Invoice Interface.
Business Interface: Object OWNERs.
STRUCTS.
QofBook reference.
Definition qofbook-p.hpp:47