From 609f6b195af708b285323b4dcdac7e603da912bf Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Tue, 28 Jun 2005 21:12:08 +0000 Subject: (parse): Negate QIF amounts for which a category is specified, since the category shows where the money went, not where it came from. --- qif.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qif.cc b/qif.cc index a29f4bc1..8ca966d4 100644 --- a/qif.cc +++ b/qif.cc @@ -165,6 +165,8 @@ unsigned int qif_parser_t::parse(std::istream& in, line[len - 1] = '\0'; xact->account = journal->find_account(line[0] == '[' ? line + 1 : line); + // Negate the amount, to show the correct direction of flow + xact->amount.negate(); break; } -- cgit v1.2.3