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

Mode is not applied in PDF #182

Open
matll42 opened this issue Mar 8, 2022 · 3 comments
Open

Mode is not applied in PDF #182

matll42 opened this issue Mar 8, 2022 · 3 comments

Comments

@matll42
Copy link
Contributor

matll42 commented Mar 8, 2022

Hi,
I'm using the PDF function.
If I put the mode "Date / Project / Task", it will always sort by "Project / Task / Date" (same for "Project / Date / Task")

I'm using the latest version of timesheet 4.5.1 with dolibarr 15.0.0 with pgSQL DB

@delcroip
Copy link
Owner

Hi,

The pages of the report are by "project", the major issue is that there is not "project" column

I can easly activate the sorting per date instead of per task but reworking the PDF building to mix project will be too much work

br

@matll42
Copy link
Contributor Author

matll42 commented Mar 10, 2022

Hi, I didn't check the code yet. It's not a big issue for me. I'll take a look at the PDF when I have time.
Also having the sort options that works as requested would be a nice feature.

@delcroip
Copy link
Owner

There is 3 possible approaches,
put project + task in the task,
adding a new column (I will advise against as aligning the cell is really anoyning; up to you)
Adding a new line "project" each time the project changes (My prefered solution)

Same apporach for the user if you want to have something really flexible

The main loop will have to be updated to use reportArray instead of grouping per project/users

br

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

2 participants