GnuCash 2.4.99
Data Structures | Typedefs | Enumerations | Functions
dialog-bi-import.h File Reference

core import functions for invoice import plugin More...

#include <glib.h>
#include <gtk/gtk.h>

Go to the source code of this file.

Data Structures

struct  _bi_import_stats

Typedefs

typedef enum _bi_import_result bi_import_result
typedef struct _bi_import_stats bi_import_stats

Enumerations

enum  bi_import_model_columns {
  ID, DATE_OPENED, OWNER_ID, BILLING_ID,
  NOTES, DATE, DESC, ACTION,
  ACCOUNT, QUANTITY, PRICE, DISC_TYPE,
  DISC_HOW, DISCOUNT, TAXABLE, TAXINCLUDED,
  TAX_TABLE, DATE_POSTED, DUE_DATE, ACCOUNT_POSTED,
  MEMO_POSTED, ACCU_SPLITS, N_COLUMNS
}
enum  _bi_import_result { RESULT_OK, RESULT_OPEN_FAILED, RESULT_ERROR_IN_REGEXP }

Functions

bi_import_result gnc_bi_import_read_file (const gchar *filename, const gchar *parser_regexp, GtkListStore *store, guint max_rows, bi_import_stats *stats)
void gnc_bi_import_fix_bis (GtkListStore *store, guint *fixed, guint *deleted, GString *info, gchar *type)
 try to fix some common errors in the csv representation of invoices corrects the date format corrects ambigous values in multi line invoices ensures customer exists if quantity is unset, set to 1 if price is unset, delete row
void gnc_bi_import_create_bis (GtkListStore *store, QofBook *book, guint *n_invoices_created, guint *n_invoices_updated, gchar *type, gchar *open_mode)

Detailed Description

core import functions for invoice import plugin

Author:
Copyright (C) 2009 Sebastian Held <sebastian.held@gmx.de>
Mike Evans <mikee@saxicola.co.uk>

Definition in file dialog-bi-import.h.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines