Re: [HOWTO] Register of virtual accounts related to a main account?

2015-11-23 Thread François Beausoleil
Hello Alexis,

I'm having difficulty understanding how it works.

I found 
http://ledger-cli.org/3.0/doc/ledger3.html#Posting_002faccount-details 
which says "R ‘1’ if a posting is not virtual, ‘0’ otherwise."

I tried ledger reg Assets:Bank --display 'R'

which returns the original postings, not the virtual ones. Using 'not R' 
returns nothing.

I'm certain I'm doing something silly: 
https://gist.github.com/francois/eae3ae92a66fcbf5315c

I also tried variations like 'R == 1' or 'R == false', returning either an 
error, an empty report or only the real accounts.

What would be the exact syntax I should use to return a register of only 
the virtual accounts?

Thank you very much!
François Beausoleil

Le lundi 23 novembre 2015 02:24:08 UTC-5, unices a écrit :
>
> Hello François, 
> using the --limit virtual or --display virtual option should give 
> you the reports you want. 
>
> Search for --limit and --display in the "Commands & Options Index" 
> sectionš of the manual to find references for explanations and 
> examples of how they work. 
>
> The main difference being that --limit affects the running total being 
> shown, whereas --display doesn't. 
>
>
> Cheers, 
> Alexis 
>
> š http://ledger-cli.org/3.0/doc/ledger3.html#Commands-_0026-Options-Index 
>

-- 

--- 
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: register - How to display transactions' persistent notes?

2015-11-23 Thread John Wiegley
> Kuba Orlik  writes:

> Here’s an example of how I store transaction information:
> 2015/11/13 Restaurant Name
> ;chicken soup
> Assets:Checking USD -15
> Expenses:Food

> Is there a way to make register (or any other command) show the
> transactions’ persistent notes (in this case chicken soup)?

Try: --prepend-format '%(note)'

See also --prepend-width

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: [HOWTO] Register of virtual accounts related to a main account?

2015-11-23 Thread Alexis
Hello François,
from my understanding Ledger has more of a filter than a query language,
and I'm uncertain how one do with ledger what you want to do.

Surely one could script it using the Ledger Python API, but with only
commandline options, I don't know.

Can someone else shed some light on the issue?


Cheers,
Alexis

-- 

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


register - How to display transactions' persistent notes?

2015-11-23 Thread Kuba Orlik


Here’s an example of how I store transaction information:

2015/11/13 Restaurant Name
;chicken soup
Assets:Checking USD -15
Expenses:Food

Is there a way to make register (or any other command) show the 
transactions’ persistent notes (in this case chicken soup)? 
​

-- 

--- 
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: register - How to display transactions' persistent notes?

2015-11-23 Thread Alexis
Hello Kuba,
you can use the --payee option and have it display the transaction note.

% ledger reg --payee note
13.11.2015 chicken soup Assets:Checking USD -15 USD -15
13.11.2015 chicken soup Expenses:FoodUSD 15   0


Cheers,
Alexis

-- 

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