On 2018-05-01 01:54, Jostein Berntsen wrote:
On 30.04.18,02:22, Johann Höchtl wrote:
Bump.

The interesting thing is that the balance amount for account "Share" varies
depending on the order I call the two ledger files.

What is the underlying problem / offending statement? Do I need to extract
the automated transactions from the two files into one additional external
file?

Thank you!

You might look at the comment in this post regarding problem with
balancing with assertions and multiple files:

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

It might work better if you keep your transacations in one file here,
the result seems more like you expect.
Thank you for the pointer which will help me to understand how to structure files.

Meanwhile I identified the underlying problem. The definition for automated shared transactions is in both files as I would like to keep them separated and usable on their own. However if they are combined with multiple -f specifications on the command line these automated transactions become defined and applied twice.

Ideally some sort of #idef ...  #define  .... #endif functionality to prevent the semantically same second definition of an automated transaction to be defined would be a solution.

Maybe I could get around with a

define variable=true

or like functionality?

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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to