GnuCash 2.4.99
dialog-payment.h
00001 /*
00002  * dialog-payment.h -- Dialog to enter payments
00003  * Copyright (C) 2002,2006 Derek Atkins
00004  * Author: Derek Atkins <warlord@MIT.EDU>
00005  *
00006  * This program is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU General Public License as
00008  * published by the Free Software Foundation; either version 2 of
00009  * the License, or (at your option) any later version.
00010  *
00011  * This program is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  * GNU General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU General Public License
00017  * along with this program; if not, contact:
00018  *
00019  * Free Software Foundation           Voice:  +1-617-542-5942
00020  * 51 Franklin Street, Fifth Floor    Fax:    +1-617-542-2652
00021  * Boston, MA  02110-1301,  USA       gnu@gnu.org
00022  */
00023 
00024 #ifndef _DIALOG_PAYMENT_H
00025 #define _DIALOG_PAYMENT_H
00026 
00027 typedef struct _payment_window PaymentWindow;
00028 
00029 #include "gncOwner.h"
00030 #include "gncInvoice.h"
00031 
00032 /* Create a payment window */
00033 PaymentWindow * gnc_ui_payment_new (GncOwner *owner, QofBook *book);
00034 PaymentWindow * gnc_ui_payment_new_with_invoice (const GncOwner *owner,
00035         QofBook *book,
00036         GncInvoice *invoice);
00037 PaymentWindow * gnc_ui_payment_new_with_txn (GncOwner *owner, Transaction *txn);
00038 
00041 gboolean gnc_ui_payment_is_customer_payment(const Transaction *txn);
00042 
00043 /* Destroy a payment window */
00044 void gnc_ui_payment_window_destroy (PaymentWindow *pw);
00045 
00046 void gnc_ui_payment_window_set_num (PaymentWindow *pw, const char* num);
00047 void gnc_ui_payment_window_set_memo (PaymentWindow *pw, const char* memo);
00048 void gnc_ui_payment_window_set_date (PaymentWindow *pw, const GDate *date);
00049 void gnc_ui_payment_window_set_amount (PaymentWindow *pw, gnc_numeric amount);
00050 void gnc_ui_payment_window_set_postaccount (PaymentWindow *pw, const Account* account);
00051 void gnc_ui_payment_window_set_xferaccount (PaymentWindow *pw, const Account* account);
00052 
00053 #endif /* _DIALOG_PAYMENT_H */
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines