/* HomeBank -- Free, easy, personal accounting for everyone.
- * Copyright (C) 1995-2018 Maxime DOYEN
+ * Copyright (C) 1995-2019 Maxime DOYEN
*
* This file is part of HomeBank.
*
*/
#include "homebank.h"
+
#include "hb-export.h"
+#include "list-operation.h"
/****************************************************************************/
/* Debug macros */
Transaction *txn = list->data;
Payee *payee;
Category *cat;
- gchar *txt;
g_date_set_julian (date, txn->date);
//#1270876
cat = da_cat_get(txn->kcat);
if(cat)
{
- txt = da_cat_get_fullname(cat);
- g_string_append_printf (elt, "L%s\n", txt);
- g_free(txt);
+ g_string_append_printf (elt, "L%s\n", cat->fullname);
}
}
// splits
- count = da_splits_count(txn->splits);
+ count = da_splits_length(txn->splits);
for(i=0;i<count;i++)
{
- Split *s = txn->splits[i];
+ Split *s = da_splits_get(txn->splits, i);
cat = da_cat_get(s->kcat);
if(cat)
{
- txt = da_cat_get_fullname(cat);
- g_string_append_printf (elt, "S%s\n", txt);
- g_free(txt);
+ g_string_append_printf (elt, "S%s\n", cat->fullname);
}
g_string_append_printf (elt, "E%s\n", s->memo);
Transaction *txn;
int tw, th;
- gtk_tree_model_get (model, &iter, LST_DSPOPE_DATAS, &txn, -1);
+ gtk_tree_model_get (model, &iter, MODEL_TXN_POINTER, &txn, -1);
i = 0;
g_date_set_julian (date, txn->date);
Transaction *txn;
int tw, th;
- gtk_tree_model_get (model, &iter, LST_DSPOPE_DATAS, &txn, -1);
+ gtk_tree_model_get (model, &iter, MODEL_TXN_POINTER, &txn, -1);
//DB( g_print(" - %d, %d, %s\n", x, y, txn->memo) );
if(cur_page_line == 1)