Re: formatting in ledger, trying to get display_total in a straight line.

2020-07-20 Thread James
Yes. Absolutely,
The desired output is like in the Ledger manual example:-

https://imgur.com/a/hhJjDrd

When I try doing this on my machine the display totals(and percent values) 
are messy. They are not straight but rather squiggly. I think it has to do 
something with the formatting commands. 

Current Output :

 Food 10.00 USD
  Water 5.00 USD
  Egg 2.00 USD
  Cheese 3.00 USD



Desired Output : 

 Food   10.00 USD
  Water  5.00 USD
  Egg  2.00 USD
  Cheese   3.00 USD






On Tuesday, July 21, 2020 at 1:25:50 AM UTC+7 Sam Tetruashvili wrote:

> Can you provide an example of your desired output?
>
> On Mon, Jul 20, 2020 at 2:00 PM James  wrote:
>
>> Hi,
>>
>> I am struggling with ledger formatting. I am trying to get the total 
>> amount in a straight line. 
>>
>> --format "\ %((depth_spacer)+(partial_account))\  %(display_total)\n%/"
>>
>>
>> I am not very good with the formatting and would appreciate if someone 
>> could help with the above so that the display_total is indented (and in a 
>> straight line).
>>
>> Thanks !
>>
>> -- 
>>
>> --- 
>> 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+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/ledger-cli/655787e0-e603-4413-8691-71133e21a84co%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/ledger-cli/655787e0-e603-4413-8691-71133e21a84co%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/69f17883-bee4-432e-96cc-642435b62a5an%40googlegroups.com.


formatting in ledger, trying to get display_total in a straight line.

2020-07-20 Thread James
Hi,

I am struggling with ledger formatting. I am trying to get the total amount 
in a straight line. 

--format "\ %((depth_spacer)+(partial_account))\  %(display_total)\n%/"


I am not very good with the formatting and would appreciate if someone 
could help with the above so that the display_total is indented (and in a 
straight line).

Thanks !

-- 

--- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ledger-cli/655787e0-e603-4413-8691-71133e21a84co%40googlegroups.com.


How many Windows Users here?

2018-07-05 Thread James

Hi,

This is  question that comes out of curiosity. How many Windows users are 
there that are using Ledger on their machine and whats their set-up? 

- 1 . Which version Windows? 
- 2.  Using Emacs as their editor?
- 3. GPG support good? 


-- 

--- 
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: Forcing output of timekeeping in one unit with --amount-data or --total-data

2018-01-24 Thread James A. Robinson
Thank you!  I think --base would certainly work for the OP, who wanted
something consistent to graph.
Looking again at the manual page I had failed to see that there is

--time-colon -  Display the value for commodities based on seconds as hours
and minutes.  Thus 8100s will be displayed as 2:15h instead of 2.25h.

which is basically what I was after.

Jim

On Wed, Jan 24, 2018 at 4:16 PM Clément Pit-Claudel 
wrote:

> On 2018-01-24 18:37, Jim Robinson wrote:
> > I'm very interested in the answer to this, I was just poking around in
> the documentation trying to see if this was addressed an unable to spot it
> on my first pass.
> >
> > I was looking to see if I could either always produce minutes, or
> produce " h  m" instead of fractional hours.
>
> Did you try --base?
>
> - Added --base reporting option, for reporting convertible commodities
>   in their most basic form.  For example, if you read a timeclock file
>   with Ledger, the time values are reported as hour and minutes --
>   whichever is the most compact form.  But with --base, Ledger reports
>   only in seconds.
>
> ---
> 2017/01/01 * Client 1
> A  5m
> B  7m
> C
>
> 2017/01/02 * Client 2
> A  5h
> B  5h
> C
> ---
>
> $ ledger -f test.ledger --daily --base reg
>
> 2017-01-01 - 2017-01-01 A  300s
>  300s
> B  420s
>  720s
> C -720s
> 0
> 2017-01-02 - 2017-01-02 A18000s
>  18000s
> B18000s
>  36000s
> C   -36000s
> 0
>
> $ ledger -f test.ledger --daily --amount-data --base reg
>
> 2017-01-01 300
> 2017-01-01 420
> 2017-01-01 -720
> 2017-01-02 18000
> 2017-01-02 18000
> 2017-01-02 -36000
>
> Clément.
>

-- 

--- 
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.


Trying to Visualize Data

2017-06-21 Thread James
Hi,
What are some good ways to visualize ledger data? 
i recognize there is ledger-web on :-

https://github.com/slashdotdash/node-ledger-web

I have tried using ledger-web but I get a blank screen on the Express 
Server even though Ledger is in my binary.

Any other solutions available or what am I doing wrong ? 


Thanks 

-- 

--- 
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: Trying to get Ledger to not Collapse for Single sub totals

2017-05-28 Thread James
Also does Ledger do a T based accounting report ?

On Sunday, May 28, 2017 at 12:14:15 AM UTC+8, James wrote:
>
> Hi,
> How do I get ledger to not collapse at single subtotal headings?
> Appreciate if someone could help with this. 
>
> Thanks
>
>

-- 

--- 
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: Trying to get Ledger to not Collapse for Single sub totals

2017-05-28 Thread James
Hi,
So for example I run the bal command 
I get Expenses:Food in my report because there is no hierarchal branches. 
Is there a way to make ledger make a branch even tho its only 1 
item/category?
Like the below:-

Expenses 
 Food

I hope I am making sense here.





On Sunday, May 28, 2017 at 12:14:15 AM UTC+8, James wrote:
>
> Hi,
> How do I get ledger to not collapse at single subtotal headings?
> Appreciate if someone could help with this. 
>
> Thanks
>
>

-- 

--- 
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.


Trying to get Ledger to not Collapse for Single sub totals

2017-05-27 Thread James
Hi,
How do I get ledger to not collapse at single subtotal headings?
Appreciate if someone could help with this. 

Thanks

-- 

--- 
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: Currency Change [Closed]

2017-05-26 Thread James
Once again sorry here..  I read some older forum and its D CAD 1,000.00 for 
currency specificity.

My apologies. 

On Friday, May 26, 2017 at 10:52:52 PM UTC+8, James wrote:
>
> Hi,
> I have added the following on the top of my ledger file 
>
> = P 2017/05/26 USD 1.35 CAD
>
> I assume the above should enable me to use -X CAD and get a report in CAD 
> but it doesn't .
>
> Any suggestions?
>
>
>

-- 

--- 
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: Currency Change

2017-05-26 Thread James
Sorry, my bad. It works

I am only having problem with the formatting where number and the currency  
ie = CAD68.00 
I also have currency formatting set as :-

= CAD 1,000.00

Appreciate if someone could help here .


On Friday, May 26, 2017 at 10:52:52 PM UTC+8, James wrote:
>
> Hi,
> I have added the following on the top of my ledger file 
>
> = P 2017/05/26 USD 1.35 CAD
>
> I assume the above should enable me to use -X CAD and get a report in CAD 
> but it doesn't .
>
> Any suggestions?
>
>
>

-- 

--- 
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.


Currency Change

2017-05-26 Thread James
Hi,
I have added the following on the top of my ledger file 

= P 2017/05/26 USD 1.35 CAD

I assume the above should enable me to use -X CAD and get a report in CAD 
but it doesn't .

Any suggestions?


-- 

--- 
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 Transactions Identifier Error

2017-05-12 Thread James

