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

Invoice Grouped by Activity #379

Closed
srdco opened this issue Oct 30, 2018 · 4 comments
Closed

Invoice Grouped by Activity #379

srdco opened this issue Oct 30, 2018 · 4 comments

Comments

@srdco
Copy link
Contributor

srdco commented Oct 30, 2018

We create invoices and summarize how we spent the time. For example, we bill for 10 hours - 2 hours spent on Analysis, 4 hours on Drafting, 1 on Client Communication, etc.
It appears that the Kimai v2 Invoice templates only allow lumping everything together into a single entry or break it out into every single time entry.

Is there any way that the invoice templates could allow summing time by activity?

The current workaround is to print or export a detailed invoice and create our own, but it would be much easier to simply use the native Kimai invoice system.
It doesn't seem like it would be hard to sum by Activity, but I may be wrong?

Thanks a bunch!!!

@srdco
Copy link
Contributor Author

srdco commented Oct 30, 2018

If you could give some pointers on where one would go to start editing that, I might be able to try taking a stab at it.

@kevinpapst
Copy link
Member

That should be real simple to add! Copy this file and change the marked lines (+ rename the file, class and id):
https://github.com/kevinpapst/kimai2/blob/master/src/Invoice/Calculator/UserInvoiceCalculator.php#L34-L37
Afterwards clear your cache, otherwise the new renderer won't be picked up by the UI.

@kevinpapst
Copy link
Member

I created a pull request, that will add an invoice calculator which groups entries by their activity.
If you want to test it: #380 - checkout the branch, clear the cache and create an invoice with it.

@kevinpapst kevinpapst added this to the 0.6 - Permissions milestone Oct 31, 2018
@lock
Copy link

lock bot commented Jan 5, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai.

@lock lock bot locked and limited conversation to collaborators Jan 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants