delcroip / dolibarr_project_timesheet

Timesheet view for project in Dolibarr
https://demo-timesheet.pmpd.eu
GNU Affero General Public License v3.0
36 stars 32 forks source link

Mode is not applied in PDF #182

Open matll42 opened 2 years ago

matll42 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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