From 896da4c328a11d68df57fd5b54faeb372b408c99 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Mon, 20 Oct 2014 12:41:56 +0200 Subject: [PATCH] assets and equities --- lib/ledger.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ledger.rb b/lib/ledger.rb index 8577eb85..33c8ec7f 100644 --- a/lib/ledger.rb +++ b/lib/ledger.rb @@ -65,7 +65,7 @@ module Ledger end def cleared - CSV.parse( `ledger -f #{@file} --exchange '#{CURRENCY}' --flat cleared Assets | grep Assets | awk '{ printf "%s %s;%s %s;%s\\n", $1, $2, $3, $4, $6 }'`, col_sep: ';' ) + CSV.parse( `ledger -f #{@file} --exchange '#{CURRENCY}' --flat cleared Assets Equity | awk '{ printf "%s %s;%s %s;%s\\n", $1, $2, $3, $4, $6 }' | grep -v ";$"`, col_sep: ';' ) .map do |row| { account: row[ 2 ], amount: { cleared: row[ 1 ],