Re: 'equity' cannot accept virtual and non-virtual postings to the same account

2014-05-17 Thread Lifepillar
In article cak21+hp9zp05erd8fhkkqtx-xglzyh93cxxv_r+05605e43...@mail.gmail.com, Martin Blais bl...@furius.ca wrote: Really? This surprises me. I read this as a reasonable assumption and looked up the Ledger doc for it but could not find it. It makes sense to me that one may want to restrict

Re: 'equity' cannot accept virtual and non-virtual postings to the same account

2014-05-17 Thread Martin Blais
On Sat, May 17, 2014 at 1:37 PM, Harshad RJ harshad...@gmail.com wrote: On Sat, May 17, 2014 at 10:40 PM, Lifepillar lifepil...@lifepillar.comwrote: 2013/05/17 * Myself Assets:Checking:Myself $3500.00 Income:Salary:Family Allowance $-100.00 Income:Salary:Taxable:Net

Re: 'equity' cannot accept virtual and non-virtual postings to the same account

2014-05-17 Thread Jostein Berntsen
On 16.05.14,22:06, John Wiegley wrote: Jostein Berntsen jber...@broadpark.no writes: Is there a reason for this? This sounds rather odd, and may be a bug. John Example data: 2014/03/05 * Opening Balance Assets:Project:Budget 100,00 NOK Equity:Opening

Re: Building on Debian Wheezy with clang: seg fault on 78AB4B87 9188F587 regress tests

2014-05-17 Thread thierry
Bug was introduced by commit AA2FF2B. Hopefully fixed with commit 8b3f8d1. BTW my first commit on C++ code! :-) Thierry On Tuesday, May 13, 2014 9:14:28 AM UTC+2, Christophe Rhodes wrote: thierry th...@free.fr javascript: writes: $ ledger --args-only --decimal-comma -f /tmp/thierry.ledger

Re: 'equity' cannot accept virtual and non-virtual postings to the same account

2014-05-17 Thread Martin Michlmayr
* Lifepillar lifepil...@lifepillar.com [2014-05-17 19:10]: consider the following example: an employee in the public sector gets a salary that is taxed in advance. He may get a monthly statement with the following information: Gross income: $5200 Family allowance (tax-exempt): $100 Taxes:

Re: 'equity' cannot accept virtual and non-virtual postings to the same account

2014-05-17 Thread Martin Michlmayr
* Martin Michlmayr t...@cyrius.com [2014-05-17 18:41]: Gross income: $5200 Family allowance (tax-exempt): $100 Taxes: $1700 Net income: $3500 BTW, there's a calculation error here. Either net income should be $3600 or taxes $1800. But that's a just a minor detail. I found your

Re: 'equity' cannot accept virtual and non-virtual postings to the same account

2014-05-17 Thread Martin Michlmayr
* Martin Blais bl...@furius.ca [2014-05-17 13:52]: I think in this case you're simply doing this wrong and you don't need virtual postings at all. Here's how I would do this: - Income counts the gross income amount ($5,200). - Tax withholding (not just for govt accounts, BTW) is usually

Re: 'equity' cannot accept virtual and non-virtual postings to the same account

2014-05-17 Thread Martin Blais
On Sat, May 17, 2014 at 7:06 PM, Martin Michlmayr t...@cyrius.com wrote: * Martin Blais bl...@furius.ca [2014-05-17 13:52]: - Your non-taxable allowance can be tracked in a separate contra income account (that is, one with a positive amount). That's what I do for some of my deductions.

Re: 'equity' cannot accept virtual and non-virtual postings to the same account

2014-05-17 Thread Martin Blais
On Sat, May 17, 2014 at 9:04 PM, Martin Blais bl...@furius.ca wrote: On Sat, May 17, 2014 at 7:06 PM, Martin Michlmayr t...@cyrius.com wrote: Income:US:Google:Deductions:Medical .XX USD Income:US:Google:Deductions:TransitPreTax.XX USD

Re: query metadata in automated transactions?

2014-05-17 Thread Eric Abrahamsen
John Wiegley jo...@newartisans.com writes: Eric Abrahamsen e...@ericabrahamsen.net writes: Is it possible to see transaction metadata when doing matching for automated transactions? Yes, if you start the automated transaction directive with = expr , then you can use any value expression,