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

2014-08-17 Thread Chris Bennett
Hi there, I've been using ledger for a few years now and share a similar enthusiasm to Martin Blais (I've been reading archives to update my current best practices and can sense his passion in the emails he writes :)). I've stumbled on this thread from a few months ago and thought I'd contribute

Aligning transactions (was: Re: 'equity' cannot accept virtual and non-virtual postings to the same account)

2014-06-09 Thread Martin Blais
On Mon, Jun 2, 2014 at 8:38 AM, Martin Blais bl...@furius.ca wrote: On Tue, May 20, 2014 at 9:00 AM, Martin Blais bl...@furius.ca wrote: On Tue, May 20, 2014 at 6:06 AM, Stefano Zacchiroli z...@upsilon.cc wrote: On Sat, May 17, 2014 at 11:37:01PM -0400, Martin Blais wrote:In particular,

Re: Aligning transactions (was: Re: 'equity' cannot accept virtual and non-virtual postings to the same account)

2014-06-09 Thread Craig Earls
Do you realize that there is a function to already do this in ledger mode? clean up buffer On Mon, Jun 9, 2014 at 8:07 PM, Martin Blais bl...@furius.ca wrote: On Mon, Jun 2, 2014 at 8:38 AM, Martin Blais bl...@furius.ca wrote: On Tue, May 20, 2014 at 9:00 AM, Martin Blais bl...@furius.ca

Re: Aligning transactions (was: Re: 'equity' cannot accept virtual and non-virtual postings to the same account)

2014-06-09 Thread Martin Blais
On Mon, Jun 9, 2014 at 11:36 PM, Craig Earls ender...@gmail.com wrote: Do you realize that there is a function to already do this in ledger mode? clean up buffer Yes, but thanks for pointing it out Craig. Beancount's syntax has changed radically when I started version 2, and I stopped using

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

2014-06-02 Thread Jostein Berntsen
/Documents/Finans/ledger/project.dat, line 16: (Assets:Project:Budget) (1000,00 NOK * amount) Error: 'equity' cannot accept virtual and non-virtual postings to the same account For some reason these commands gives the right output: ledger bal budget ledger reg budget

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

2014-06-02 Thread Martin Blais
On Tue, May 20, 2014 at 9:00 AM, Martin Blais bl...@furius.ca wrote: On Tue, May 20, 2014 at 6:06 AM, Stefano Zacchiroli z...@upsilon.cc wrote: On Sat, May 17, 2014 at 11:37:01PM -0400, Martin Blais wrote:In particular, I'm personally annoyed that when I batchly update ledger files to

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

2014-05-24 Thread John Wiegley
Martin Blais bl...@furius.ca writes: Virtual accounts are a crutch. I say: don't use them. If you hadn't had them in the first place, you would have come up with a similar method yourself. If people don't want to use them, that's fine. But Ledger is not an accounting tool; it's a tool that

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

2014-05-23 Thread Eric Abrahamsen
Martin Blais bl...@furius.ca writes: [...] I think you're just not being creative enough with it. Here's an alternative system that solves your accounting problem without resorting to virtual accounts: just count the receipts themselves. option operating_currency RMB 2014-01-01 open

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

2014-05-21 Thread Martin Blais
On Tue, May 20, 2014 at 12:45 AM, Martin Blais bl...@furius.ca wrote: On Tue, May 20, 2014 at 12:15 AM, Martin Blais bl...@furius.ca wrote: Expenses:Taxes:US:TY2014:Google:Federal Expenses:Taxes:US:TY2014:Google:StateNY Expenses:Taxes:US:TY2014:Google:CityNYC I got the ordering

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

2014-05-21 Thread Simon Michael
On 5/17/14 10:10 AM, Lifepillar wrote: @Jostein: I have concluded some time ago that keeping virtual and non-virtual accounts distinct is a best practice (good tip for LedgerTips?). Noted, thanks! -- --- You received this message because you are subscribed to the Google Groups Ledger group.

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

2014-05-21 Thread Simon Michael
On 5/17/14 11:50 PM, Martin Blais wrote: I wonder if a more general rule-of-thumb can be inferred here: if you can make do with subaccounts, you should always favor that over tags or other mechanisms. Not sure if always true? But surely something to think about. That has always been my default

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

2014-05-21 Thread Martin Blais
On Wed, May 21, 2014 at 2:46 PM, John Wiegley jo...@newartisans.com wrote: Martin Blais bl...@furius.ca writes: If the community accounts straddle the real accounts, you just filter by the CommunityX bit. Imagine for a moment the worse case, that all real accounts have all community

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

2014-05-21 Thread John Wiegley
Martin Blais bl...@furius.ca writes: It's true that this is not a nice solution, but neither is using virtual accounts, because you give up the balancing check, which in my view is simply not an acceptable option... It might look nice, but it makes it really easy for you to make a mistake

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

2014-05-21 Thread Eric Abrahamsen
Martin Michlmayr t...@cyrius.com writes: * Eric Abrahamsen e...@ericabrahamsen.net [2014-05-19 09:59]: ~ Monthly ; Payee: Tax Dodgers, Inc Assets:Merchants:5231 7000 RMB ; regular salary part Assets:Receivable 3000 RMB ; receipts

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

2014-05-20 Thread Stefano Zacchiroli
On Mon, May 19, 2014 at 07:51:51PM -0400, Martin Michlmayr wrote: I essentially convert Assets:Reimbursable to Assets:Receivable. When I submit my expense report, I'm just awaiting payment from my employer. So, do you have a way to automatically check that, for each expense report, your

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

2014-05-20 Thread Stefano Zacchiroli
On Sat, May 17, 2014 at 11:37:01PM -0400, Martin Blais wrote: Now the truly, wonderfully great thing is how much *power* we have using our little text files. It's exhilarating. I can write a little script that renames my accounts automatically - I use xx-rename - look at it in visual diff, run

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

2014-05-20 Thread Martin Blais
On Tue, May 20, 2014 at 6:06 AM, Stefano Zacchiroli z...@upsilon.cc wrote: On Sat, May 17, 2014 at 11:37:01PM -0400, Martin Blais wrote: Now the truly, wonderfully great thing is how much *power* we have using our little text files. It's exhilarating. I can write a little script that

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

2014-05-20 Thread Martin Michlmayr
* Martin Blais bl...@furius.ca [2014-05-20 00:45]: Another thing I forgot to mention is that tags have proved to be awfully easy to forget to insert. That's true, although: 1) Most of my CVS-ledger process is semi-automated and adds the right tags for me. 2) You could add account checks that

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

2014-05-20 Thread Martin Michlmayr
* Stefano Zacchiroli z...@upsilon.cc [2014-05-20 11:59]: So, do you have a way to automatically check that, for each expense report, your employee has actually reimbursed you the exact amount you've asked for? (It doesn't always happen with my employer, and when it doesn't I want to

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

2014-05-19 Thread Martin Blais
​ Martin Blais bl...@furius.ca writes: It would be useful to build a list of real-world use cases of virtual postings and see if they can all be solved without or not - make a compelling argument about the need for virtual postings. I'd be interested to know your solution to the

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

2014-05-19 Thread Martin Michlmayr
* Eric Abrahamsen e...@ericabrahamsen.net [2014-05-19 09:59]: ~ Monthly ; Payee: Tax Dodgers, Inc Assets:Merchants:5231 7000 RMB ; regular salary part Assets:Receivable 3000 RMB ; receipts Income:Salary Is this just an example

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

2014-05-19 Thread Martin Michlmayr
* Martin Blais bl...@furius.ca [2014-05-19 15:42]: If not, this is easily solved using subaccounts. I must say I'm with John on this: virtual accounts are a much more elegant solution in this case than what you propose. I'm not sure if there's a way to achieve what John wants with tags. I

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

