Handling currencies that were replaced by the Euro

2010-04-02 Thread Martin Michlmayr
There are a couple of problems with ledger when using currencies that were replaced by the Euro as well as the Euro. First, I know that ledger is mostly designed as a calculator without any knowledge about the actual input. However, given that some currencies were replaced by the Euro and have

Commodities containing digits and ledger bal

2010-04-02 Thread Martin Michlmayr
When you have a commodity that contains digits, you have to put it on quotation marks, as in; 2010-04-02 Test Assets:Broker 10 DE0002635307 @ 10 Assets:Bank ledger bal will also put this commodity in quotation marks. Is this necessary? IMHO it would be nicer if ledger bal

Re: Handling currencies that were replaced by the Euro

2010-04-02 Thread Martin Michlmayr
* Martin Michlmayr t...@cyrius.com [2010-04-02 18:42]: Related to this is a problem with showing currencies. Let's say that I have accounts with ATS, EUR and GBP. How can I tell ledger to ... Finally, there appear to be some artefacts because ledger doesn't know that ATS is a currency

Re: Commodities containing digits and ledger bal

2010-04-02 Thread Simon Michael
On 4/2/10 9:45 AM, Martin Michlmayr wrote: 2010-04-02 Test Assets:Broker 10 DE0002635307 @ 10 Assets:Bank Hi Martin.. when do you use a commodity symbol like that ? It can probably be dealt with, but it quite collides with the desire to write say USD10 as an equivalent

Re: Commodities containing digits and ledger bal

2010-04-02 Thread John Wiegley
On Apr 2, 2010, at 12:45 PM, Martin Michlmayr wrote: ledger bal will also put this commodity in quotation marks. Is this necessary? IMHO it would be nicer if ledger bal would strip the quotation mark. I think that should be doable. It's really only ledger print that must quote them. John

Excluding some transactions if a file is included

2010-04-02 Thread Martin Michlmayr
Does ledge have some ifdef like capability that would allow me to exclude certain transactions if a given file is included? My use case: I'd like keep track of different bank accounts in separate ledger files and I'd like to be able to look at these individual files and get the whole picture and

Re: Commodities containing digits and ledger bal

2010-04-02 Thread Martin Michlmayr
* Simon Michael si...@joyful.com [2010-04-02 10:57]: Assets:Broker 10 DE0002635307 @ 10 Hi Martin.. when do you use a commodity symbol like that ? It can probably be dealt with, but it quite collides with the desire to write say USD10 as an equivalent for USD 10.

Re: Excluding some transactions if a file is included

2010-04-02 Thread John Wiegley
On Apr 2, 2010, at 2:02 PM, Martin Michlmayr wrote: Does ledge have some ifdef like capability that would allow me to exclude certain transactions if a given file is included? Usually the way I solve scenarios like this is with a meta file. For example, you have two files: year2009.ledger

Re: Excluding some transactions if a file is included

2010-04-02 Thread Simon Michael
I have the same issue (your second use case). I was thinking the thing to do is have a close-out transaction at the end of the year, that zeroes out all accounts (that you have opening balances for in the next year). And when reporting, you may have to remember to exclude that close-out txn.

Re: Excluding some transactions if a file is included

2010-04-02 Thread Martin Michlmayr
* John Wiegley jwieg...@gmail.com [2010-04-02 14:08]: Usually the way I solve scenarios like this is with a meta file. For example, you have two files: year2009.ledger and year2010.ledger. Then you have a file allyears.ledger, which includes them all, and also only2009.ledger, which includes

Re: Commodities containing digits and ledger bal

2010-04-02 Thread Simon Michael
I see, thanks. http://en.wikipedia.org/wiki/International_Securities_Identification_Number was informative. -- To unsubscribe, reply using remove me as the subject.

Re: Excluding some transactions if a file is included

2010-04-02 Thread John Wiegley
On Apr 2, 2010, at 2:12 PM, Martin Michlmayr wrote: I agree that this meta file approach would work but it seems a bit like a hack to me. Don't you think the ifdef logic I suggested would be useful? Well, there is another, less hackish approach that Simon's post made me think of. Just add