CSV Export Transactions.
More...
Go to the source code of this file.
CSV Export Transactions.
- Author
- Copyright (c) 2012 Robert Fewell
Definition in file csv-transactions-export.h.
The csv_transactions_export() will let the user export the transactions to a delimited file.
Definition at line 448 of file csv-transactions-export.c.
456 DEBUG(
"File name is : %s", info->file_name);
458 info->failed = FALSE;
461 fh = g_fopen (info->file_name,
"w" );
470 if (info->use_quotes)
473 mid_sep = g_strconcat (
"\"", info->separator_str,
"\"", NULL);
478 mid_sep = g_strconcat (info->separator_str, NULL);
482 header = g_strconcat (end_sep, _(
"Date"), mid_sep, _(
"Transaction Type"), mid_sep, _(
"Second Date"),
483 mid_sep, _(
"Account Name"), mid_sep, (num_action ? _(
"Transaction Number") : _(
"Number")),
484 mid_sep, _(
"Description"), mid_sep, _(
"Notes"), mid_sep, _(
"Memo"),
485 mid_sep, _(
"Full Category Path"), mid_sep, _(
"Category"), mid_sep, _(
"Row Type"),
486 mid_sep, (num_action ? _(
"Number/Action") : _(
"Action")),
487 mid_sep, _(
"Reconcile"), mid_sep, _(
"To With Sym"), mid_sep, _(
"From With Sym"),
488 mid_sep, _(
"Commodity Mnemonic"), mid_sep, _(
"Commodity Namespace"),
489 mid_sep, _(
"To Num."), mid_sep, _(
"From Num."), mid_sep, _(
"To Rate/Price"),
490 mid_sep, _(
"From Rate/Price"),
491 end_sep, EOLSTR, NULL);
492 DEBUG(
"Header String: %s", header);
495 if (!write_line_to_file (fh, header))
506 for (ptr = info->csva.account_list, i = 0; ptr; ptr = g_list_next(ptr), i++)
510 account_splits (info, acc, fh);
512 g_list_free (info->trans_list);
#define DEBUG(format, args...)
gboolean qof_book_use_split_action_for_num_field(const QofBook *book)
#define ENTER(format, args...)
#define LEAVE(format, args...)
const char * xaccAccountGetName(const Account *acc)