GnuCash c935c2f+
Loading...
Searching...
No Matches
dialog-customer.h
1/*
2 * dialog-customer.h -- Dialog(s) for Customer search and entry
3 * Copyright (C) 2001 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
25#ifndef GNC_DIALOG_CUSTOMER_H_
26#define GNC_DIALOG_CUSTOMER_H_
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32typedef struct _customer_window CustomerWindow;
33
34#include "gncCustomer.h"
35#include "dialog-search.h"
36
37/* Functions to create and edit a customer */
38CustomerWindow * gnc_ui_customer_edit (GtkWindow *parent, GncCustomer *cust);
39CustomerWindow * gnc_ui_customer_new (GtkWindow *parent, QofBook *book);
40
41/* Search for customers */
42GNCSearchWindow *gnc_customer_search (GtkWindow *parent, GncCustomer *start, QofBook *book);
43
44/*
45 * These callbacks are for use with the gnc_general_search widget
46 *
47 * select() provides a Select Dialog and returns it.
48 * edit() opens the existing customer for editing and returns NULL.
49 */
50GNCSearchWindow * gnc_customer_search_select (GtkWindow *parent, gpointer start, gpointer book);
51GNCSearchWindow * gnc_customer_search_edit (GtkWindow *parent, gpointer start, gpointer book);
52
53#ifdef __cplusplus
54}
55#endif
56
57#endif /* GNC_DIALOG_CUSTOMER_H_ */
Core Customer Interface.
credit, discount and shipaddr are unique to GncCustomer id, name, notes, terms, addr,...
QofBook reference.
Definition qofbook-p.hpp:47