2014-05-19 Thread Nathan Grigg
On May 19, 2014, at 5:04 PM, Martin Michlmayr t...@cyrius.com wrote: 2014-05-19 * Booking tithe Assets:US:BofA:Checking -300 USD Assets:US:BofA:Checking:Tithe300 USD Now you're creating an account that doesn't exist, which I don't find ideal. The real problem is that you've

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

2014-05-19 Thread Martin Blais
On Mon, May 19, 2014 at 8:04 PM, Martin Michlmayr t...@cyrius.com wrote: * Martin Blais bl...@furius.ca [2014-05-19 15:42]: If not, this is easily solved using subaccounts. I must say I'm with John on this: virtual accounts are a much more elegant solution in this case than what you

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

2014-05-19 Thread Martin Blais
On Tue, May 20, 2014 at 12:15 AM, Martin Blais bl...@furius.ca wrote: Expenses:Taxes:US:TY2014:Google:Federal Expenses:Taxes:US:TY2014:Google:StateNY Expenses:Taxes:US:TY2014:Google:CityNYC ... I don't see the advantage of putting your employer's name there. If you really want

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

2014-05-18 Thread Martin Blais
On Sat, May 17, 2014 at 9:04 PM, I'm starting to think that I should start creating a distinct expense account for each tax year, because that's how both the Canadian and US governments handle it: amounts that you post get booked to a particular year I'd use tags. That would work

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

2014-05-18 Thread Lifepillar
In article CAK21+hObT7wAsaUVtaWJ00EZbCNCZp3oSd3RUg=pq5caah+...@mail.gmail.com, Martin Blais bl...@furius.ca wrote: Now the truly, wonderfully great thing is how much *power* we have using our little text files. Totally agree. The only thing that could compete (and possibly be superior)

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

2014-05-18 Thread Lifepillar
In article 20140517224631.ga27...@jirafa.cyrius.com, Martin Michlmayr t...@cyrius.com wrote: Oh, you probably meant gross income of $5200 consisting of $5100 taxable income and a $100 tax-exempt allowance. Sure, sorry for not being more explicit. Thank you all, I've learned a lot! As I said,

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

2014-05-18 Thread John Wiegley
Martin Blais bl...@furius.ca writes: It would be useful to build a list of real-world use cases of virtual postings and see if they can all be solved without or not - make a compelling argument about the need for virtual postings. I'd be interested to know your solution to the following

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

2014-05-18 Thread Eric Abrahamsen
Martin Blais bl...@furius.ca writes: [...] It would be useful to build a list of real-world use cases of virtual postings and see if they can all be solved without or not - make a compelling argument about the need for virtual postings. I have a fairly simple use-case, the system for which

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
' cannot accept virtual and non-virtual postings to the same account For some reason these commands gives the right output: ledger bal budget ledger reg budget But these give the error above: ledger reg -s budget ledger reg -M budget My intention is to add hours like in the entry below

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: 'equity' cannot accept virtual and non-virtual postings to the same account

2014-05-16 Thread John Wiegley
) (1000,00 NOK * amount) Example command and output: ledger reg -s budget While handling posting from /home/jostein/Documents/Finans/ledger/project.dat, line 16: (Assets:Project:Budget) (1000,00 NOK * amount) Error: 'equity' cannot accept virtual and non-virtual postings to the same

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

2014-05-16 Thread Martin Blais
/jostein/Documents/Finans/ledger/project.dat, line 16: (Assets:Project:Budget) (1000,00 NOK * amount) Error: 'equity' cannot accept virtual and non-virtual postings to the same account -- --- You received this message because you are subscribed to the Google Groups Ledger group

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

2014-05-15 Thread Jostein Berntsen
from /home/jostein/Documents/Finans/ledger/project.dat, line 16: (Assets:Project:Budget) (1000,00 NOK * amount) Error: 'equity' cannot accept virtual and non-virtual postings to the same account Jostein -- --- You received this message because you are subscribed to the Google Groups