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

generate invoice document #28

Open
bburdette opened this issue Dec 12, 2022 · 4 comments
Open

generate invoice document #28

bburdette opened this issue Dec 12, 2022 · 4 comments

Comments

@bburdette
Copy link
Contributor

would be great to automatically generate an invoice document.

various ideas:

  • sum the number of hours, OR
  • present all the hours logged summed with the task strings.
  • use project settings to fill in the blanks on the invoice.
  • store client information in the project record - address, name, etc.
  • upload a template docx document with text that is replaced by the above.

there is a library, docx-rs, that might be able to help with this. currently is a bit broken but the examples seemed to work after fixing the compile errors.

@bburdette
Copy link
Contributor Author

Josh suggested using latex for doing an invoice template. Looks better for templating than docx.

@bburdette
Copy link
Contributor Author

Some latex invoice templates:

http://www.latextemplates.com/cat/invoices

@bburdette
Copy link
Contributor Author

@muffinator what would be great would be a way to search-and-replace fields in the invoice. I could supply the fields in json form, something like

[ { "search": "{client address}"
   "replace": "1234 5th Street" },
  { "search": "{total hours}"
   "replace": "24.5" },
  {"search": "{hourly rate}",
   "replace": "85"}
]

Or maybe there's a better format that latex prefers for templates?  

Basically if there's a script that takes a table ot search-replace pairs and ewrites an invoice document, I can incorporate that into the server. 

@bburdette
Copy link
Contributor Author

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