Or would be some good ways to track interests (which are periodical and 
irregular amounts(ie. percentages) ?




On Friday, May 12, 2017 at 10:20:25 PM UTC+7, James wrote:
>
>
> Hi,
> I can't get the automated transaction below to work.
> Appreciate if someone could help with this. 
>
>
>
> While parsing file "/home/system/LedgerTest/interest_test.ledger", line 2:
> While evaluating value expression:
> (account("Liabilities") * 0.05)
> ^^
> While calling function 'account Liabilities':
> While parsing posting:
> Payable:MyCreditSupplier (account("Liabilities") * 0.05)
> ^^^
> Error: Could not find an account matching 'Liabilities'
>
>
>
> My ledger file is as follows:- 
>
> ~ monthly
>  Payable:MyCreditSupplier (account("Liabilities") * 0.05)
>  Accounts:checking
>
> 2017/01/01 Credit Goods
>  Liabilities:VendorPayable:AcmeCo US$ 5,000.00
>  Liabilities:VendorPayable:XZYCo US$ 3,000.00
>  Liabilities:VendorPayable:Untitled US$ 2,000.00
>  Assets:Inventory:Goods 
>
>
>
>
>
>
>
>
>
>

-- 

--- 
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 Transactions Identifier Error

2017-05-12 Thread James
Hi John,
Noted. I assume this has something to do with one of the cardinal rules of 
Ledger which is it does not edit or change anything in the .ledger file. 
I am considering a cron job for this. Any other suggestions?
Thanks


On Friday, May 12, 2017 at 10:20:25 PM UTC+7, James wrote:
>
>
> Hi,
> I can't get the automated transaction below to work.
> Appreciate if someone could help with this. 
>
>
>
> While parsing file "/home/system/LedgerTest/interest_test.ledger", line 2:
> While evaluating value expression:
> (account("Liabilities") * 0.05)
> ^^
> While calling function 'account Liabilities':
> While parsing posting:
> Payable:MyCreditSupplier (account("Liabilities") * 0.05)
> ^^^
> Error: Could not find an account matching 'Liabilities'
>
>
>
> My ledger file is as follows:- 
>
> ~ monthly
>  Payable:MyCreditSupplier (account("Liabilities") * 0.05)
>  Accounts:checking
>
> 2017/01/01 Credit Goods
>  Liabilities:VendorPayable:AcmeCo US$ 5,000.00
>  Liabilities:VendorPayable:XZYCo US$ 3,000.00
>  Liabilities:VendorPayable:Untitled US$ 2,000.00
>  Assets:Inventory:Goods 
>
>
>
>
>
>
>
>
>
>

-- 

--- 
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 Transactions Identifier Error

2017-05-12 Thread James

Hi,
I can't get the automated transaction below to work.
Appreciate if someone could help with this. 



While parsing file "/home/system/LedgerTest/interest_test.ledger", line 2:
While evaluating value expression:
(account("Liabilities") * 0.05)
^^
While calling function 'account Liabilities':
While parsing posting:
Payable:MyCreditSupplier (account("Liabilities") * 0.05)
^^^
Error: Could not find an account matching 'Liabilities'



My ledger file is as follows:- 

~ monthly
 Payable:MyCreditSupplier (account("Liabilities") * 0.05)
 Accounts:checking

2017/01/01 Credit Goods
 Liabilities:VendorPayable:AcmeCo US$ 5,000.00
 Liabilities:VendorPayable:XZYCo US$ 3,000.00
 Liabilities:VendorPayable:Untitled US$ 2,000.00
 Assets:Inventory:Goods 









-- 

--- 
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-mode color customization

2017-05-12 Thread James
Thanks. I  got it working now .


On Friday, May 12, 2017 at 7:43:35 PM UTC+7, Craig Earls wrote:
>
> There is a much easier way.  Under the ledger menu in emacs is "Customize 
> Ledger Mode" click on that then click on "Ledger Faces" then you can 
> customize away without altering source code that will get stomped on when 
> we release updates.  "Faces" are what emacs calls "fonts".
>
> On Thu, May 11, 2017 at 11:54 PM, Eric S Fraga  > wrote:
>
>> On Thursday, 11 May 2017 at 22:13, James wrote:
>> > hi,
>> > I was wondering if it is possible to change the ledger-mode entries
>> > (at the
>> > moment its red and blue) on my emacs.
>> > And which file would I have to edit to change colors.
>> > Thanks
>>
>> The easiest way, in my opinion, is:
>>
>> 1. put cursor on some text whose properties you wish to change.
>> 2. type C-u C-x = which will display the properties of the text
>> 3. find out from properties which face you need to customise
>> 4. type M-x customize-face RET the.face.name.from.above RET
>> 5. change and save changes
>>
>>
>> --
>> Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D)
>>
>> --
>>
>> ---
>> 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+...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Craig, Corona De Tucson, AZ
> [image: missile_flyout]
> enderw88.wordpress.com
>

-- 

--- 
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-mode color customization

2017-05-11 Thread James
ok. i found ledger-font.el and I am trying to decide for a different color 
theme. 
Something that is more apt with pastel/solarized theme. 


On Friday, May 12, 2017 at 12:13:41 PM UTC+7, James wrote:
>
> hi,
> I was wondering if it is possible to change the ledger-mode entries (at 
> the moment its red and blue) on my emacs. 
> And which file would I have to edit to change colors.
> Thanks
>
>

-- 

--- 
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-mode color customization

2017-05-11 Thread James
hi,
I was wondering if it is possible to change the ledger-mode entries (at the 
moment its red and blue) on my emacs. 
And which file would I have to edit to change colors.
Thanks

-- 

--- 
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: month to month % change expression

2017-05-09 Thread James
Hi John,
Yeah. Its like trying to see the difference in month to month expenses like 
Cafe Expenses in Jan compared to Cafe Expenses in Feb .

I currently run bal for each period but I think this would be a nice 
feature (along with % change)


On Wednesday, May 10, 2017 at 11:52:22 AM UTC+7, James wrote:
>
> Hi,
> I am trying to come up with an expression to evaluate month to month % 
> change in expenses.
> is it possible in Ledger? If so could someone share an expression that 
> could do this.
> Much appreciated. 
>
>

-- 

--- 
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.


month to month % change expression

2017-05-09 Thread James
Hi,
I am trying to come up with an expression to evaluate month to month % 
change in expenses.
is it possible in Ledger? If so could someone share an expression that 
could do this.
Much appreciated. 

-- 

--- 
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.


Colleagues want me to use GnuCash at Work

2017-04-10 Thread James
Hi,
So my colleagues at work feel that I should use GNUCash for accounting 
purpose at work.I have tried using GNUCash but its rather very 
clunky(especially after using Ledger).
At my work place we process on average 100 transactions a day and our 
ledger can grow quite quickly.  My colleagues argue that GNUCash will be 
easier manage and keep things organized as opposed to Ledger. 

I think ledger with orgmode is quite organized. Furthermore the idea of 
having the entire company account in a single text file is very 
intimidating to them so please share your views.

 Appreciate if someone could share their view on this. 

-- 

--- 
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 for Personal usage vs Small Business usage

2017-03-05 Thread James
Dee/Ajoelbin, no not all. I actually value your input (as well as every one 
else).

I just actually learned about Org-Mode and I think I would use it as my 
invoice/account statement purpose(using tables and such)
Its sad that OrgMode doesn't get much recognition for what it is. 

That being said I am going to learn more about Org Mode and hopefully that 
will be a valuable tool in keeping things more organized.








On Sunday, March 5, 2017 at 9:54:04 AM UTC+8, Marcos wrote:
>
> Hi,
> I have been using ledger for a while. I find it very useful personal usage 
> and tracking my personal expenses however using it for a Small Business 
> seems a bit daunting and/or scary.
> The idea of having all customer data on a text file as opposed to some 
> secure database does make it seem less suitable for Small Business(in my 
> opinion).
>
> On the other hand, the easy and agnostic input of data makes it a valuable 
> for rapid entries(at the same time not having proper accounting structure 
> across all files runs the risk of having strange ledger outputs). 
>
> I would like to hear what others here feel about this. 
>
> Thanks
>
>
>
>

