Re: Importing example in Beancount v2

2014-01-18 Thread Simon Michael

On 1/12/14 12:32 PM, John Wiegley wrote:

Martin Blais bl...@furius.ca writes:

I haven't released the Beancount rewrite yet - though stable, I do want to
complete documentation and do a few more things before I make it final - but
some new users have asked me for an example of how I deal with import. So I
took some time to write a good example of creating an import configuration
and importing a sample OFX file into a Beancount ledger.


Glad to see that the Beancount part of the Ledger universe is alive and well,
Martin!  I'm very glad to see the diversity of ideas.


Hear hear!

It's very interesting to see other approaches. Nice examples/. I'm 
looking forward to the release.



--

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Automated transaction converting hours to dollars

2014-01-18 Thread Rick F
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


budget bug

2014-01-18 Thread msft1055
~ Yearly from 2014/01/01 to 2014/12/31
Expenses:Health  $2400 
Expenses:Food:Restaurant  $1200
Expenses:Food:Groceries  $5400
Assets

1/7 bartell
Expenses:Food:Groceries  ($3.69 * 4)
amexCC

1/17 
Expenses:Food:Restaurant  $15 
amexCC

1/18 
Expenses:Health:SelfPay:Medication  $40.95
amexCC 




Note that the health account amount is wrong  

Report: budgetSpending
Command: ledger -f expb.ledger --budget --yearly register ^expenses
==

':0:'14-Jan-01 - 14-Dec-31   Expense:Food:Groceries$-5385.24   
 $-5385.24
':0:'Expens:Food:Restaurant$-1200.00   
 $-6585.24
':0:'Expenses:Health   $-2400.00   
 $-8985.24


now if I remove the 2 transactions dated 1/7 and 1/17
the report is correct 

bug filed  as  http://bugs.ledger-cli.org/show_bug.cgi?id=1008 

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Automated transaction converting hours to dollars

2014-01-18 Thread Rick F
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.