mirror of
https://github.com/gwenhael-le-moine/ledgerrb.git
synced 2025-01-28 07:58:29 +01:00
default values for budget
This commit is contained in:
parent
2f33a0b432
commit
4a9c4f5f08
1 changed files with 1 additions and 1 deletions
|
@ -75,7 +75,7 @@ module Ledger
|
|||
end
|
||||
end
|
||||
|
||||
def budget( period, categories )
|
||||
def budget( period = nil, categories = '' )
|
||||
period = period.nil? ? '' : "-p '#{period}'"
|
||||
|
||||
budgeted = run( "--flat --no-total --budget --exchange '#{CURRENCY}' #{period}", 'budget', categories )
|
||||
|
|
Loading…
Add table
Reference in a new issue