Re: [Share] Report Scripts for Ledger CLI with Gnuplot

2017-01-13 Thread 'Phil Gee' via Ledger
Nice Plots, thanks!

Am Montag, 2. Januar 2017 19:38:48 UTC+1 schrieb Shaodong Di:
>
> Hi, I've been using Ledger for a year now. I made 6 script with Gnuplot 
> based on Ledger's default report script. They plot good graphs, detailed 
> can be found on my blog post: 
> https://www.sundialdreams.com/report-scripts-for-ledger-cli-with-gnuplot/
> I hope it can help build a great personal financial report of 2016.
>
> P.S. Happy new year!
>

-- 

--- 
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/d/optout.


Re: Question about Automated transactions

2016-04-26 Thread 'Phil Gee' via Ledger
Thanks! That works great!

Am Sonntag, 24. April 2016 19:16:40 UTC+2 schrieb Phil Gee:
>
> Hi, 
>
> I'm back again with a question. I really, really love what I can do with 
> automated transactions. However, I run into one problem: Suppose I have a 
> credit card whose debt I track in Liabilities:CreditCard. Generally its 
> rather nice to see how my equity is in the current month. That I can do 
> with ledger assets liabilities. Each month I pay my current credit card 
> debt, i.e. I know that after this payments that Liabilities:CreditCard 
> won't affect this months' equity. However, running ledger assets 
> liabilities would be affected by all credit card payments done 
> afterwards. I would like to split Liabilities:CreditCard in 
> Liabilities:CreditCard:Current and Liabilities:CreditCard:Next. In 
> Liabilities:CreditCard:Current I would have all payments which are due this 
> month, in Liabilities:CreditCard:Next all payments due next month. 
>
> It would be great to have an automated transaction which transfers the 
> content of Liabilities:CreditCard:Next to Liabilities:CreditCard:Current 
> when my paycheck arrives. I started with 
>
>
> = /Income:Salary/
> * Liabilities:CreditCard:Current 1.0
> * Liabilities:CreditCard:Next -1.0
>
> but that obviously would lead to a transfer of an amount which is equal to 
> Income:Salary. 
>

-- 

--- 
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/d/optout.


Question about Automated transactions

2016-04-24 Thread 'Phil Gee' via Ledger
Hi, 

I'm back again with a question. I really, really love what I can do with 
automated transactions. However, I run into one problem: Suppose I have a 
credit card whose debt I track in Liabilities:CreditCard. Generally its 
rather nice to see how my equity is in the current month. That I can do 
with ledger assets liabilities. Each month I pay my current credit card 
debt, i.e. I know that after this payments that Liabilities:CreditCard 
won't affect this months' equity. However, running ledger assets liabilities 
would be affected by all credit card payments done afterwards. I would like 
to split Liabilities:CreditCard in Liabilities:CreditCard:Current and 
Liabilities:CreditCard:Next. In Liabilities:CreditCard:Current I would have 
all payments which are due this month, in Liabilities:CreditCard:Next all 
payments due next month. 

It would be great to have an automated transaction which transfers the 
content of Liabilities:CreditCard:Next to Liabilities:CreditCard:Current 
when my paycheck arrives. I started with 


= /Income:Salary/
* Liabilities:CreditCard:Current 1.0
* Liabilities:CreditCard:Next -1.0

but that obviously would lead to a transfer of an amount which is equal to 
Income:Salary. 

-- 

--- 
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/d/optout.


Re: Forecasting problems

2016-04-06 Thread 'Phil Gee' via Ledger
Thanks alot for the info!

Am Samstag, 26. März 2016 20:53:27 UTC+1 schrieb aso...@gmail.com:
>
> I run version 3.1.1-20160111 and had a similar issue. I debugged my ledger 
> file by commenting the periodic transactions one by one. I found this one 
> causing the trouble:
>
> ~ Yearly March
> Expenses:Insurance $19
> Assets:Bank
>
> Apparently this is the wrong way of writing a period expression. The 
> correct would be "~ Yearly from March" and everything started working.
>
> I then realized that a few of the expressions were not even taken into 
> consideration, so I changed them a little bit and ordered them by 
> "Monthly", "Quarterly" and "Yearly". Maybe it has nothing to do with the 
> calculations but it helped me understand the issue and debug.
>
> So you probably have a wrong expression in your file.
>
>
>
> On Friday, February 12, 2016 at 11:36:17 PM UTC+1, Phil Gee wrote:
>>
>> Oh, I am using 3.1.0-20141005.
>>
>> Am Freitag, 12. Februar 2016 23:35:15 UTC+1 schrieb Phil Gee:
>>>
>>> Hi,
>>>
>>> Since some time I cannot forecast anymore. Everytime I try to make a 
>>> forecast - even the example file posted earlier (
>>> https://groups.google.com/forum/#!searchin/ledger-cli/forecast/ledger-cli/nu5t9dFOOH4/gdZEwe9SDwAJ)
>>>  
>>> I end up with the same error: 
>>>
>>> Error: Cannot increment an unstarted date interval
>>>
>>>
>>> Does somebody know what is wrong here? 
>>>
>>

-- 

--- 
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/d/optout.


Forecasting problems

2016-02-12 Thread 'Phil Gee' via Ledger
Hi,

Since some time I cannot forecast anymore. Everytime I try to make a 
forecast - even the example file posted earlier 
(https://groups.google.com/forum/#!searchin/ledger-cli/forecast/ledger-cli/nu5t9dFOOH4/gdZEwe9SDwAJ)
 
I end up with the same error: 

Error: Cannot increment an unstarted date interval


Does somebody know what is wrong here? 

-- 

--- 
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/d/optout.


Re: Forecasting problems

2016-02-12 Thread 'Phil Gee' via Ledger
Oh, I am using 3.1.0-20141005.

Am Freitag, 12. Februar 2016 23:35:15 UTC+1 schrieb Phil Gee:
>
> Hi,
>
> Since some time I cannot forecast anymore. Everytime I try to make a 
> forecast - even the example file posted earlier (
> https://groups.google.com/forum/#!searchin/ledger-cli/forecast/ledger-cli/nu5t9dFOOH4/gdZEwe9SDwAJ)
>  
> I end up with the same error: 
>
> Error: Cannot increment an unstarted date interval
>
>
> Does somebody know what is wrong here? 
>

-- 

--- 
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/d/optout.


Re: Getting Started With Ledger - a free (upcoming) introductory book on Ledger

2016-01-25 Thread Phil Gee
Great! A book on Ledger! If you need another guy for a review: 
philipp.gi...@gmail.com.

Am Samstag, 23. Januar 2016 20:57:19 UTC+1 schrieb Rolf Schröder:
>
> Dear All,
>
> my 2015's resolution was to write a small book about Ledger that I call 
> "Getting Started With Ledger". The book is an introduction to Ledger's base 
> functionalities and also describes of my personal Ledger workflow. I have 
> decoupled my actual private data from the scripts/environment I use to 
> handle it and made the latter publicly available. This allows any new user  
> to use Ledger without starting from scratch. It took me quite some time to 
> get a polished working environment which I believe other people could take 
> inspiration from.
>
> The book covers:
>
> - The basics of (double entry) accounting.
> - Installing & running basic Ledger.
> - Setting up a fully automatic environment for production use.
> - Integrating external data (CSV from banks etc.) into the journal.
> - Generating the usual reports about one's financial situation 
> automatically.
> - Advanced topics like automated transactions (briefly).
>
> The book will be freely available. I would love to have some feedback 
> before providing it to the general public. Mainly because I would like to 
> make sure things work in other other environments. But of course also to 
> find some typos ;)
>
> Contact me via rolf dot schr at gmail dot com and I'll send you a copy. 
> The code presented in the book is already available here 
> https://github.com/rolfschr/GSWL-ecosystem.
>
> Best,
> Rolf
>
>

-- 

--- 
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/d/optout.


Re: Forecasting beginning in the future

2015-12-14 Thread Phil Gee
Just FYI, I've found a workaround: I focus less on the start and more on 
the end of recurring transactions. With the following modification 
everything seems to work fine. Note the "negative Expenses" for KFW which 
compensate undue payments from january to march. 

~ Monthly until 2016/12/01
Assets:Checking  €1460.00
Income

~ Monthly until 2019/01/01
Expenses:Miete:new  €500.00
Expenses:1u1  €50.00
Expenses:Papa  €100.00
Expenses:Fahrkosten  €120.00
Expenses:Stadtwerke  €60.00
Expenses:Lebensmittel  €500.00
Expenses:Lovefilm  €2.00
Expenses:Kleidung  €100.00
Expenses:Gesundheit  €50.00
Assets:Checking

~ Monthly until 2019/01/01
Expenses:Bank  €2.00
Assets:Checking

~ Monthly until 2016/05/01
 Expenses:KFW  €120
 Assets:Checking

~ Monthly until 2016/03/01
Expenses:Miete:old  €593.00
Assets:Checking

~Monthly until 2016/03/01
Expenses:KFW  €-300.00
Assets:Checking

~ Monthly until 2019/01/01
Expenses:KFW  €300.00
Assets:Checking

~ every 3 months until 2019/01/01
Expenses:Zwangsgebühr  €54.00
Assets:Checking

2016/01/01 * Opening balances for January 2015
Assets:Checking  €9170.00
Equity

2016/01/01 * Umzug
 Expenses:Umzug  €1600
 Assets:Checking

2015/01/01 * Amazon Prime
 Expenses:Sonstiges  €50.00
 Assets:Checking




Am Samstag, 12. Dezember 2015 22:58:30 UTC+1 schrieb Phil Gee:
>
> Hi, due to losing a job and moving back into my hometown I would like to 
> use the forecast tool to estimate how long my savings last. I set up the 
> following: 
>
> ~ Monthly until 2016/12/01
> Assets:Checking  €1460.00
> Income
>
>
> ~ Monthly from 2016/01/01
> Expenses:Miete:new  €472.00
> Expenses:1u1  €50.00
> Expenses:Papa  €100.00
> Expenses:Fahrkosten  €120.00
> Expenses:Stadtwerke  €60.00
> Expenses:Lebensmittel  €500.00
> Expenses:Lovefilm  €2.00
> Expenses:Kleidung  €100.00
> Expenses:Gesundheit  €50.00
> Assets:Checking
>
> ~ Monthly from 2016/01/01
> Expenses:Bank  €2.00
> Assets:Checking
>
> ~ Monthly until 2016/05/01
>  Expenses:KFW  €120
>  Assets:Checking
>
> ~ Monthly until 2016/03/01
> Expenses:Miete:old  €593.00
> Assets:Checking
>
> ~ Monthly from 2016/04/01 until 2016/12/01
> Expenses:KFW  €300.00
> Assets:Checking
>
> ~ every 3 months from 2016/01/01
> Expenses:TVFee  €54.00
> Assets:Checking
>
>
> 2016/01/01 * Opening balances for January 2015
> Assets:Checking  €9170.00
> Equity
>
> 2016/01/01 * Umzug
>  Expenses:Umzug  €1600
>  Assets:Checking
>
>
> As far as I understand --forecast, I should see the expected development 
> of my checkings account when I send the command ledger -f 
> Budget2016_ledger.txt --forecast "d<[2017]" reg assets:checking. However, 
> if I do that, I only get
>
> 16-Jan-01 Opening balances fo.. Assets:Checking€9170.00 
> €9170.00
>
> 16-Jan-01 Umzug Assets:Checking   €-1600.00 
> €7570.00
>
> 16-Jan-01 Forecast transaction  Assets:Checking€1460.00 
> €9030.00
>
> 16-Jan-01 Forecast transaction  Assets:Checking€-120.00 
> €8910.00
>
> 16-Jan-01 Forecast transaction  Assets:Checking€-593.00 
> €8317.00
>
> 16-Feb-01 Forecast transaction  Assets:Checking€1460.00 
> €9777.00
>
> 16-Feb-01 Forecast transaction  Assets:Checking€-120.00 
> €9657.00
>
> 16-Feb-01 Forecast transaction  Assets:Checking€-593.00 
> €9064.00
>
> 16-Mar-01 Forecast transaction  Assets:Checking€1460.00
> €10524.00
>
> 16-Mar-01 Forecast transaction  Assets:Checking€-120.00
> €10404.00
>
> 16-Mar-01 Forecast transaction  Assets:Checking€-593.00 
> €9811.00
>
> 16-Apr-01 Forecast transaction  Assets:Checking€1460.00
> €11271.00
>
> 16-Apr-01 Forecast transaction  Assets:Checking€-120.00
> €11151.00
>
> 16-May-01 Forecast transaction  Assets:Checking€1460.00
> €12611.00
>
> 16-May-01 Forecast transaction  Assets:Checking€-120.00
> €12491.00
>
> 16-Jun-01 Forecast transaction  Assets:Checking€1460.00
> €13951.00
>
> 16-Jul-01 Forecast transaction  Assets:Checking€1460.00
> €15411.00
>
> 16-Aug-01 Forecast transaction  Assets:Checking€1460.00
> €16871.00
>
> 16-Sep-01 Forecast transaction  Assets:Checking€1460.00
> €18331.00
>
> 16-Oct-01 Forecast transaction  Assets:Checking€1460.00
> 

Re: Automated transaction with variable amount

2015-10-21 Thread Phil Gee
Unfortunately I have not found a solution to this problem yet but I would 
like to ask a related question: 

In the middle of each months I have to balance my credit card. Expenses I 
pay with my credit card follow this transaction scheme:
Expenses amount
Liabilities:Credit_Card

In the middle of each month the liabilities are paid off:

Liabilities:Credit_Card amount
Assets:Checking

Everything I buy in this month with my credit card will be due in the next 
month. 

 Generally I love to see my current equity each month which can be achieved 
by the command

ledger bal assets liabilities

Of course I can specify this report and eg exclude certain assets or 
certain liabilities. I would like to use that to seeonly the credit card 
debt which influence how much money I can spend in the current month . My 
idea is that I have an account liabilities:Credit_Card:Next and one called 
liabilities:Credit_Card. The first one would be used for transactions done 
after I paid off the Credit card. With a modification of the ledger command 
I could exclude the sub-account Liabilities:Credit_Card:Next from the 
balance calculation: 

ledger bal assets liabilities and not Credit_Card:Next

Now, I would like to have one automated transactions: 

- Each end of the month, when I get my salary, I would like to move the 
whole amount from Liabilities:Credit_Card:Next to Liabilities:Credit_Card

(Just a thought I got now: Could the same be achieved with effective 
dates?) 

Am Mittwoch, 14. Oktober 2015 18:48:32 UTC+2 schrieb Phil Gee:
>
> Sure! You can find the sample-file here: 
> https://drive.google.com/file/d/0B72l3wtG19gib05HT2JLYzZPaWs/view?usp=sharing
>
> Am Mittwoch, 14. Oktober 2015 08:26:46 UTC+2 schrieb John Wiegley:
>>
>> >>>>> Phil Gee <philip...@googlemail.com> writes: 
>>
>> > Hi John, As far as I have checked there are either tabs or two 
>> whitespaces 
>> > between account name and amount. 
>>
>> Hmm.. this is rather odd, then.  Can you attach your copy of the file 
>> that 
>> uses correct whitespace, so I can take a look? 
>>
>> John 
>>
>

-- 

--- 
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/d/optout.


Re: LedgeR - a shiny visualization of account values

2015-10-20 Thread Phil Gee
@lifepillar,

thanks für the feedback! Regarding the usage of vim with R I unfortunately 
do not know much, but have you tried this plugin: 
http://www.vim.org/scripts/script.php?script_id=2628
- Thanks for the information regarding formatting numbers in Ledger. I have 
to say that I have to learn a lot in this regard.

- You are of course right to swap the signs which would come in handy when 
distinguishing debits and credits. I'll implement that.
 
- Regarding the different commodities I have to admit that I am a complete 
newbie. I dabbled some time in cryptotrading, so the respective 
transactions might be a decent training ground. But getting the hang of 
different commodities might take some time.

- With the pie chart you are completely right, I mainly wanted to obtain a 
qualitative information (and use a pie-chart), but I will apply a bar chard 
instead. 

- I will at least look upon the sourcecode of the Ledger-plugin. Heat maps 
of the net worth sound too interesting not to be implemented!

- As I finally need to learn to use ggplot2 (I mean, its embarassing not to 
use this package...) I will at one time switch to ggplot2.

@Chris Bennet:
I also thank you for the feedback! The screenshot will be uploaded after I 
get home from work!

-- 

--- 
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/d/optout.


LedgeR - a shiny visualization of account values

2015-10-17 Thread Phil Gee
Hi all, 

bored during watching TV I played a little bit around with the shiny 
dashboard-framework of R and made a small visualization tool of the account 
balance and the register in R. It is of course a really rough sketch, will 
be quite buggy, so suggestions and criticism is greatly appreciated. Some 
aspects of the implementation are rather specified to the way I use Ledger, 
eg my Account structure is at the max three levels deep. That being said, 
have fun:

https://github.com/PGiese/LedgeR

-- 

--- 
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/d/optout.


Re: Automated transaction with variable amount

2015-10-14 Thread Phil Gee
Sure! You can find the sample-file 
here: 
https://drive.google.com/file/d/0B72l3wtG19gib05HT2JLYzZPaWs/view?usp=sharing

Am Mittwoch, 14. Oktober 2015 08:26:46 UTC+2 schrieb John Wiegley:
>
> >>>>> Phil Gee <philip...@googlemail.com > writes: 
>
> > Hi John, As far as I have checked there are either tabs or two 
> whitespaces 
> > between account name and amount. 
>
> Hmm.. this is rather odd, then.  Can you attach your copy of the file that 
> uses correct whitespace, so I can take a look? 
>
> John 
>

-- 

--- 
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/d/optout.


Re: Automated transaction with variable amount

2015-10-13 Thread Phil Gee
Hi John, As far as I have checked  there are  either tabs or two 
whitespaces between account name and amount. 

Am Mittwoch, 14. Oktober 2015 00:15:18 UTC+2 schrieb John Wiegley:

> >>>>> Phil Gee <philip...@googlemail.com > writes: 
>
> > Ok, what I tried is the following: 
> > = /Income/ 
> > * Assets:phone €50.00 
> > * Liabilities:phone €-50.00 
>
> > ;= /Expenses:phone/ 
> > ; * Liabilities:phone 1.0 
> > ; * Assets:phone -1.0 
>
> Do you have spaces between all your account names and amounts? 
>
> John 
>

-- 

--- 
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/d/optout.


Re: Automated transaction with variable amount

2015-10-13 Thread Phil Gee
Ok, what I tried is the following: 


= /Income/
* Assets:phone  €50.00
* Liabilities:phone  €-50.00

;= /Expenses:phone/
;* Liabilities:phone  1.0
;* Assets:phone -1.0

2015/05/29 * income
Assets:Checking  €50
Income

2015/06/13 * phone
Expenses:phone  €30.00
Assets:Checking

2015/06/13 * phone
Assets:phone  €-30.00
Liabilities:phone

2015/06/29 * test
Assets:phone =€0
Liabilities:phone  =-€0
Assets

2015/06/29 * income
Assets:Checking  €50
Income


When I look upon a balance report of Assets:Checking and Liabilities:phone 
I get the result I hoped for: 

15-May-29 phone Liabilities:phone   €-50.00 
 €-50.00
15-Jun-13 phone Liabilities:phone€30.00 
 €-20.00
15-Jun-29 test Liabilities:phone   €-30.00 
 €-50.00

So, the overall amount of Liabilities:phone is re-set to €-50.00

This works fine, however, if I want to use the second automated transaction 
(which is currently outcommented) and hence get rid of manually writing 
2015/06/13 * phone
Assets:phone  €-30.00
Liabilities:phone

I get the following error: 
"Error: Only one posting with null amount allowed per transaction"

Could someone help me get rid of this error? Thanks!

Am Sonntag, 11. Oktober 2015 08:47:30 UTC+2 schrieb Phil Gee:
>
> @Ryan: My goal is that these €20 should remain in Assets:Checking for the 
> next month. 
>

-- 

--- 
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/d/optout.


Re: Automated transaction with variable amount

2015-10-11 Thread Phil Gee
@Ryan: My goal is that these €20 should remain in Assets:Checking for the 
next month. 

-- 

--- 
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/d/optout.


Automated transaction with variable amount

2015-10-10 Thread Phil Gee
Each month I put some money aside resevered for paying my phone bills: 

= /Income/
* Assets:Phone  €50.00
* Liabilities:Phone  €-50.00

= /Expenses:Phone/
* Liabilities:Phone  1.0
* Assets:Phone -1.0

So, lets assume I get my income and pay my phone bill and, to make my point 
clear, the next income: 

2015/05/29 * income
Assets:Checking  €2000
Income

2015/06/13 * phone
Expenses:phone  €30.00
Assets:Checking

2015/06/29 * income
Assets:Checking   €2000
Income

Now, when we look upon the Liabilities:Phone register we get: 

15-May-29 incomeLiabilities:Phone   €-50.00 
 €-50.00
15-Jun-13 phone Liabilities:Phone€30.00 
 €-20.00
15-Jun-29 incomeLiabilities:Phone   €-50.00 
 €-70.00

As we see, the Money I put aside for phone bills culminates. But that is 
not what I would like to see, I would like to have a pot filled with
€50.00 each month. So, my initial idea would be to have another transaction 
which sets my Liabilities back to zero each time I pay the phone bill. 
However, I don't know how to implement that. Can someone please help me? 

-- 

--- 
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/d/optout.


Discrepancy between gnuplot calls from emacs and from the command line

2015-01-26 Thread Phil Gee
Hi again,


I am currently experimenting with the possibilities to visualize my 
expenses etc via gnuplot. What I am puzzling about is that I get different 
pictures when executing the same line either via emacs (ie as a report) or 
from the command line (see picture). 

https://lh6.googleusercontent.com/-zJpB0hn7BlA/VMahYiNFxpI/BN8/XRZsSBWvml4/s1600/Ohne%2BTitel.tiff
In both cases this command line is executed: /report -f /Journal_ledger.txt 
-j reg Expenses, however, in the first case I get this warning 
message: Warning: empty x range [-6.31139e+10:-6.31139e+10], adjusting to 
[-6.3745e+10:-6.24828e+10]

Can someone give me a hint what I am doing wrong?

-- 

--- 
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/d/optout.


Re: Monthly Liabilities

2015-01-21 Thread Phil Gee
Thanks a lot! I think I mainly thought in the wrong direction. Either I can 
use the Liabilities-header I used for this month as a template for the next 
ones or I will plan the associated expenses as a budget. I think these 
would be solutions I can live with. 

I now know also about the scheduled transactions I can use in org-mode. So, 
with small steps proceed ;)

Am Sonntag, 18. Januar 2015 19:41:34 UTC+1 schrieb John Wiegley:

  Phil Gee philip...@googlemail.com javascript: writes: 

  Thanks for the answers. Apologies for these starter questions, I am 
 fairly 
  new to ledger. One additional question regarding ledger I have though 
  regarding scheduled transactions: Are you talking about auxiliary dates 
 or 
  writing transactions in the future? In these cases this method would be 
 of 
  little use for me as I oftentime don't know exactly when certain 
 Liabilities 
  have to be met. 

 Just as a general principle, Ledger never adds, changes or removes 
 information 
 from your data file.  If you want future transactions to be posted, you 
 either 
 have to enter them with a future date, or use an external script to 
 generate 
 them and append them to the file. 

 Ledger does have an xact command that can generate new entries based on 
 prior information found in your ledger file, but you will have to append 
 them 
 to the file yourself. 

 John 


-- 

--- 
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/d/optout.


Re: Monthly Liabilities

2015-01-18 Thread Phil Gee
Dear John, dear Craig, 

thanks for the answers. Apologies for these starter questions, I am fairly 
new to ledger. One additional question regarding ledger I have though 
regarding scheduled transactions: Are you talking about auxiliary dates or 
writing transactions in the future? In these cases this method would be of 
little use for me as I oftentime don't know exactly when certain 
Liabilities have to be met. 

Best regards, 

Philipp

Am Samstag, 17. Januar 2015 00:17:14 UTC+1 schrieb Phil Gee:

 Hi all, 

 I have a new question: 

 Currently I would like to optimize my Journal File so that monthly 
 liabilities do not need to be written every month. Thus my former 
 preamble of the Journal file:

 2015/01/01 * Opening balances for January 2015
 Assets:Checking   €2500.00
 Liabilities:MasterCard €-200
 Liabilities:Savings€-250.00
 Liabilities:Rent€-600.00
 Liabilities:Loan   €-120.00
 Equity

 I have changed to this one: 

 ~ Monthly from 2014/12/01
 Liabilities:Savings€-250.00
 Liabilities:Rent€-600.00
 Liabilities:Loan€-120.00
 Assets 
 2015/01/01 * Opening balances for January 2015
 Assets:Checking €2500
 Liabilities:MasterCard €-200
 Equity

 Lets say, that I had a later transaction where I payed my rent:

 2015/01/10 * Rent
 Liabilities:Rent €600.00
 Assets:Checking

 If I check the Balance reports, I get for the first version this one:
 €1900.00  Assets:Checking
€-1330.00  Equity
 €-570.00  Liabilities
 €-120.00Loan
 €-200.00MasterCard
 €-250.00Savings
 
0

 but for the second version that one:
  
 €1900.00  Assets:Checking
€-2300.00  Equity
  €400.00  Liabilities
 €-200.00MasterCard
  €600.00Rent
 
0

 Thus though I see that I spent my rent the monthly liabilities are not 
 expressed in the report. Can someone tell me where I make an error? 

 Best,

 Philipp


-- 

--- 
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/d/optout.


Monthly Liabilities

2015-01-16 Thread Phil Gee
Hi all, 

I have a new question: 

Currently I would like to optimize my Journal File so that monthly 
liabilities do not need to be written every month. Thus my former 
preamble of the Journal file:

2015/01/01 * Opening balances for January 2015
Assets:Checking   €2500.00
Liabilities:MasterCard €-200
Liabilities:Savings€-250.00
Liabilities:Rent€-600.00
Liabilities:Loan   €-120.00
Equity

I have changed to this one: 

~ Monthly from 2014/12/01
Liabilities:Savings€-250.00
Liabilities:Rent€-600.00
Liabilities:Loan€-120.00
Assets 
2015/01/01 * Opening balances for January 2015
Assets:Checking €2500
Liabilities:MasterCard €-200
Equity

Lets say, that I had a later transaction where I payed my rent:

2015/01/10 * Rent
Liabilities:Rent €600.00
Assets:Checking

If I check the Balance reports, I get for the first version this one:
€1900.00  Assets:Checking
   €-1330.00  Equity
€-570.00  Liabilities
€-120.00Loan
€-200.00MasterCard
€-250.00Savings

   0

but for the second version that one:
 
€1900.00  Assets:Checking
   €-2300.00  Equity
 €400.00  Liabilities
€-200.00MasterCard
 €600.00Rent

   0

Thus though I see that I spent my rent the monthly liabilities are not 
expressed in the report. Can someone tell me where I make an error? 

Best,

Philipp

-- 

--- 
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/d/optout.


Re: Cannot get ledger-mode to run properly

2015-01-12 Thread Phil Gee
Thanks for the answers so far. Currently I am a little bit puzzled because 
after restarting emacs the ledger-mode does not work anymore, I get the 
following message:

File mode specification error: (file-error Cannot open load file no such 
file or directory ledger-mode)

The filename is Journal_ledger.txt and the .emacs part concerning ledger 
is as follows:

(autoload 'ledger-mode ledger-mode A major mode for Ledger t)

(add-to-list 'load-path
 (expand-file-name 
/usr/local/Cellar/ledger/3.1/share/emacs/site-lisp/))
(add-to-list 'auto-mode-alist '(\_ledger.txt$ . ledger-mode))



Am Samstag, 10. Januar 2015 14:12:10 UTC+1 schrieb Phil Gee:

 Hello, 

 I am fairly new to ledger and emacs. Ok, to be more precise I currently 
 give emacs a second chance by using it for ledger. The latter one works 
 perfectly fine as command line tool in any folder, ie ledger is to be found 
 in the $PATH-variable. However, if I try to run ledger-mode in emacs 
 (obviously after setting it up in .emacs as described in the manual) I get 
 the error message  after trying to generate a balance record:

 Command: ledger -f /Users/phil/ledger/test/input/demo.ledger bal

 ===

 /bin/bash: ledger: command not found

 Hmm... Could it be that the emacs shell works with a different 
 $PATH-variable? 

 My .emacs-file contains the following passage (copypasted from the manual):

 ;; Setting up Ledger
 (autoload 'ledger-mode ledger-mode A major mode for Ledger t)

 (add-to-list 'load-path
  (expand-file-name 
 /usr/local/Cellar/ledger/3.1/share/emacs/site-lisp/ledger))
 (add-to-list 'auto-mode-alist '(\\.ledger$ . ledger-mode))

 I tried to append my $PATH-Variable by reading it during the 
 initialization:

 (let ((path (shell-command-to-string . ~/.bashrc; echo -n $PATH)))
   (setenv PATH path)
   (setq exec-path 
 (append
  (split-string-and-unquote path :)
  exec-path)))


 However, without any success...

 What am I doing wrong?

 Best, 

 Philipp


-- 

--- 
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/d/optout.


Re: Cannot get ledger-mode to run properly

2015-01-11 Thread Phil Gee
That was the needed solution. Thanks a lot!

Am Samstag, 10. Januar 2015 14:12:10 UTC+1 schrieb Phil Gee:

 Hello, 

 I am fairly new to ledger and emacs. Ok, to be more precise I currently 
 give emacs a second chance by using it for ledger. The latter one works 
 perfectly fine as command line tool in any folder, ie ledger is to be found 
 in the $PATH-variable. However, if I try to run ledger-mode in emacs 
 (obviously after setting it up in .emacs as described in the manual) I get 
 the error message  after trying to generate a balance record:

 Command: ledger -f /Users/phil/ledger/test/input/demo.ledger bal

 ===

 /bin/bash: ledger: command not found

 Hmm... Could it be that the emacs shell works with a different 
 $PATH-variable? 

 My .emacs-file contains the following passage (copypasted from the manual):

 ;; Setting up Ledger
 (autoload 'ledger-mode ledger-mode A major mode for Ledger t)

 (add-to-list 'load-path
  (expand-file-name 
 /usr/local/Cellar/ledger/3.1/share/emacs/site-lisp/ledger))
 (add-to-list 'auto-mode-alist '(\\.ledger$ . ledger-mode))

 I tried to append my $PATH-Variable by reading it during the 
 initialization:

 (let ((path (shell-command-to-string . ~/.bashrc; echo -n $PATH)))
   (setenv PATH path)
   (setq exec-path 
 (append
  (split-string-and-unquote path :)
  exec-path)))


 However, without any success...

 What am I doing wrong?

 Best, 

 Philipp


-- 

--- 
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/d/optout.


Cannot get ledger-mode to run properly

2015-01-10 Thread Phil Gee
Hello, 

I am fairly new to ledger and emacs. Ok, to be more precise I currently 
give emacs a second chance by using it for ledger. The latter one works 
perfectly fine as command line tool in any folder, ie ledger is to be found 
in the $PATH-variable. However, if I try to run ledger-mode in emacs 
(obviously after setting it up in .emacs as described in the manual) I get 
the error message  after trying to generate a balance record:

Command: ledger -f /Users/phil/ledger/test/input/demo.ledger bal
===

/bin/bash: ledger: command not found

Hmm... Could it be that the emacs shell works with a different 
$PATH-variable? 

My .emacs-file contains the following passage (copypasted from the manual):

;; Setting up Ledger
(autoload 'ledger-mode ledger-mode A major mode for Ledger t)

(add-to-list 'load-path
 (expand-file-name 
/usr/local/Cellar/ledger/3.1/share/emacs/site-lisp/ledger))
(add-to-list 'auto-mode-alist '(\\.ledger$ . ledger-mode))

I tried to append my $PATH-Variable by reading it during the initialization:

(let ((path (shell-command-to-string . ~/.bashrc; echo -n $PATH)))
  (setenv PATH path)
  (setq exec-path 
(append
 (split-string-and-unquote path :)
 exec-path)))


However, without any success...

What am I doing wrong?

Best, 

Philipp

-- 

--- 
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/d/optout.