GnuCash  2.6.99
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
dialog-payment.h
1 /*
2  * dialog-payment.h -- Dialog to enter payments
3  * Copyright (C) 2002,2006 Derek Atkins
4  * Author: Derek Atkins <[email protected]>
5  *
6  * This program is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU General Public License as
8  * published by the Free Software Foundation; either version 2 of
9  * the License, or (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, contact:
18  *
19  * Free Software Foundation Voice: +1-617-542-5942
20  * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652
21  * Boston, MA 02110-1301, USA [email protected]
22  */
23 
24 #ifndef _DIALOG_PAYMENT_H
25 #define _DIALOG_PAYMENT_H
26 
27 typedef struct _payment_window PaymentWindow;
28 
29 #include "gncOwner.h"
30 #include "gncInvoice.h"
31 
32 /* Create a payment window */
33 PaymentWindow * gnc_ui_payment_new (GncOwner *owner, QofBook *book);
34 PaymentWindow * gnc_ui_payment_new_with_invoice (const GncOwner *owner,
35  QofBook *book,
36  GncInvoice *invoice);
37 PaymentWindow * gnc_ui_payment_new_with_txn (GncOwner *owner, Transaction *txn);
38 
41 gboolean gnc_ui_payment_is_customer_payment(const Transaction *txn);
42 
43 /* Destroy a payment window */
44 void gnc_ui_payment_window_destroy (PaymentWindow *pw);
45 
46 void gnc_ui_payment_window_set_num (PaymentWindow *pw, const char* num);
47 void gnc_ui_payment_window_set_memo (PaymentWindow *pw, const char* memo);
48 void gnc_ui_payment_window_set_date (PaymentWindow *pw, const GDate *date);
49 void gnc_ui_payment_window_set_amount (PaymentWindow *pw, gnc_numeric amount);
50 void gnc_ui_payment_window_set_postaccount (PaymentWindow *pw, const Account* account);
51 void gnc_ui_payment_window_set_xferaccount (PaymentWindow *pw, const Account* account);
52 
53 #endif /* _DIALOG_PAYMENT_H */
Business Interface: Object OWNERs.
Business Invoice Interface.