Re: Multiple journal files?

2018-03-06 Thread Jostein Berntsen
On 05.03.18,23:59, Rick Mann wrote:
> I'd like to use Ledger to keep track of both my personal and LLC finances. 
> But I'm frequently moving money between them (usually personal into the 
> LLC), and I'm weighing the pros and cons of keeping them all in one 
> journal, so that I don't have to duplicate the transactions between them.
> 
> Ideally, I could do this with two journal files, one for personal and one 
> for the LLC, and have it read in both files each time I run ledger. But I 
> don't seem to be able to specify multiple files.
> 
> I'd like to do the same to break up journal files into years or even 
> months, so they don't grow too large.
> 
> Is that possible?
> 

This article gives some input on how to do this:

https://felixcrux.com/blog/ledger-practices-separate-your-journals


Jostein

-- 

--- 
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: Multiple journal files?

2018-03-06 Thread Daniele Nicolodi
On 06/03/2018 00:59, Rick Mann wrote:
> I'd like to use Ledger to keep track of both my personal and LLC
> finances. But I'm frequently moving money between them (usually personal
> into the LLC), and I'm weighing the pros and cons of keeping them all in
> one journal, so that I don't have to duplicate the transactions between
> them.
> 
> Ideally, I could do this with two journal files, one for personal and
> one for the LLC, and have it read in both files each time I run ledger.
> But I don't seem to be able to specify multiple files.
> 
> I'd like to do the same to break up journal files into years or even
> months, so they don't grow too large.
> 
> Is that possible?

Sure. Look a the `include` directive:

https://www.ledger-cli.org/3.0/doc/ledger3.html#index-include

Cheers,
Dan

-- 

--- 
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: Multiple journal files?

2018-03-06 Thread o1bigtenor
On Tue, Mar 6, 2018 at 1:59 AM, Rick Mann  wrote:

> I'd like to use Ledger to keep track of both my personal and LLC finances.
> But I'm frequently moving money between them (usually personal into the
> LLC), and I'm weighing the pros and cons of keeping them all in one
> journal, so that I don't have to duplicate the transactions between them.
>
> Ideally, I could do this with two journal files, one for personal and one
> for the LLC, and have it read in both files each time I run ledger. But I
> don't seem to be able to specify multiple files.
>
> I'd like to do the same to break up journal files into years or even
> months, so they don't grow too large.
>
> Is that possible?
>

Greetings

I have had this issue for many years. So I compromised - - - :-)  !
All of my finances are logged in the same journal - - - but expenses that
are personal are logged as personal - - - those that are blended are
partially ascribed to personal or business with a division as is
appropriate. Appropriate meaning justifiable and provable (which I believe
would satisfy any auditor). Business expenses are logged as business
expenses.
I also save my journal file after every month's data has been entered using
the date of that saving as a subtend to the file name (to make it easy to
find things if needed).
Am keeping up to 2 years of data in the active journal as I do lots of copy
and paste (saves time on recurring transactions) and this (2 years of
files) gives me a high likelihood of having a previous similar transaction.
So after the start of the third year I stop including the first years
information but then the journal 'name' is also changed.

AIUI business and personal is not supposed to be mixed but ledger enables
me to specify by code which transactions are included in any calculations
so I do think that I'm covered. As there is lots of personal funds still
being used by the business - - - well I think its only expedient to mingle
the two files whilst still keeping strict records (I am not trying to pass
off ALL personal expenses as business expenses!!).

hth

Dee

-- 

--- 
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: Multiple journal files?

2018-03-06 Thread Alexandre Rademaker
Perfect , UUID is the one I was trying to remember. Can you share the script 
and examples ?

Sent from my iPhone

> On 6 Mar 2018, at 06:21, Dániel Fancsali  wrote:
> 
> Hello,
> 
> My solution is to have one file per bank account, and the transfers are 
> marked with an UUID tag, so they will only be considered by ledger, when seen 
> for the first time.
> 
> Also, when including multiple files, you have to be very careful with the 
> balance assertions, as balance is calculated in parsing order, and not by 
> ordering all the transactions in memory. My solution for this is a little 
> script that'll merge/sort all the files to one single journal, and then I'll 
> run ledger on that.
> 
> 
> Regards,
> Dan
> 
>> On Tue, 6 Mar 2018 at 09:14 Alexandre Rademaker  wrote:
>> 
>> What about one bank account per file? In that case I need a way to avoid 
>> duplicate a transaction that envolve two accounts of  different files. I 
>> remember that in the pass we had a discussion about unique transaction ids 
>> in the metadata. Do ledger and hledeger support it?
>> 
>> Alexandre
>> Sent from my iPhone
>> 
>> > On 6 Mar 2018, at 05:10, Roderick Mann  wrote:
>> >
>> > Oh! I just tried specifying multiple --file options, and that worked.
>> >
>> >
>> 
>> --
>> 
>> ---
>> 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.
> 
> -- 
> 
> --- 
> 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.

-- 

--- 
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: Multiple journal files?

2018-03-06 Thread Dániel Fancsali
Hello,

My solution is to have one file per bank account, and the transfers are
marked with an UUID tag, so they will only be considered by ledger, when
seen for the first time.

Also, when including multiple files, you have to be very careful with the
balance assertions, as balance is calculated in parsing order, and not by
ordering all the transactions in memory. My solution for this is a little
script that'll merge/sort all the files to one single journal, and then
I'll run ledger on that.


Regards,
Dan

On Tue, 6 Mar 2018 at 09:14 Alexandre Rademaker 
wrote:

>
> What about one bank account per file? In that case I need a way to avoid
> duplicate a transaction that envolve two accounts of  different files. I
> remember that in the pass we had a discussion about unique transaction ids
> in the metadata. Do ledger and hledeger support it?
>
> Alexandre
> Sent from my iPhone
>
> > On 6 Mar 2018, at 05:10, Roderick Mann  wrote:
> >
> > Oh! I just tried specifying multiple --file options, and that worked.
> >
> >
>
> --
>
> ---
> 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.
>

-- 

--- 
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: Multiple journal files?

2018-03-06 Thread Alexandre Rademaker

What about one bank account per file? In that case I need a way to avoid 
duplicate a transaction that envolve two accounts of  different files. I 
remember that in the pass we had a discussion about unique transaction ids in 
the metadata. Do ledger and hledeger support it?

Alexandre 
Sent from my iPhone

> On 6 Mar 2018, at 05:10, Roderick Mann  wrote:
> 
> Oh! I just tried specifying multiple --file options, and that worked.
> 
> 

-- 

--- 
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: Multiple journal files?

2018-03-06 Thread Roderick Mann
Oh! I just tried specifying multiple --file options, and that worked.


> On Mar 5, 2018, at 23:59 , Rick Mann  wrote:
> 
> I'd like to use Ledger to keep track of both my personal and LLC finances. 
> But I'm frequently moving money between them (usually personal into the LLC), 
> and I'm weighing the pros and cons of keeping them all in one journal, so 
> that I don't have to duplicate the transactions between them.
> 
> Ideally, I could do this with two journal files, one for personal and one for 
> the LLC, and have it read in both files each time I run ledger. But I don't 
> seem to be able to specify multiple files.
> 
> I'd like to do the same to break up journal files into years or even months, 
> so they don't grow too large.
> 
> Is that possible?
> 
> -- 
> 
> --- 
> 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/sQU3kOzKVgM/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.


-- 
Rick Mann
rm...@latencyzero.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.