On Saturday, May 17, 2014 9:10:04 PM UTC+2, Jostein Berntsen wrote:
>
> On 16.05.14,22:06, John Wiegley wrote:
> > >>>>> Jostein Berntsen <[email protected]> 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 1000000,00 NOK
> >
> > > Equity:Opening Balance
> >
> > > = /TeamDev/
> > > (Assets:Project:Budget) (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
> > > 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 to the Budget account
> and calculated into a total cost in NOK. How is the best way to do this?
>
> 2014/04/17 Resource 1 - Week 16, 2014 Book
> ; Week16: 2014
> ; Resource1: John James
> ; TeamDev: Workshop and plannning
> Allocation:Resources:TeamDev -15 H
> Assets:Project:Budget
>
>
> Jostein
>
>
>
I solved this by entering this code for the automated transactions instead:
= /TeamDev/
Assets:Allocation:Hours (1000,00 NOK * amount)
Assets:Project:Budget (-1000,00 NOK * amount)
= /TeamTest/
Assets:Allocation:Hours (800,00 NOK * amount)
Assets:Project:Budget (-800,00 NOK * amount)
and:
2014/04/18 Resource 1 - Week 16, 2014
; Week16: 2014
; Resource1: John James
Expenses:Resources:TeamDev 15 H; Hours
Assets:Allocation:Hours
2014/04/18 Resource 2 - Week 16, 2014
; Week16: 2014
; Resource2: Jim Ding
Expenses:Resources:TeamDev 30 H; Hours
Assets:Allocation:Hours
Jostein
--
---
You received this message because you are subscribed to the Google Groups
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.