GnuCash  5.6-150-g038405b370+
dialog-payment.h
1 /*
2  * dialog-payment.h -- Dialog to enter payments
3  * Copyright (C) 2002,2006 Derek Atkins
4  * Author: Derek Atkins <warlord@MIT.EDU>
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 gnu@gnu.org
22  */
23 
24 #ifndef _DIALOG_PAYMENT_H
25 #define _DIALOG_PAYMENT_H
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 typedef struct _payment_window PaymentWindow;
32 
33 #include "gncOwner.h"
34 #include "gncInvoice.h"
35 
36 /* Create a payment window */
37 PaymentWindow * gnc_ui_payment_new (GtkWindow *parent, GncOwner *owner, QofBook *book);
38 PaymentWindow * gnc_ui_payment_new_with_invoice (GtkWindow *parent,
39  const GncOwner *owner,
40  QofBook *book,
41  GncInvoice *invoice);
42 PaymentWindow * gnc_ui_payment_new_with_txn (GtkWindow *parent, GncOwner *owner, Transaction *txn);
43 
46 gboolean gnc_ui_payment_is_customer_payment(const Transaction *txn);
47 
48 /* Destroy a payment window */
49 void gnc_ui_payment_window_destroy (PaymentWindow *pw);
50 
51 void gnc_ui_payment_window_set_num (PaymentWindow *pw, const char* num);
52 void gnc_ui_payment_window_set_memo (PaymentWindow *pw, const char* memo);
53 void gnc_ui_payment_window_set_date (PaymentWindow *pw, const GDate *date);
54 void gnc_ui_payment_window_set_amount (PaymentWindow *pw, gnc_numeric amount);
55 void gnc_ui_payment_window_set_postaccount (PaymentWindow *pw, const Account* account);
56 void gnc_ui_payment_window_set_xferaccount (PaymentWindow *pw, const Account* account);
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif /* _DIALOG_PAYMENT_H */
Business Interface: Object OWNERs.
STRUCTS.
Business Invoice Interface.