Default / Unspecified Commodities

217 views
Skip to first unread message

Wes Cravens

unread,
Sep 8, 2013, 6:13:20 PM9/8/13
to ledge...@googlegroups.com
Firstly - I'm posting my difficulties here first for comment before raising bugs.
That way if it's a missunderstanding on my part I will endeavor to enhance the documentation
but if it's identified as a bug then I will file on bugs.ledger-cli.org. If you would prefer
that I go straight to bugzilla. Just let me know.

Consider:

wcravens@aberforth:~/Sandbox/ledger$ cat scratch.dat

; Test Default Commodity

commodity $
format $1,000.00
default

account Assets:Checking
account Assets:Saving
account Equity:Opening Balances

2013/09/01 Opening Balances
Assets:Checking 1000.00
Assets:Saving 5.00
Equity:Opening Balances

; /Test Default Commodity

wcravens@aberforth:~/Sandbox/ledger$ ledger --args-only --strict -f scratch.dat b
1005 Assets
1000 Checking
5 Saving
-1005 Equity:Opening Balances
--------------------
0
wcravens@aberforth:~/Sandbox/ledger$ ledger --args-only --strict -f scratch.dat commodities

wcravens@aberforth:~/Sandbox/ledger$

I've tested this with both the commodity directive and 'D'.

There are two things that I was expecting. The first was that the values with unspecified
commodities would be assigned a dollar. I also didn't expect an 'unspecified' commodity to
be allowed given the --strict.

--
Wes Cravens, Founding Member
Moxigen - Oxygen for Moxie
http://moxigen.com
Reply all
Reply to author
Forward
0 new messages