mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2024-12-27 21:58:11 +01:00
assets and equities
This commit is contained in:
parent
f28972bd0c
commit
896da4c328
1 changed files with 1 additions and 1 deletions
|
@ -65,7 +65,7 @@ module Ledger
|
||||||
end
|
end
|
||||||
|
|
||||||
def cleared
|
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|
|
.map do |row|
|
||||||
{ account: row[ 2 ],
|
{ account: row[ 2 ],
|
||||||
amount: { cleared: row[ 1 ],
|
amount: { cleared: row[ 1 ],
|
||||||
|
|
Loading…
Reference in a new issue