Skip to content
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

Adicionar anexos nas entradas #2

Open
6 tasks
diegor2 opened this issue Feb 27, 2017 · 2 comments
Open
6 tasks

Adicionar anexos nas entradas #2

diegor2 opened this issue Feb 27, 2017 · 2 comments

Comments

@diegor2
Copy link
Member

diegor2 commented Feb 27, 2017

  • Criar endpoint para subir os arquivos (usando flask)
  • Adicionar botão "anexo" na interface web
  • Integração com https://pirat.as
  • Adicionar URL encurtada como metadado
  • Fazer pull request para o projeto original
    • Integração genérica com outros encurtadores ao invés do pirat.as (e.g: bit.ly, git.io)
@diegor2
Copy link
Member Author

diegor2 commented Feb 27, 2017

$ curl 'pirat.as/enc?url=https://github.com/piratas/fava/issues/2'
{"status":"success","data":"http://pirat.as/171"}

@diegor2
Copy link
Member Author

diegor2 commented Apr 4, 2017

Já existe suporte para "Documents"

Documents
A Document directive can be used to attach an external file to the journal of an account:
2013-11-03 document Liabilities:CreditCard "/home/joe/stmts/apr-2014.pdf"
The filename gets rendered as a browser link in the journals of the web interface for the corresponding account and you should be able to click on it to view the contents of the file itself. This is useful to integrate account statements and other downloads into the flow of accounts, so that they’re easily accessible from a few clicks. Scripts could also be written to obtain this list of documents from an account name and do something with them.
The general format of the Document directive is:
YYYY-MM-DD document Account PathToDocument
Documents from a Directory
A more convenient way to create these entries is to use a special option to specify directories that contain a hierarchy of sub-directories that mirrors that of the chart of accounts. For example, the Document directive shown in the previous section could have been created from a directory hierarchy that looks like this:
stmts
-- Liabilities -- CreditCard
`-- 2014-04-27.apr-2014.pdf
By simply specifying the root directory as an option:
option "documents" "/home/joe/stmts"
The files that will be picked up are those that begin with a date as above, in the YYYY-MM-DD format. You may specify this option multiple times if you have many such document archives. In the past I have used one directory for each year (if you scan all your documents, the directory can grow to a large size, scanned documents tend to be large files).
Organizing your electronic document statements and scans using the hierarchy of your ledger’s accounts is a fantastic way to organize them and establish a clear, unambiguous place to find these documents later on, when they’re needed.

https://docs.google.com/document/d/1wAMVrKIA2qtRGmoVDSUBJGmYZSygUaR0uOMW1GV3YE0/edit#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant