Hi Neal, you want to do this:
2014-03-19 Antonio Example
Income:Consulting:aexample -1.2h @ $50
Assets:Accounts Receivable:aexample
On Wednesday, March 19, 2014 7:32:09 PM UTC-7, Neal Fultz wrote:
>
>
> I'd like to keep rates along with my entries and let ledger do the
> computation.
>
> Let's say I'm consulting and go a little over an hour. My rate is $50/h
>
>
> Here is what I've tried:
>
> 2014-03-19 Antonio Example
> Income:Consulting:aexample -72m @ $50/h
> Assets:Accounts Receivable:aexample
>
> $ledger -f temp balance --basis
> While parsing file "temp", line 2:
> While parsing posting:
> Income:Consulting:aexample -72m @ $50/h
> ^^^^^
> Error: Unexpected char '/' (Note: inline math requires parentheses)
>
>
>
> So adding parens like it says:
>
> 2014-03-19 Antonio Example
> Income:Consulting:aexample -72m @ ($50/h)
> Assets:Accounts Receivable:aexample
>
>
> $ledger -f temp balance --basis
> While parsing file "/home/nfultz/njnm/temp", line 2:
> While evaluating value expression:
> ($50 / h)
> ^
> While parsing posting:
> Income:Consulting:aexample -72m @ ($50/h)
> ^^^^^^^
> Error: Unknown identifier 'h'
>
>
>
> Adding a 1 fixes that error, but :
>
>
> 2014-03-19 Antonio Example
> Income:Consulting:aexample -72m @ ($50/1h)
> Assets:Accounts Receivable:aexample
>
> $ledger -f temp balance
> $1 Assets:Accounts Receivable:aexample
> -1.25h Income:Consulting:aexample
> --------------------
> $1
> -1.25h
>
>
> Can someone explain how it's calculating $1 ? I feel like I'm getting
> close.
>
> -Neal
>
>
>
>
--
---
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.