-- 

--- 
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: How many Emacs, Vim, Sublime, Atom.io users here?

2017-02-22 Thread James
Emac users,
Do you ever get tired of the ctrl  and alt keys?
I notice from some of the documentations, there is lots of ctrl and alts .

Also if it is not too rude to ask, what is your primary input device (ie 
keyboard and machine type? )

I am asking the above because typing a lot might increase  the chances of 
RSI(this is from what I read, not sure how true it is)

Thanks



On Thursday, February 23, 2017 at 12:30:48 AM UTC+7, Michael Englehorn 
wrote:
>
> -BEGIN PGP SIGNED MESSAGE- 
> Hash: SHA256 
>
> James > writes: 
> > I just want to conduct a quick survey here. Could everyone here advise 
> which is their preferred text editor for ledger input? 
>
> Emacs user here, in fact I'm sending this from Gnus. 
> I use ledger-mode with Evil every day, I made a few keyboard shortcuts 
> to make reports and entering data faster too. 
>
> https://github.com/K0HAX/configs/blob/master/emacs/config.org 
>
> Just search for 'ledger' and you should be able to get the gist of it. 
>
> - -Michael Englehorn 
> -BEGIN PGP SIGNATURE- 
> Version: GnuPG v2 
>
> iQIcBAEBCAAGBQJYrcj6AAoJEFiya/FkvZyBX2gP/2vGB4tGCQn2xtdSVTcQogRR 
> 4KvhTeq+95T9wyEFfKHULJVe/dBoXucAR53tok7XESgz7n13CDa+XdwsSMRTDumx 
> MsluAYM2t8yT1YYdSQ1dypGzUQq9OVQ60Pgq+uB1n0bdkLaVb2FQmvYtBUBGeY8D 
> QeVk1v8OEIZMSuPunlrSrqxG7mZixJUK93vphwOiSxZlLtOTs/NxR0SZ/8J06cEV 
> X1LPlv4t/cxEVpaALQKxuylztB9sp+pYCTU2RaxSn7Nz2MW2zoIiH3QkR137asOC 
> ZYFin4WzEodra/ruDp7cAGRU9V4SZq+qeR59bswF7ImFx3IcUz7pTGT1i0CL1+Al 
> TDzKkOxNxJdVf3JTGbP/tdwMKYh77gi47NzkY/4U4Gh+13kDpWwovvD6G80tmewT 
> 0mcP8gtvXJuooV41HcpUWtgdjFa8A/VrhYkC1z10Z39+GsbuDcHftMWhgmgcsfBs 
> dyXoMVeVe4kbMO/mA471S2F92AJVU8CyXbTRHVgmcF+db/GL83nR0X49yMdZpFeA 
> bwD6eRf5atJGxgDzUdjxQa9Fy84GVAyirXHGHyu/ZGBFmFRl8gtkLMNrH3vWoYlh 
> vbd3/PEPW2kx0TDqisu0X6TwTA4GYRL53/38Au8c8RLH4I2xwuNKd63d58zrhw1U 
> 0aM1HIBwgXS9mUmvjt6w 
> =1OUX 
> -END PGP SIGNATURE- 
>

-- 

--- 
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: How many Emacs, Vim, Sublime, Atom.io users here?

2017-02-22 Thread James
Hi,
Ah. Yes. The auto complete does work in the following context too:-
e:f:g 

Didn't know that. Did you remap your keys from C-X, C-O to Tab for Ledger?

Interesting. I might try that. 



On Wednesday, February 22, 2017 at 2:43:40 PM UTC+7, Lifepillar wrote:
>
> On 21/02/2017 20:00, James wrote: 
> >  I am currently Vim and am having a hard time making rapid entries 
> > (because auto completion only occurs on an individual sub-account level 
> > which takes a very long time.) 
>
> Not sure what you mean here. I find Ledger completion in Vim extremely 
> efficient (ignoring for a moment the bug mentioned in a recent thread). 
> For instance, I can type: 
>
> e:f:g 
>
> and have that expanded to Expenses:Food:Groceries. I can type 
>
> e:f:g10,00 
>
> and have that expanded to 
>
>  Expenses:Food:Groceries   $10,00 
>
> (automatically inserting the currency and aligning the amount). I don't 
> know how you could type less and achieve the same effect. 
>
> Happy Vim user here :) 
> Life. 
>
>

-- 

--- 
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: Source for Lisp on Ledger Unavailable [Arch Linux]

2017-02-22 Thread James
Ah okay,
I got it working using the below.It was previously brought up by Ra Wa:-
Thanks for the prompt reply.

I was able to get it working with the following config

$ cat ~/.emacs
(add-to-list 'load-path "~/.emacs.d")
(load "ledger-mode")
(add-to-list 'auto-mode-alist
 '("*\\.lgr$" . ledger-mode))



$ ls ~/.emacs.d
ledger-commodities.el  ledger-exec.el   ledger-mode.el   
ledger-reconcile.el  ledger-schedule.el  ledger-test.el
ledger-complete.el ledger-fonts.el  ledger-occur.el  
ledger-regex.el  ledger-sort.el  ledger-texi.el
ledger-context.el  ledger-init.el   ledger-post.el   
ledger-report.el ledger-state.el ledger-xact.el




On Wednesday, February 22, 2017 at 5:21:24 PM UTC+7, Craig Earls wrote:
>
> I think you are looking for the emacs ledger-mode. We split that from the 
> ledger source several months ago. It gas its own github repository. 
>
>
> On Tue, Feb 21, 2017 at 21:46 James > 
> wrote:
>
>> Hi,
>> I cant seem to be able to find the Lisp source on my Ledger.3.1.1-3 .
>> Would it be better if I added the sources to my the Emacs init files?
>>
>> The files / folders that are listed under it are as follows:- 
>>
>> Enter code here...
>>
>> %FILES%
>> usr/
>> usr/bin/
>> usr/bin/ledger
>> usr/include/
>> usr/include/ledger/
>> usr/include/ledger/account.h
>> usr/include/ledger/amount.h
>> usr/include/ledger/annotate.h
>> usr/include/ledger/balance.h
>> usr/include/ledger/chain.h
>> usr/include/ledger/commodity.h
>> usr/include/ledger/compare.h
>> usr/include/ledger/context.h
>> usr/include/ledger/convert.h
>> usr/include/ledger/csv.h
>> usr/include/ledger/draft.h
>> usr/include/ledger/emacs.h
>> usr/include/ledger/error.h
>> usr/include/ledger/expr.h
>> usr/include/ledger/exprbase.h
>> usr/include/ledger/filters.h
>> usr/include/ledger/flags.h
>> usr/include/ledger/format.h
>> usr/include/ledger/generate.h
>> usr/include/ledger/global.h
>> usr/include/ledger/history.h
>> usr/include/ledger/item.h
>> usr/include/ledger/iterators.h
>> usr/include/ledger/journal.h
>> usr/include/ledger/lookup.h
>> usr/include/ledger/mask.h
>> usr/include/ledger/op.h
>> usr/include/ledger/option.h
>> usr/include/ledger/org.h
>> usr/include/ledger/output.h
>> usr/include/ledger/parser.h
>> usr/include/ledger/pool.h
>> usr/include/ledger/post.h
>> usr/include/ledger/precmd.h
>> usr/include/ledger/predicate.h
>> usr/include/ledger/print.h
>> usr/include/ledger/pstream.h
>> usr/include/ledger/ptree.h
>> usr/include/ledger/pyfstream.h
>> usr/include/ledger/pyinterp.h
>> usr/include/ledger/pyutils.h
>> usr/include/ledger/query.h
>> usr/include/ledger/quotes.h
>> usr/include/ledger/report.h
>> usr/include/ledger/scope.h
>> usr/include/ledger/select.h
>> usr/include/ledger/session.h
>> usr/include/ledger/stats.h
>> usr/include/ledger/stream.h
>> usr/include/ledger/strptime.h
>> usr/include/ledger/system.hh
>> usr/include/ledger/temps.h
>> usr/include/ledger/timelog.h
>> usr/include/ledger/times.h
>> usr/include/ledger/token.h
>> usr/include/ledger/unistring.h
>> usr/include/ledger/utils.h
>> usr/include/ledger/value.h
>> usr/include/ledger/views.h
>> usr/include/ledger/xact.h
>> usr/lib/
>> usr/lib/libledger.so
>> usr/lib/libledger.so.3
>> usr/lib/python2.7/
>> usr/lib/python2.7/site-packages/
>> usr/lib/python2.7/site-packages/ledger.so
>> usr/share/
>> usr/share/licenses/
>> usr/share/licenses/ledger/
>> usr/share/licenses/ledger/LICENSE
>> usr/share/man/
>> usr/share/man/man1/
>> usr/share/man/man1/ledger.1.gz
>>
>>
>>
>>
>> -- 
>>
>> --- 
>> 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+...@googlegroups.com .
>> For more options, visit https://groups.google.com/d/optout.
>>
> -- 
> Craig, Corona De Tucson, AZ
> [image: missile_flyout]
> enderw88.wordpress.com
>

-- 

--- 
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: How many Emacs, Vim, Sublime, Atom.io users here?

2017-02-21 Thread James
A quick Summary of the poll:-


Poll Size =  10 Users 


Emacs = 70%
Vim  = 20%
Atom = 10% 

I guess Emacs is the go-to  Editor for rapid efficient painless entries.

Anything else is slow and cumbersome(I have tried Atom and felt it was 
bloated, Vim seemed better but autocomplete needs to be tweaked)

 




On Wednesday, February 22, 2017 at 2:00:21 AM UTC+7, James wrote:
>
> Hi, 
> I just want to conduct a quick survey here. Could everyone here advise 
> which is their preferred text editor for ledger input?
>
>  I am currently Vim and am having a hard time making rapid entries 
> (because auto completion only occurs on an individual sub-account level 
> which takes a very long time.)
>
> Maybe Vim might not be that great for this Emacs might make more sense for 
> this. Please help share your view here.
>
> Thanks
>
>
>  
>

-- 

--- 
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.


Source for Lisp on Ledger Unavailable [Arch Linux]

2017-02-21 Thread James
Hi,
I cant seem to be able to find the Lisp source on my Ledger.3.1.1-3 .
Would it be better if I added the sources to my the Emacs init files?

The files / folders that are listed under it are as follows:- 

Enter code here...

%FILES%
usr/
usr/bin/
usr/bin/ledger
usr/include/
usr/include/ledger/
usr/include/ledger/account.h
usr/include/ledger/amount.h
usr/include/ledger/annotate.h
usr/include/ledger/balance.h
usr/include/ledger/chain.h
usr/include/ledger/commodity.h
usr/include/ledger/compare.h
usr/include/ledger/context.h
usr/include/ledger/convert.h
usr/include/ledger/csv.h
usr/include/ledger/draft.h
usr/include/ledger/emacs.h
usr/include/ledger/error.h
usr/include/ledger/expr.h
usr/include/ledger/exprbase.h
usr/include/ledger/filters.h
usr/include/ledger/flags.h
usr/include/ledger/format.h
usr/include/ledger/generate.h
usr/include/ledger/global.h
usr/include/ledger/history.h
usr/include/ledger/item.h
usr/include/ledger/iterators.h
usr/include/ledger/journal.h
usr/include/ledger/lookup.h
usr/include/ledger/mask.h
usr/include/ledger/op.h
usr/include/ledger/option.h
usr/include/ledger/org.h
usr/include/ledger/output.h
usr/include/ledger/parser.h
usr/include/ledger/pool.h
usr/include/ledger/post.h
usr/include/ledger/precmd.h
usr/include/ledger/predicate.h
usr/include/ledger/print.h
usr/include/ledger/pstream.h
usr/include/ledger/ptree.h
usr/include/ledger/pyfstream.h
usr/include/ledger/pyinterp.h
usr/include/ledger/pyutils.h
usr/include/ledger/query.h
usr/include/ledger/quotes.h
usr/include/ledger/report.h
usr/include/ledger/scope.h
usr/include/ledger/select.h
usr/include/ledger/session.h
usr/include/ledger/stats.h
usr/include/ledger/stream.h
usr/include/ledger/strptime.h
usr/include/ledger/system.hh
usr/include/ledger/temps.h
usr/include/ledger/timelog.h
usr/include/ledger/times.h
usr/include/ledger/token.h
usr/include/ledger/unistring.h
usr/include/ledger/utils.h
usr/include/ledger/value.h
usr/include/ledger/views.h
usr/include/ledger/xact.h
usr/lib/
usr/lib/libledger.so
usr/lib/libledger.so.3
usr/lib/python2.7/
usr/lib/python2.7/site-packages/
usr/lib/python2.7/site-packages/ledger.so
usr/share/
usr/share/licenses/
usr/share/licenses/ledger/
usr/share/licenses/ledger/LICENSE
usr/share/man/
usr/share/man/man1/
usr/share/man/man1/ledger.1.gz




-- 

--- 
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.


How many Emacs, Vim, Sublime, Atom.io users here?

2017-02-21 Thread James
Hi, 
I just want to conduct a quick survey here. Could everyone here advise 
which is their preferred text editor for ledger input?

 I am currently Vim and am having a hard time making rapid entries (because 
auto completion only occurs on an individual sub-account level which takes 
a very long time.)

Maybe Vim might not be that great for this Emacs might make more sense for 
this. Please help share your view here.

Thanks


 

-- 

--- 
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: Omni Completion with vim-Ledger seems to be hanging without any results

2017-02-21 Thread James
Oh dear,
For me its permanent.
I am not sure whats causing this bug but it says :-

-- Omni completion (^O^N^P) -- Searching...



Might try another autocomplete plugin

On Tuesday, February 21, 2017 at 9:50:24 PM UTC+7, Lifepillar wrote:
>
> On 21/02/2017 12:05, James wrote: 
> > Hi, 
> > 
> > Omni completion in vim-ledger seems to be searching for a very long time 
> > without finding any patterns. 
> > 
> > Any one have this problem and whats the work around this? 
> > 
> > Appreciate if someone could share some light on this. 
>
> Yes, that happens to me, too. Usually (but not always) when there is no 
> suitable completion, in which case the script gets stuck. 
>
> When it happens I just press ctrl-c. I have always been too lazy to 
> investigate why it happens, but it may be worth reporting the bug at 
> https://github.com/ledger/vim-ledger. 
>
> Life. 
>
>
>

-- 

--- 
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.


Omni Completion with vim-Ledger seems to be hanging without any results

2017-02-21 Thread James
Hi,

Omni completion in vim-ledger seems to be searching for a very long time 
without finding any patterns.

Any one have this problem and whats the work around this?

Appreciate if someone could share some light on this.

Thanks

-- 

--- 
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: Link Params with acprep

2016-12-02 Thread James Poole
Hmm... Maybe I am doing something wrong, but I couldn't get it to work.  I 
had tried to manually hack acprep to set the LDFLAGS as well with no luck.

If I run:

*$ LDFLAGS="-lpqxx -lpq" ./acprep update --debug --verbose*

I don't see those flags being passed during the linking step:

*Linking CXX executable ../ledger*
*cd /home/ubuntu/ledger/src && /usr/bin/cmake -E cmake_link_script 
CMakeFiles/ledger.dir/link.txt --verbose=1*
*/usr/bin/g++   -gCMakeFiles/ledger.dir/main.cc.o 
CMakeFiles/ledger.dir/global.cc.o  -o ../ledger -rdynamic ../libledger.so.3 
-lmpfr -lgmp -ledit -lboost_date_time -lboost_filesystem -lboost_system 
-lboost_iostreams -lboost_regex -lboost_unit_test_framework -licuuc 
-Wl,-rpath,/home/ubuntu/ledger*

Let me know if I am just not understanding how to run the cmd.  Thanks for 
the help.

-James

On Friday, December 2, 2016 at 4:56:39 AM UTC-4, John Wiegley wrote:
>
> >>>>> "JP" == James Poole > writes: 
>
> JP> I would like to add the "-lpqxx -lpq" parameters to the compile/link 
> step 
> JP> so that I can pull in support for libpqxx like is mentioned here: 
> JP> https://www.tutorialspoint.com/postgresql/postgresql_c_cpp.htm 
>
> JP> Let me know what you think is the easiest way to do this. 
>
> acprep should listen to LDFLAGS, if you set it in the environment: 
>
> LDFLAGS="-lpqxx -lpq" ./acprep  
>
> -- 
> John Wiegley  GPG fingerprint = 4710 CF98 AF9B 327B B80F 
> http://newartisans.com  60E1 46C4 BD1A 7AC1 4BA2 
>

-- 

--- 
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.


Link Params with acprep

2016-12-02 Thread James Poole
This is probably a simple thing to do, but I haven't been working in C++ 
for a while... I am trying to add some PostgreSQL support for a proof of 
concept that I am doing, and I was wondering what the best way to add a 
link parameter is with the "acprep" script?

I would like to add the "-lpqxx -lpq" parameters to the compile/link step 
so that I can pull in support for libpqxx like is mentioned here:
https://www.tutorialspoint.com/postgresql/postgresql_c_cpp.htm

Let me know what you think is the easiest way to do this.

Thanks,
James

-- 

--- 
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.


How should dividend transactions be formatted?

2016-10-11 Thread James Blachly
Background: When using ledger-autosync with OFX files from Fidelity, 
non-reinvested dividend transactions are not formatted correctly:
https://github.com/egh/ledger-autosync/issues/7

I have fixed this (see link) so that they are displayed as follows:

2016/09/30 DIVIDEND RECEIVED
; ofxid: redacted 
; dividend_from: IBM 
Assets:Fido$3.87 
Income:Dividends  -$3.87



Note that I have included the security symbol or CUSIP in a metadata field.


The ledger manual does not indicate whether or not I can filter on a 
metadata field, so *I would like to hear the group's opinion on whether I 
should change the Payee/Note/Memo line to also include the security whence 
the dividend is generated.* For example:


2016/09/30 DIVIDEND RECEIVED FROM IBM

; ofxid: redacted

; dividend_from: IBM

Assets:Fido$3.87

Income:Dividends  -$3.87

 


This way a report could in theory be compiled listing only dividends from 
particular security/ies.

However, if metadata is good enough and entries can easily be filtered then 
this may be sufficient.

Overall I am so new at ledger ( < 1 mo. ) that I am not sure whether a more 
descriptive / specific payee / memo line is more helpful or more a 
hindrance.


In any case, I would be very appreciative for anyone who would please weigh 
in so I can finalize and issue a pull request to the ledger-autosync 
project.


Thanks in advance!

James


-- 

--- 
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: Budgeting bug (account hierarchies and matching)

2016-10-02 Thread James Blachly
Thanks to both of you for your input, and to Lifepillar for introducing me to 
the “budget” command. I had previously not used it because I had ledger aliased 
to 'ledger -E -V’ ; interestingly running the budget subcommand with those 
options in combination (but neither singly) will crash the program.

> On Oct 2, 2016, at 3:33 PM, Lifepillar  wrote:
> 
> On 2016-10-02 17:35:07 +, John Wiegley said:
> 
>>> "L" == Lifepillar   writes:
>> L> Re (1), I believe that it is a good idea not to have nested accounts in 
>> the
>> L> budget, the way you have. In other words, I think that reports would make
>> L> more sense if you used:
>> Although, there's a useful meaning here.  Say my budget were:
>>~ Monthly
>> Expenses:Food   $50.00
>> Expenses:Food:Dining$20.00
>> Assets
>> This says that I want to spend no more than $50 on food in a given month; and
>> that further, of that $50, I'd like no more than $20 to be spent on dining.
> 
> Sure, but that does not seem well supported by Ledger, e.g., `ledger budget` 
> outputs:
> 
>  0   $70.00   $70.00 0  
> Expenses:Food
>  0   $20.00   $20.00 0Dining
>      -
>  0   $70.00   $70.00 0
> Actual BudgetedRemaining  Used
> 
> Ditto for --budget. At least, you should do this instead:
> 
>>~ Monthly
>> Expenses:Food:Dining$20.00
>> Expenses:Food   $30.00
>> Assets
> 
> Say you spend $40 on food and $10 on dining out, then you'll get:
> 
> $50.00   $50.000  100%  
> Expenses:Food
> $10.00   $20.00   $10.00   50%Dining
>      -
> $50.00   $50.000  100%
> Actual BudgetedRemaining  Used
> 
> 
> which is a fine report. The problem is that the budget seems inconsistent with
> the report. IMHO, avoiding subaccounts is a good compromise, e.g.,
> 
> ~ Monthly
> Expenses:Food:Other $30.00
> Expenses:Food:Dining$20.00
> Assets
> 
> 2016/10/02 * Other
> Expenses:Food:Other   $40.00
> Expenses:Food:Dining  $10.00
> Assets
> 
> ledger budget exp
> 
> $50.00   $50.000  100%  
> Expenses:Food
> $10.00   $20.00   $10.00   50%Dining
> $40.00   $30.00  $-10.00  133%Other
>      -
> $50.00   $50.000  100%
> Actual BudgetedRemaining  Used
> 
> I still see that I am within budget overall. Besides, the report looks in 
> accordance
> with the way the budget is defined. It does give the impression that I've 
> overspent
> in a category, though.
> 
> In this example, one may prefer the former method, but in a more complex 
> budget
> it may get confusing, I believe.
> 
> Life
> 
> 
> -- 
> 
> --- You received this message because you are subscribed to a topic in the 
> Google Groups "Ledger" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/ledger-cli/UdwJnM6MSL8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
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: Budgeting bug (account hierarchies and matching)

2016-10-02 Thread James Blachly
Dear John et al,

The workaround (re-ordering the periodic transactions as described in #415) 
fixes the assignment issue for both the minimal example I posted as well as my 
production data.

Do others use the ~ Periodic + —budget mode, or am I in a very small minority?

Kind regards
James


> On Oct 2, 2016, at 1:52 AM, John Wiegley  wrote:
> 
>>>>>> "JB" == James Blachly  writes:
> 
> JB> If anyone can weigh in on whether this behavior is likely to change (bug
> JB> reported by John in 2010...), I can decide how best to structure all my
> JB> accounts (as I am a new user, I am still trying to find the best system of
> JB> accounts / hierarchies). At a minimum, it would be nice if this key fact
> JB> is mentioned in documentation (section 9.1).
> 
> JB> Lastly, if this has gotten no attention because literally no one actually
> JB> uses the periodic transactions + --budget, and instead uses something else
> JB> like virtual accounts, or automatic postings to envelope-type accounts,
> JB> please let me know!
> 
> I haven't heard anyone else complain about it yet, although it's certainly a
> bug.  Does the workaround described in #415 work for you?
> 
> -- 
> John Wiegley  GPG fingerprint = 4710 CF98 AF9B 327B B80F
> http://newartisans.com  60E1 46C4 BD1A 7AC1 4BA2
> 
> -- 
> 
> --- 
> You received this message because you are subscribed to a topic in the Google 
> Groups "Ledger" group.
> To unsubscribe from this topic, visit 
> https://groups.google.com/d/topic/ledger-cli/UdwJnM6MSL8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> ledger-cli+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 

--- 
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: Budgeting bug (account hierarchies and matching)

2016-10-01 Thread James Blachly
Well, I apologize that I may have posted too soon.

After more digging, I found Bug 415: 
http://bugs.ledger-cli.org/show_bug.cgi?id=415

This appears to be the same thing.

If anyone can weigh in on whether this behavior is likely to change (bug 
reported by John in 2010...), I can decide how best to structure all my 
accounts (as I am a new user, I am still trying to find the best system of 
accounts / hierarchies). At a minimum, it would be nice if this key fact is 
mentioned in documentation (section 9.1).

Lastly, if this has gotten no attention because literally no one actually 
uses the periodic transactions + --budget, and instead uses something else 
like virtual accounts, or automatic postings to envelope-type accounts, 
please let me know!

Thanks again.

-- 

--- 
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.


Budgeting bug (account hierarchies and matching)

2016-10-01 Thread James Blachly
Hello,

I am a brand new user with less than a month of transactions entered so 
far, but I am sold on plain text accounting. Wish I had discovered this 
years ago!

Anyway, while setting up budgets, I ran into the following problem, which 
is best summarized as *"IFF balancing against a budget, expenses are 
counted against the highest-in-hierarchy matching account, rather than the 
most specific account." *Here is a minimal reproducible example:

~ Monthly
 Expenses:Auto $100.00
 Expenses:Auto:Gas $50.00
 Assets


2016/10/01 * Gulf
 Expenses:Auto:Gas $40.00
 Assets


Now, when I run a register it looks correct:

$ ledger -E -f example_budgetbug.txt reg exp
16-Oct-01 Gulf  Expenses:Auto:Gas   
  $40.00   $40.00



*However, if I run this in --budget balance mode it does not:*

$ ledger -E -f example_budgetbug.txt --budget reg exp
16-Oct-01 Budget transactionExpenses:Auto   
$-100.00 $-100.00
16-Oct-01 Budget transactionExpenses:Auto:Gas   
 $-50.00 $-150.00
16-Oct-01 Gulf  Expenses:Auto   
  $40.00 $-110.00



*Note that it matched the transaction to Expenses:Auto instead of 
Expenses:Auto:Gas as in the previous example.*
This is of course problematic because now I cannot track a subcategory (in 
this case, gas) separately from miscellaneous category expenses.
To be more concrete, if I wanted to track how I am doing on gas expenses, I 
cannot:

$ ledger -E -f example_budgetbug.txt reg expenses:auto:gas
16-Oct-01 Gulf  Expenses:Auto:Gas   
  $40.00   $40.00
$ ledger -E -f example_budgetbug.txt --budget reg expenses:auto:gas
16-Oct-01 Budget transactionExpenses:Auto:Gas   
 $-50.00  $-50.00



Finally, eliminating the broad category does eliminate the wrong behavior 
as you would predict:
(in the following example I changed the broad category to 
Expenses:Auto:Repair)

$ cat example_budgetbug.txt

~ Monthly
 Expenses:Auto:Repair $100.00
 Expenses:Auto:Gas $50.00
 Assets


2016/10/01 * Gulf
 Expenses:Auto:Gas $40.00
 Assets


$ ledger -E -f example_budgetbug.txt reg expenses:auto:gas
16-Oct-01 Gulf  Expenses:Auto:Gas   
  $40.00   $40.00
$ ledger -E -f example_budgetbug.txt --budget reg expenses:auto:gas
16-Oct-01 Budget transactionExpenses:Auto:Gas   
 $-50.00  $-50.00
16-Oct-01 Gulf  Expenses:Auto:Gas   
  $40.00  $-10.00





I am running Ledger 3.1.1-20160111 from Homebrew, and I apologize if this 
represents a bug that was already fixed. I looked in the bug tracker but 
did not see it. Thank you all in advance for your help.

James 

-- 

--- 
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 --strict

2016-09-12 Thread James Blachly
Sorry to resurrect a dead thread, but I am a first-time (first-day!) ledger 
user. Color me impressed thus far, but there have been some snags that 
probably could have been avoided with clearer documentation and/or 
different defaults.

I was frustrated that neither --explicit nor --pedantic seemed to work 
until I found this thread through google. In retrospect, it is in the 
documentation, but late, in section 8.3.2. TBH, most people will want to 
have dived in by section 4 or 5.

So, put me down as +1 for making explicit the default and offering 
"relaxed" as an option.

Kind regards

On Wednesday, February 4, 2015 at 8:01:14 PM UTC-5, John Wiegley wrote:
>
> > Martin Michlmayr > writes: 
>
> > Over the years, I've seen a lot of confusion from users that 
> > --strict/--pedantic didn't work and often the reason was that --explicit 
> was 
> > missing.  Maybe it might make sense to make it the default and add an 
> option 
> > to say that cleared transactions should be ignored. 
>
> I agree completely.  Instead of --explicit, we should maybe have --relaxed 
> to 
> mean that cleared transactions are assumed good. 
>
> 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.


Number formatting (Atom.io)

2016-07-18 Thread James

I am looking for a package/feature that would automatically correct numbers 
with correct comma/decimal points while inputting numbers. 
Has anyone created one or could someone advise me on how I could achieve 
this? 

 
For example input of 1200 would automatically on the fly insert the 
comma+decimal and format it to 1,200.00 . 

I think the above is a useful feature. Please suggest your view.


Thanks



-- 

--- 
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 Tree not Visible

2016-06-12 Thread James
Hi,
i am new to ledger. When I run the balance command I get a collapsed 
version with :-

Assets
Equity
Liabilities

How do I correct this? My file is called filename.ledger.
Could someone advise how to get a tree?

I am running on Atom.io with Ledger mode. Is it possible to have 
auto-complete for number formatting?


-- 

--- 
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.


Detailed Balance Sheet

2016-06-12 Thread James
hi,
new to ledger here. 
trying to get a tree for opening balance but I cant seem to. For example 
sake see below of the results I am getting:-

ledger -f myfilename_2016.ledger bal assets liabilities
 $500.00  Assets
$-200.00  Liabilities
   $-3.87Accrued_and_Deferred_Liabilities


But my chart is more detailed and has many more branches as below:-


 Assets:Receivables
; Assets:Receivables:Account_Receivable
; Assets:Receivables:Trade_Receivable
; Assets:Receivables:Adjustments
; Assets:Receivables:Contracts_Receivable
; Assets:Receivables:Notes_and_Loans
; Assets:Inventory
; Assets:Inventory:Raw Materials and Supplies
; Assets:Inventory:Work_in_Progress
; Assets:Inventory:Merchandise
; Assets:Accrued_and_Deferred_Items
; Assets:Accrued_and_Deferred_Items:Returnable_Deposits
; Assets:Accrued_and_Deferred_Items:Pre-Paid_Expenses
; Assets:Accrued_and_Deferred_Items:Accured_Revenue
; Assets:Accrued_and_Deferred_Items:Other_Current_Assets
; Liabilities:Payables
; Liabilities:Payables:Trade_Payable
; Liabilities:Payables:Short_Term_Borrowings
; Liabilities:Payables:Lines_of_Credit
; Liabilities:Payables:Accounts_Payable
; Liabilities:Payables:Related_Parties



How do I get the chart to be more detailed? 

-- 

--- 
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 Txns for Taxes Owed on stocks?

2014-07-03 Thread James A. Robinson
Got it, thanks for the explanation.

Jim

-- 

--- 
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 Txns for Taxes Owed on stocks?

2014-07-03 Thread James A. Robinson
On Thu, Jul 3, 2014 at 9:47 AM, Martin Blais  wrote:
> Also, personally I don't like to bake estimations manually in transactions,
> like this. I think this is information that should be derived from the
> balances computed by the command-line bookkeeping system.

That's a fair point.

>> No, they are all folded into the same account.  It's irritating as all
>> heck, but that's the way it is (at least across 2 mgmt companies
>> I've dealt with).
>
> Crazy indeed...  do they at least track it for you? In other words... is
> anyone counting, or is the government just trusting that you're going to be
> reporting the right numbers?

Well, if you get audited it's your responsibility to have the
paperwork to prove that you put such and such an amount into it on
an after-tax basis, so I keep all my paystubs, until I get the
year-end paystub with the totals for the year.  That said, the
companies will usually provide you, on your quarterly or end-of-year
statements, the total contributions that came in on a pre-tax vs
post-tax basis.  But I don't think that's guaranteed, and I've never
seen a company show you the *total* across multiple years.

That could just be saying something about the quality of the mgmt
companies my employeers have been dealing with though. :)

> For the record, Vanguard does break down the pre-tax employee contribution
> and employer-match, though I don't see the point: both are pre-tax money.

Agreed, but it's nice to have more information than
you need rather than less. :)

> BTW, I think you're overloading the word "cost basis" here, it's confusing.
> It's confusing because if the account is able to hold both pre-tax and
> after-tax contributions, the terms cost basis doesn't bear much resemblance
> to the cost basis of an investment (it would, it all you had is after-tax
> contributions in there). What you mean is counting the amount of after-tax
> contributions to the account that you should not have to pay tax on when you
> take a distribution, even in the presence of pre-tax contributions. Let's
> call it, say, the "pre-tax basis" and the "after-tax basis".

Sure, that's fine.  I used the term due to the way the IRS treats
these tax-defered retirement accounts: Everything in the account
is taxable as income except for after-tax dollars you originally
used to make the purchase.   To my mind that was the same as a cost
basis in a traditional individual investment account (the former
just at a higher tax rate than the latter).

> Right, this is also what I understand. What I'm suggesting above is a method
> to keep track of the "after-tax basis" that lives in your account, that is,
> the sum total of all non-deductible contributions you made in the past (what
> you called the "cost basis"). You would add legs with another "commodity",
> say "AFTERTAX" or "ROTH" or whatever you prefer to call it, something like
> this:
>
> 2014-01-01 * MyCo Paycheck
> ...
> Income:Prepaid Tax:Income:Federal  -400.00 AFTERTAX
> Assets:401k:MyCo400.00 AFTERTAX
>
> The sum of all "AFTERTAX" units will tell you how much money you can get a
> non-taxable distribution of.
> If you do take a distribution, you have to remember to also add matching and
> appropriate legs to it:
>
> 2014-01-01 * MyCo Paycheck
> Assets:401k:MyCo  $-2100.00
> Assets:Bank:Checking   $2100.00
> Assets:401k:MyCo   -2100.00 AFTERTAX
> Expenses:Distributions  2100.00 AFTERTAX
>
> This works:
>
>   Assets:401k:MyCo's AFTERTAX units count how much of that account is
> after-tax basis
>
>   Income:Prepaid Tax:Income:Federal counts the total of your after-tax
> contributions made during the exercise period
>
>   Expenses:Distributions's AFTERTAX units tells you how much after-tax
> distributions you receives during the exercise period

Am I understanding correctly that you are saying to just
flag a certain dollar amount into the Assets:401k:MyCo
account as being after-tax, and to track that over the years?

I'm not sure I following what the Expenses:Distributions
account entry is for, why is it an expense?

Jim

-- 

--- 
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 Txns for Taxes Owed on stocks?

2014-07-03 Thread James A. Robinson
On Thu, Jul 3, 2014 at 9:04 AM, James A. Robinson  wrote:
>> Which brings up another question: for a Roth IRA, one is able to obtain a
>> tax-free distribution up to the amount of its contributions way before
>> retirement (http://en.wikipedia.org/wiki/Roth_IRA#Advantages: "Direct
>> contributions to a Roth IRA (principal) may be withdrawn tax and penalty
>> free at any time"). This means that during the life of this Roth IRA
>> account, you have to keep track of the total amount of (contributions -
>> distributions taken).

So the full quote from the snippet you got from Wikipedia is:

Direct contributions to a Roth IRA (principal) may be withdrawn
tax and penalty free at any time.[1] Earnings may be withdrawn
tax and penalty free after 5 years if the condition of age 59½ (or
other qualifying condition) is also met. Rollover, converted (before
age 59½) contributions held in a Roth IRA may be withdrawn tax
and penalty free after 5 years. Distributions from a Roth IRA do
not increase Adjusted Gross Income. This differs from a traditional
   IRA where all withdrawals are taxed as Ordinary Income, and a penalty
applies for withdrawals before age 59½

So that first sentence is simply discussing the difference between
a Roth IRA and a Traditional IRA when it comes to *early* withdrawal
of funds.

With the Roth, you're allowed to pull those principal contributions,
whereas with the Traditional IRA it's more restrictive, it's only
allowed for some very specific purposes (death, disability, medical
bills, and so forth).

Jim

-- 

--- 
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 Txns for Taxes Owed on stocks?

2014-07-03 Thread James A. Robinson
On Thu, Jul 3, 2014 at 8:46 AM, Martin Blais  wrote:
>
> You don't need these postings:
>
> 2014-01-01 * MyCo Paycheck
> ...
> Assets:Prepaid Tax:Income:Federal  $400.00
> Liabilities:Tax:Income:Federal$-400.00
> ...
>
> Assets:Prepaid Tax:Income:Ca   $300.00
> Liabilities:Tax:Income:Ca $-300.00
>
> Those look incorrect to me. These won't work to calculate the tax you have
> to pay in the future, which depends not on your contributions, but on the
> amount of "distributions" when you take the money out, if we're talking
> about pre-tax money (the amount of which hopefully will have grown
> substantially at that point).

Ah, ok so they are set up to basically cancel each other out over
the course of the year, but after Dec, when I calculate my actual
taxes due, I adjust Liabilities:Tax:Income:Ca to reflect the actual
tax due.

I was giving this as an example of liability that adjust the net
worth calculation.  I'd expect to add a different account, also
under Liabilities:Tax:[...] to reflect est. tax due on a distribution.


>> The pivot report show that I'd have a $100.00
>> cost basis in the 401k, and that everything else
>> (employer basic, employer match, pre-tax), plus
>> whatever gains made in excess of $400.00 due
>> to changes in the stocks, have a liability equal
>> to some appropriate tax rate.
>
>
> Again, that's incorrect, once the investments grow, your "liability" amounts
> will all be wrong.

I guess it wasn't clear, I'm trying to work out how to calculate
those liability amounts after the investments grow.  That was the
whole point of my asking if anyone had already figured out
whether or not they could use off-the-shelf capabilities in
ledger. :)

> As for the after-tax amounts, what I'd do if I were you is hold that in a
> separate account from the pre-tax amounts. They're probably separate "real
> world" accounts anyway, aren't they? (I'm curious, I haven't use after-tax
> 401k contributions yet, but I doubt they fold them into the same 401k
> account.)

No, they are all folded into the same account.  It's irritating as all
heck, but that's the way it is (at least across 2 mgmt companies
I've dealt with).

 If it turns out that both pre-tax and after-tax money can be held in a
> single real-world account - again, I'd really like to know how this works -
> you could just create two subaccounts.

Some companies, like TIAA-CREF will helpfully break down each portion
of a purchase into pre-tax, employer, employer-match, and post-tax.
Other companies, like Fidelity, won't.

This lack of information is why I'd prefer to just compute the total
cost basis (as in my example w/ the pivot report), and track that
against the net value of the account as it grows.  In other words,
the net value of the account minus the cost basis is what I will
owe taxes on eventually.

> Just to be clear: when you say "tax due" here, you mean, taxes to be paid on
> distributions, right?

Yep.

> Ha... I think you just gave me a fun idea!  I'll write a plugin in Beancount
> that automatically adds a "future tax expense" entry to offset pre-tax money
> for the balance sheet, e.g. if I have a 401k account with a value of say
> 100,000 USD in it, it would automatically insert an entry at the latest day
> like this:
>
>   2014-07-03 F "Taxes to be paid on distributions."
> Expenses:Taxes:Federal27000 USD
> Expenses:Taxes:StateNY 8000 USD
> Liabilities:FutureTaxesOnDistirbutiosn  -35000 USD
>
> This would make the balance sheet reflect only post-tax money, and thus be
> more meaningful.

