gpe-expenses
0.1.9
|
QOF expense definitions. More...
#include <glib.h>
#include <qof.h>
Go to the source code of this file.
Data Structures | |
struct | QofCurrency |
qof-expenses currency data wrapper. More... | |
Macros | |
#define | GPE_MOD_EXP "gpe-expenses-module" |
#define | GPE_QOF_EXPENSES "gpe_expenses" |
#define | QOF_EXPENSES_DESC "GPE QOF expenses" |
#define | EXP_DATE "expense_date" |
#define | EXP_TYPE "type_of_expense" |
#define | EXP_PAYMENT "form_of_payment" |
#define | EXP_CURRENCY "currency_code" |
#define | EXP_AMOUNT "expense_amount" |
#define | EXP_VENDOR "expense_vendor" |
#define | EXP_CITY "expense_city" |
#define | EXP_ATTENDEES "expense_attendees" |
#define | EXP_NOTE "expense_note" |
#define | EXP_CATEGORY "category" |
#define | EXP_DISTANCE "distance_unit" |
#define | EXP_KVP "currency_lookup" |
#define | PQ_CURRENCY_MNEMONIC "expense/currency/mnemonic" |
#define | PQ_CURRENCY_SYMBOL "expense/currency/symbol" |
#define | PQ_CURRENCY_FRACTION "expense/currency/fraction" |
#define | DISTANCE_LIST(_) |
#define | PAYMENT_TYPE_LIST(_) |
#define | EXPENSE_TYPE_LIST(_) |
Typedefs | |
typedef struct QofExp_s | QofExp |
Wraps QOF around pilot-link expenses. | |
typedef void(* | QofCurrencyCB )(gpointer key, gpointer value, gpointer user_data) |
Enumerations | |
enum | ExpenseDistance { Miles = 0, Kilometers, Miles = 0, Kilometers } |
enum | ExpensePayment { AmericanExpress = 0, Cash = 1, Cheque, CreditCard, MasterCard, Prepaid, VISA, Unfiled, AmericanExpress = 0, Cash = 1, Cheque, CreditCard, MasterCard, Prepaid, VISA, Unfiled } |
typedef for expense payment types. More... | |
enum | ExpenseType { Airfare = 0, Breakfast = 1, Bus = 2, BusinessMeals, CarRental, Dinner, Entertainment, Fax, Gas, Gifts, Hotel, Incidentals, Laundry, Limo, Lodging, Lunch, Mileage, Other, Parking, Postage, Snack, Subway, Supplies, Taxi, Telephone, Tips, Tolls, Train, Airfare = 0, Breakfast = 1, Bus = 2, BusinessMeals, CarRental, Dinner, Entertainment, Fax, Gas, Gifts, Hotel, Incidentals, Laundry, Limo, Lodging, Lunch, Mileage, Other, Parking, Postage, Snack, Subway, Supplies, Taxi, Telephone, Tips, Tolls, Train } |
typedef for expense types More... | |
Functions | |
void | qof_currency_foreach (QofCurrencyCB cb, gpointer user_data) |
QofCurrency * | qof_currency_lookup (QofInstance *inst, gint currency_code) |
Set details of a QofCurrency from a currency_code. More... | |
QofCurrency * | qof_currency_lookup_name (QofInstance *inst, gchar *mnemonic) |
Lookup a currency by name. More... | |
const gchar * | ExpenseDistanceasString (ExpenseDistance n) |
ExpenseDistance | ExpenseDistancefromString (const gchar *str) |
const gchar * | ExpensePaymentasString (ExpensePayment n) |
ExpensePayment | ExpensePaymentfromString (const gchar *str) |
const gchar * | ExpenseTypeasString (ExpenseType n) |
ExpenseType | ExpenseTypefromString (const gchar *str) |
gboolean | ExpensesRegister (void) |
Register this object with QOF. More... | |
QOF expense definitions.
Definition in file qof-expenses.h.