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
Upload documents #157
Comments
- Drop-targets are account names in tree-tables and the header of the Account view page. - Uploads to <document-root>/<Account/Subaccount/...>/<filename>
@corani I implemented a first version of this. Works on account names in tree-tables and the header of the Account view. If a file is dragged over such an area, the background of that area changes to light blue to indicate that a file can be dropped here. Things missing:
Can you try it out and give feedback if it does what you intended? |
Dropping on tables works great, but the header is a bit narrow. Is there any way to make the drop-target a bit bigger? (e.g. add some padding to the top and bottom of the header) Some more things:
|
Will do.
Will implement that in step with the filename-date-check
I think this is because of https://github.com/aumayr/fava/blob/master/fava/application.py#L115 |
One more, it should create the correct parent folders if they don't yet exist. |
Looks like a likely culprit. This is low-prio for me, btw. I can live with latin-only |
Hmm, for some reason "data-account-name" has suddenly become empty in the tables, causing the documents to be uploaded to the root... |
Reading the beancount manual, I noticed "You may specify this option multiple times if you have many such document archives." Another gotcha. If we need a dialog anyway to ask for the date to put in the filename, maybe also let the user pick the document-root, if there are multiple. |
Both fixed in 60e7c4d |
Remaining TODOs (will update here):
|
@corani I implemented the missing parts. Can you test again? |
All confirmed working. Awesome! |
👍 |
I'd like the ability to upload documents by dropping them on an
account
page. For example, when I drop a document on theLiabilities:Bank:Credit-Card
account page, it should store the document in thedocument
folder, underLiabilities/Bank/Credit-Card/<date>.document-name.ext
Probably it should ask to enter a date, if the document doesn't start with one, so you don't need to rename the documents in advance.The text was updated successfully, but these errors were encountered: