mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-27 07:58:31 +01:00
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
|
||||
|
||||
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: ';' )
|
||||
.map do |row|
|
||||
{ account: row[ 2 ],
|
||||
|
|
Loading…
Add table
Reference in a new issue