todo
This commit is contained in:
parent
0c25ceec42
commit
c3e2ed0b60
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ module Ledger
|
||||||
end
|
end
|
||||||
|
|
||||||
def cleared
|
def cleared
|
||||||
|
# TODO: refactor : replace awk and grep by Ruby and use run
|
||||||
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: ';' )
|
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 ],
|
||||||
|
|
Loading…
Add table
Reference in a new issue