|
GnuCash 2.4.99
|
00001 /* 00002 * dialog-invoice.h -- Dialog(s) for Invoice search and entry 00003 * Copyright (C) 2002 Derek Atkins 00004 * Author: Derek Atkins <warlord@MIT.EDU> 00005 * 00006 * Copyright (c) 2005,2006 David Hampton <hampton@employees.org> 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License as 00010 * published by the Free Software Foundation; either version 2 of 00011 * the License, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, contact: 00020 * 00021 * Free Software Foundation Voice: +1-617-542-5942 00022 * 51 Franklin Street, Fifth Floor Fax: +1-617-542-2652 00023 * Boston, MA 02110-1301, USA gnu@gnu.org 00024 */ 00025 00026 00027 #ifndef GNC_DIALOG_INVOICE_H_ 00028 #define GNC_DIALOG_INVOICE_H_ 00029 00030 typedef struct _invoice_window InvoiceWindow; 00031 00032 #include "qof.h" 00033 #include "gncInvoice.h" 00034 #include "gncOwner.h" 00035 #include "dialog-search.h" 00036 #include "dialog-query-list.h" 00037 00038 typedef enum 00039 { 00040 INVSORT_BY_STANDARD = 0, 00041 INVSORT_BY_DATE, 00042 INVSORT_BY_DATE_ENTERED, 00043 INVSORT_BY_DESC, 00044 INVSORT_BY_QTY, 00045 INVSORT_BY_PRICE 00046 } invoice_sort_type_t; 00047 00048 00049 #define GCONF_SECTION_INVOICE "dialogs/business/invoice" 00050 #define GCONF_SECTION_BILL "dialogs/business/bill" 00051 #define GCONF_SECTION_VOUCHER "dialogs/business/voucher" 00052 00053 00054 /* Create and edit an invoice */ 00055 InvoiceWindow * gnc_ui_invoice_edit (GncInvoice *invoice); 00056 InvoiceWindow * gnc_ui_invoice_new (GncOwner *owner, QofBook *book); 00057 00068 InvoiceWindow * gnc_ui_invoice_duplicate (GncInvoice *invoice, gboolean open_properties, const GDate *new_date); 00069 00070 /* Search for invoices */ 00071 GNCSearchWindow * gnc_invoice_search (GncInvoice *start, GncOwner *owner, QofBook *book); 00072 00073 void gnc_business_call_owner_report (GncOwner *owner, Account *acc); 00074 00075 void gnc_invoice_window_sort (InvoiceWindow *iw, invoice_sort_type_t sort_code); 00076 00077 GtkWidget * gnc_invoice_window_create_summary_bar (InvoiceWindow *iw); 00078 00079 void gnc_invoice_window_changed (InvoiceWindow *iw, GtkWidget *window);; 00080 00081 gchar *gnc_invoice_get_help (InvoiceWindow *iw); 00082 00083 gchar *gnc_invoice_get_title (InvoiceWindow *iw); 00084 00085 #ifdef __GNC_PLUGIN_PAGE_H 00086 #include "gnc-main-window.h" 00087 GncPluginPage *gnc_invoice_recreate_page (GncMainWindow *window, GKeyFile *key_file, const gchar *group_name); 00088 void gnc_invoice_save_page (InvoiceWindow *iw, GKeyFile *key_file, const gchar *group_name); 00089 #endif 00090 00091 GtkWidget * gnc_invoice_create_page (InvoiceWindow *iw, gpointer page); 00092 00093 DialogQueryList *gnc_invoice_show_bills_due (QofBook *book, double days_in_advance); 00094 00095 GtkWidget *gnc_invoice_get_register(InvoiceWindow *iw); 00096 00097 /* definitions for CB functions */ 00098 void gnc_invoice_window_destroy_cb (GtkWidget *widget, gpointer data); 00099 00100 void gnc_invoice_window_new_invoice_cb (GtkWidget *widget, gpointer data); 00101 void gnc_invoice_window_printCB (GtkWidget *widget, gpointer data); 00102 void gnc_invoice_window_cut_cb (GtkWidget *widget, gpointer data); 00103 void gnc_invoice_window_copy_cb (GtkWidget *widget, gpointer data); 00104 void gnc_invoice_window_paste_cb (GtkWidget *widget, gpointer data); 00105 void gnc_invoice_window_editCB (GtkWidget *widget, gpointer data); 00106 void gnc_invoice_window_duplicateInvoiceCB (GtkWidget *widget, gpointer data); 00107 void gnc_invoice_window_postCB (GtkWidget *widget, gpointer data); 00108 void gnc_invoice_window_unpostCB (GtkWidget *widget, gpointer data); 00109 void gnc_invoice_window_recordCB (GtkWidget *widget, gpointer data); 00110 void gnc_invoice_window_cancelCB (GtkWidget *widget, gpointer data); 00111 void gnc_invoice_window_deleteCB (GtkWidget *widget, gpointer data); 00112 void gnc_invoice_window_blankCB (GtkWidget *widget, gpointer data); 00113 void gnc_invoice_window_duplicateCB (GtkWidget *widget, gpointer data); 00114 void gnc_invoice_window_payment_cb (GtkWidget *widget, gpointer data); 00115 void gnc_invoice_window_report_owner_cb (GtkWidget *widget, gpointer data); 00116 00117 void gnc_invoice_window_entryUpCB (GtkWidget *widget, gpointer data); 00118 void gnc_invoice_window_entryDownCB (GtkWidget *widget, gpointer data); 00119 00120 #endif /* GNC_DIALOG_INVOICE_H_ */
1.7.4