I think you're talking about exactly what I was thinking about.
A more accurate net worth calculation becomes possible once
you are estimating the future tax liability on an account's
growth.


> Which brings up another question: for a Roth IRA, one is able to obtain a
> tax-free distribution up to the amount of its contributions way before
> retirement (http://en.wikipedia.org/wiki/Roth_IRA#Advantages: "Direct
> contributions to a Roth IRA (principal) may be withdrawn tax and penalty
> free at any time"). This means that during the life of this Roth IRA
> account, you have to keep track of the total amount of (contributions -
> distributions taken). I'm not sure how I would go about doing that, I would
> probably use a fake commodity, like I do for IRA and RRSP contributions,
> e.g. add parallel legs that add ROTH units to a asset account whenever I
> make a contribution and debit from these ROTH units if I take a distribution
> of principal. Is anyone here doing this? How do you track your contributions
> to it?

The Roth IRA is completely tax free.  The growth is not taxed.  Same
with Roth 401(k) contributions.

Deductible contributions to a Traditional IRA are taxed on distribution,
same as any growth.

Non-deductable contributions to a Traditional IRA work the way you
describe above.  Whatever non-deductible contributions you made are
considered

Re: Automated Txns for Taxes Owed on stocks?

2014-07-02 Thread James A. Robinson
On Wed, Jul 2, 2014 at 3:55 PM, Martin Blais  wrote:
> But if you mean "continuously", e.g., given some unrealized gain against
> positions, how much of it can be considered due to the tax-man, always
> calculated based on current ledger, I think you would need a custom script
> to report that. You do have the cost basis of all assets in the Ledger, so
> it would be possible to use this to estimate your taxes.

Thanks, I think I do mean more of the continuously
updating scenario.  Basically using the cost basis
calculation and adding that to a virtual account
that calculates the expected taxes.

Say I have a ledger consisting of a salary paycheck:

$ cat X
2014-01-01 * MyCo Paycheck
Assets:401k:MyCo   $100.00  ; 401k: employer
basic
Assets:401k:MyCo   $100.00  ; 401k: employer
match
Assets:401k:MyCo   $100.00  ; 401k: pre-tax
Assets:401k:MyCo   $100.00  ; 401k: post-tax
Assets:Prepaid Tax:Income:Federal  $400.00
Liabilities:Tax:Income:Federal$-400.00
Expenses:Tax:Income:Federal$400.00
Expenses:Tax:Federal:MED/EE $60.00
Expenses:Tax:Federal:OASDI/EE  $100.00
Expenses:Tax:Ca:Dis/EE  $20.00
Assets:Prepaid Tax:Income:Ca   $300.00
Liabilities:Tax:Income:Ca $-300.00
Expenses:Tax:Income:Ca $300.00
Expenses:Insurance:Medical  $50.00
Expenses:Insurance:Vision$6.00
Income:MyCo:Salary  $-2,000.00
Income:MyCo:MyCo:Basic$-100.00
Income:MyCo:MyCo:Match$-100.00
Assets:MyBank:Checking

I can use exact values to calculate the expected tax
liability and prepaid tax (exactly equal in this case):

$ ledger -f X balance Assets:Prepaid
 $700.00  Assets:Prepaid Tax:Income
 $300.00Ca
 $400.00Federal

 $700.00

$ ledger -f X balance Liabilities
$-700.00  Liabilities:Tax:Income
$-300.00Ca
$-400.00Federal

$-700.00

and I can pivot report on the 401k balance:

$ ledger -f X balance 401k --pivot=401k
 $400.00  401k
 $100.00employer basic:Assets:401k:MyCo
 $100.00employer match:Assets:401k:MyCo
 $100.00post-tax:Assets:401k:MyCo
 $100.00pre-tax:Assets:401k:MyCo

 $400.00

Later on I'll be taking those dollars and buying
stocks or something:

2014-02-02 * 401K Investment
Assets:401k:VIPSX  29.607 VIPSX @@ $400.00
 Assets:401k:MyCo

The pivot report show that I'd have a $100.00
cost basis in the 401k, and that everything else
(employer basic, employer match, pre-tax), plus
whatever gains made in excess of $400.00 due
to changes in the stocks, have a liability equal
to some appropriate tax rate.

So I'd like to figure out a way to get a running
approximation of taxes due, so that I can have
a more accurate net worth report, similar to the
Liabilities:Income:Tax accounts I maintain as
part of the salary entry.

Thanks for the feedback, I'll think about this and
will post back anything useful I come up with.

Jim

-- 

--- 
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.


Unable to build

2014-04-21 Thread James Clemence
On Ubuntu 14.04 x86_64, the build is failing. I've got the following 
dependencies installed:

libboost1.55-dev libboost-regex1.55-dev libboost-date-time1.55-dev 
libboost-filesystem1.55-dev build-essential cmake texinfo python-dev 
zlib1g-dev libbz2-dev libgmp3-dev bjam gettext cvs libmpfr-dev

However, build fails with the following issue:

[  3%] Building CXX object src/CMakeFiles/libledger.dir/stats.cc.o
/home/jvc26/ledger/src/stats.cc:32:21: warning: 
/home/jvc26/ledger/system.hh.gch: not used because `__GNUC_GNU_INLINE__' 
not defined [-Winvalid-pch]
 #include 
 ^
In file included from /home/jvc26/ledger/src/exprbase.h:57:0,
 from /home/jvc26/ledger/src/draft.h:45,
 from /home/jvc26/ledger/src/stats.cc:34:
/home/jvc26/ledger/src/utils.h:488:12: error: ‘std::unique_ptr’ has not 
been declared
 using std::unique_ptr;
^
In file included from /home/jvc26/ledger/src/report.h:52:0,
 from /home/jvc26/ledger/src/stats.cc:38:
/home/jvc26/ledger/src/session.h:62:3: error: ‘unique_ptr’ does not name a 
type
   unique_ptr journal;
   ^
/home/jvc26/ledger/src/stats.cc: In function ‘ledger::value_t 
ledger::report_statistics(ledger::call_scope_t&)’:
/home/jvc26/ledger/src/stats.cc:49:31: error: ‘class ledger::session_t’ has 
no member named ‘journal’
 statistics(report.session.journal->master->family_details(true));
   ^
make[2]: *** [src/CMakeFiles/libledger.dir/stats.cc.o] Error 1
make[1]: *** [src/CMakeFiles/libledger.dir/all] Error 2
make: *** [all] Error 2
acprep: ERROR: Execution failed: make

Any pointers? Thanks!

-- 

--- 
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.