Figured it out.  Not sure this is documented anywhere, but Ledger seems to 
just take the first unit it finds on a line as the unit of the answer, so 
if I want the result to be in dollars, I make the first number in the 
calculation a dollar amount:

= ^time
  income  ($95 * amount)
  billable  ($-95 * amount)

Except the amount is in seconds, not hours, so it needs to be converted to 
hours:

= ^time
  income  ($95 * amount / 3600)
  billable  ($-95 * amount / 3600)

On Saturday, January 18, 2014 10:53:59 AM UTC-8, Rick F wrote:
>
> This has to have come up a lot but I can't find any mention of it here or 
> in the documentation.
>
> How do you write an automated transaction to convert hours spent to 
> dollars billable?
>
> This just bills 95 hours per hour instead of dollars per hour:
>
> = ^time
>   income  95
>   billable  -95
>
>

-- 

--- 
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/groups/opt_out.

Reply via email to