pilot-qof
0.2.3
|
00001 /*************************************************************************** 00002 * qof-expenses.h 00003 * 00004 * Thu Oct 21 08:18:44 2004 00005 * Copyright 2004-2007 Neil Williams <linux@codehelp.co.uk> 00006 ****************************************************************************/ 00007 /* 00008 This program is free software; you can redistribute it and/or modify 00009 it under the terms of the GNU General Public License as published by 00010 the Free Software Foundation; either version 3 of the License, or 00011 (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, see <http://www.gnu.org/licenses/>. 00020 */ 00040 #ifndef _PQOF_EXPENSES_H 00041 #define _PQOF_EXPENSES_H 00042 00043 #include "pi-expense.h" 00044 00045 #define PILOT_LINK_QOF_EXPENSES "pilot_expenses" 00046 #define EXP_DATE "expense_date" 00047 #define EXP_TYPE "type_of_expense" 00048 #define EXP_PAYMENT "form_of_payment" 00049 #define EXP_CURRENCY "currency_code" 00050 #define EXP_AMOUNT "expense_amount" 00051 #define EXP_ATTENDEES "expense_attendees" 00052 #define EXP_NOTE "expense_note" 00053 #define EXP_CATEGORY "category" 00054 #define EXP_DISTANCE "distance_unit" 00055 #define EXP_VENDOR "expense_vendor" 00056 #define EXP_CITY "expense_city" 00057 #define EXP_KVP "currency_lookup" 00058 00060 #define PQ_CURRENCY_MNEMONIC "expense/currency/mnemonic" 00061 00062 #define PQ_CURRENCY_SYMBOL "expense/currency/symbol" 00063 00064 #define PQ_CURRENCY_FRACTION "expense/currency/fraction" 00065 00067 #define PQ_EXPENSE_PREF Expense_Pref 00068 00071 #define EXPENSE_CREATOR "exps" 00072 00075 gboolean PQExpensesRegister (void); 00076 00077 typedef struct Expense Expense_t; 00078 00079 Expense_t * pq_expense_get_pilot (QofEntity * inst); 00080 00081 void 00082 populate_currencies (void); 00083 00084 gint32 00085 pq_set_currency (QofInstance * inst, gchar * mnemonic); 00086 00087 #endif /* _PQOF_EXPENSES_H */ 00088