-
-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hledger-flow
reports empty for user sub-accounts (due to missing directives.journal
at lower levels)
#112
Comments
Hi @stewmehr The first line of those generated reports contain the hledger command that was used to generate the report. What happens if you run that yourself, but add another Can you give an example of your directives.journal with "account info, including non-default account names and types" that would result in an empty report even when there are actual data in the |
Hi @apauley Thank you for your swift reply. I was not aware that it was possible to supply multiple If you still want to investigate this, here are the first few lines of my
I can try to clean some of my user data later today but it will take me a little more time to supply CSVs, rules files etc. It may be faster to replicate the issue by creating a copy of the EDIT just to clarify:
|
I have another issue due to the missing (not included)
But the report generated without including
As discussed above, we must add |
Describe the bug
I have set up an account structure with several users in my
./import
directory (e.g../import/userA/bankX/checking/1-in
,./import/userB/bankY/checking/1-in
, etc. ...). This works fine in terms of importing CSVs and generating journal files, but I am struggling withhledger-flow report
. The generated./reports
directory looks as follows:Unfortunately, only the reports in
./reports/all
contain any numbers whereas the reports generated foruserA
anduserB
are empty. This is due to the fact that all my account info, including non-default account names and types, is stored in./directives.journal
in the top-level directory. By default, this directives file is only included in./all-years.journal
but not included in./import/user{A,B}/all-years.journal
. Thus,hledger
does not know the correct mapping of my income and expense accounts and is unable to generate any income statements or balance sheets for individual user accounts.This can easily be fixed by appending the line
to the respective
all-years.journal
files at lower levels. I am not sure if this is the most efficient solution but I cannot think of a better one right now.Version and Runtime Information
Please mention the version number of
hledger-flow
you are using:Is this the latest version? Yes
Please confirm your issue using the latest version of
hledger-flow
, maybe it has already been fixed. NoAlso include the runtime options of the command you ran, e.g:
To Reproduce
Issue cannot be reproduced with data available at
https://github.com/apauley/hledger-flow-example
as the repo's
import
directory contains only a singleuser
directory.Expected behavior
I would expect the reports in directories other than
all
not to be empty.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: