Group invoice statistics by person name
Closed this issue · 3 comments
Right now it's hard to see who worked how much on the invoices/worklogs. It would be nicer if we could change the way the worklogs are displayed.
- On the invoices group the worklogs by name of the person working on it. So that it will have have this format:
Philipp Meissner - 20 hours - 1000€
Christian Semmler - 20 hours - 1000€
- Group the worklog report by coworker. Each coworker should have it's own page in the summary. That way you can see which coworker worked what at which day.
It's being worked on right here: #32
Unfortunately I am so far missing two things.
-
How can I view/download the pdfs locally in development? I always end up with an Errno:EPIPE error caused by
@invoice_pdf.to_pdf
. -
How to create a new page through PDFKit? I guess we'll have to use some CSS for that matter. Maybe you have already found a way to accomplish that?
-
I would not test the PDF. I would just check that you can render the html. So try rendering the html directly in the browser :).
-
Yep. https://stackoverflow.com/questions/15080891/start-a-new-page-with-pdfkit. Try this css:
page-break-after: always
.
Alright. This should work now :)
@hendricius Please verify and deploy.