31 #ifndef GNC_PLUGIN_BI_IMPORT_H
32 #define GNC_PLUGIN_BI_IMPORT_H
40 enum bi_import_model_columns
42 ID, DATE_OPENED, OWNER_ID, BILLING_ID, NOTES,
43 DATE, DESC, ACTION, ACCOUNT, QUANTITY, PRICE, DISC_TYPE, DISC_HOW, DISCOUNT, TAXABLE, TAXINCLUDED, TAX_TABLE,
44 DATE_POSTED, DUE_DATE, ACCOUNT_POSTED, MEMO_POSTED, ACCU_SPLITS,
48 enum _bi_import_result
52 RESULT_ERROR_IN_REGEXP,
54 typedef enum _bi_import_result bi_import_result;
58 int n_imported, n_ignored;
59 GString *ignored_lines;
65 gnc_bi_import_read_file (
const gchar *filename,
const gchar *parser_regexp, GtkListStore *store, guint max_rows,
bi_import_stats *stats);
68 gnc_bi_import_fix_bis (GtkListStore *store, guint *fixed, guint *deleted, GString *info, gchar *type);
71 gnc_bi_import_create_bis (GtkListStore *store,
QofBook *book, guint *n_invoices_created, guint *n_invoices_updated, gchar *type, gchar *open_mode, GString * info);