1256 Commits

Author SHA1 Message Date
Laurent Destailleur
85f9d620ac Fix print 2025-12-19 12:59:58 +01:00
Laurent Destailleur
565ea4d065 Code comment 2025-12-18 16:38:26 +01:00
Laurent Destailleur
23be021550 Code comment 2025-12-18 16:35:06 +01:00
Laurent Destailleur
cdf2464076 Doc 2025-12-18 16:33:09 +01:00
Laurent Destailleur
5d2f951281 Fix Remove the DISTINCT 2025-12-18 16:29:17 +01:00
Laurent Destailleur
c5ddb76fd7 Debug v23. Bad balance ul/li in menu. 2025-12-08 20:33:48 +01:00
Laurent Destailleur
dc0656bf02 Merge branch 'develop' into patch-259291 2025-12-04 21:01:15 +01:00
Laurent Destailleur
e350886c15 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-12-04 20:38:22 +01:00
Jon Bendtsen
8deec3f918 it returns an Object, but it can not be TimeSpent because that creates a infinite loop 2025-12-04 16:23:13 +01:00
Jon Bendtsen
66d3df4cc6 Fix broken commit 9801f02 mentioned in issue #36507 2025-12-03 21:06:13 +01:00
Charlène Benke
656255eecd Fix progress assignment in addTimeSpent method 2025-12-03 13:03:09 +01:00
Charlène Benke
4c597d650b Update addTimeSpent api method to use default progress
with null parameters, swagger validator fail
2025-12-03 07:40:57 +01:00
Laurent Destailleur
5bcd5db58f Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-12-02 15:11:40 +01:00
Jon Bendtsen
9801f022f9 PHPStan fix 2025-11-30 12:09:08 +01:00
Jon Bendtsen
f7fee10e23 1 more pre-commit check fix 2025-11-30 12:03:57 +01:00
Jon Bendtsen
579f1ab1f7 actual pre-commit fix 2025-11-30 11:59:59 +01:00
Jon Bendtsen
bd31e922c8 letting API TASK PUT timespent update the product 2025-11-30 11:59:47 +01:00
Jon Bendtsen
6676171146 fix pre-commit CI check 2025-11-30 11:35:39 +01:00
Jon Bendtsen
58afc38ec4 API POST can now include a product_id 2025-11-30 11:30:01 +01:00
Jon Bendtsen
9a47931329 FIX: API task getTimeSpent to actually return data 2025-11-30 11:04:34 +01:00
Jon Bendtsen
18d8cfd510 making a more general fix for checking access to projet_task 2025-11-30 09:35:05 +01:00
Jon Bendtsen
9b0732dd49 FIX: #33899 API Timespent Service Field 2025-11-30 00:02:34 +01:00
Laurent Destailleur
8a2faed41f Debug v23 2025-11-23 22:14:34 +01:00
Frédéric FRANCE
46d6714fe0 clean code (#36317)
* clean code

* clean code

* clean doc

* clean doc

* clean doc

* clean doc

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-20 01:47:46 +01:00
Charlène Benke
fb92ebb4e7 Implement setCategories method in task class (#36218)
Added setCategories method to manage task categories.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-12 09:49:45 +01:00
Charlène Benke
5886abaf6f add date_c update on project_task (#36217)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-11 20:19:25 +01:00
MDW
c39e87d703 Qual: Make $fields covariant, define type for $FIELDS in BankAccounts api (#36188)
* Qual: Make $fields covariant

* Qual: Update BankAccounts class phpDoc ($FIELDS)

# Qual: Update BankAccounts class phpDoc ($FIELDS)

Updated the documentation for the $FIELDS property.
2025-11-09 18:06:58 +01:00
Jessica-creat
3a4b11b824 NEW add timespent API endpoints for projects and tasks add also cascading assignment of contacts to tasks (#35897)
* demande d'ajout timespent

* feat(api): add timespent endpoints for projects and tasks

* add contact to product

* correction prettier

* revert

* feat(api): update timespent endpoints in api_projects and api_tasks

* Update api_projects.class.php

* Remove blank line before docblock in api_tasks.class.php

Removed unnecessary blank line before the docblock for the get contacts method.

* Update api_tasks.class.php

* Clarify return type in api_projects.class.php

Updated return type annotation for contact information array.

* Refine return type in get timespent method

Updated return type annotation for timespent method.

* Return raw contacts instead of cleaned data

* Update api_projects.class.php

* Return contacts array instead of cleaned data

Modified the return value to return the contacts array directly instead of cleaned data.

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-07 00:09:14 +01:00
Charlène Benke
933eeb7474 NEW : Implement listTimespent method in api_projects.class.php (#36093)
* Implement listTimespent method in api_projects.class.php

Added a new method to retrieve all timespent data with filtering options (with filter, sort, ...)

* Fix comment formatting and improve listTimespent method

* Fix comment formatting and adjust function definition

* Refactor response structure for pagination data

* Initialize obj_ret as an empty array
2025-11-06 02:10:53 +01:00
MDW
b925dd6c37 Qual: Make $fields type covariant (phpstan) (#36084)
# Qual: Make $fields type covariant (phpstan)

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-04 14:16:17 +01:00
Lucas Marcouiller
d4cb81508d NEW Can update value of timespent with last task hourly rate (#36018)
* NEw update task hourly rate

* fix Ci

---------

Co-authored-by: Lucas Marcouiller <lmarcouiller@dolicloud.com>
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 03:16:17 +01:00
Charlène Benke
211514c85e Fix assignment of public property in task class (#36011)
* Fix assignment of public property in task class

* Rename 'public' to 'project_public' in task class

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-01 02:58:27 +01:00
Charlène Benke
f6f9f1214d NEW Add auto-reference generation for tasks (like in project) in API (#35981)
* Add auto-reference generation for tasks (like in project)

* Fix phan-var-force annotation for modTask
2025-10-30 01:15:40 +01:00
Charlène Benke
006c9dcc99 Add progress parameter to api task addTimeSpent method (#35992)
Added optional progress parameter to addTimeSpent method.
2025-10-29 22:10:25 +01:00
Frédéric FRANCE
675ec205f4 clean phpstan baseline (#35946) 2025-10-25 22:53:09 +02:00
Charlène Benke
a633c1db81 NEW Add contact management on project Api (#35459)
* Add contact management on project Api

* Update api_projects.class.php

* Update api_projects.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-26 23:56:51 +02:00
Frédéric FRANCE
e65b5575b9 clean code (#35462)
* clean code

* clean code

* clean code

* clean code

* clean code
2025-09-24 10:37:26 +02:00
Charlène Benke
9e3d909570 add getTimespent on api task (#35263)
* add getTimespent on api task

* Fix return statement in api_tasks.class.php

* Fix return statement in api_tasks.class.php

* Fix formatting and spacing in getTimespent method

* Fix formatting of if statement in getTimespent method

* Update api_tasks.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-21 12:30:48 +02:00
Frédéric FRANCE
554d2baa32 clean code adherent (member) class (#35259)
* clean code adherent (member) class

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* fix

* fix

* fix

* fix

* fix

* fix

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-12 02:40:35 +02:00
ldestailleur
702d91c65d Clean code 2025-09-11 12:25:22 +02:00
Frédéric FRANCE
e81d5378cd clean code contract class (#35245)
* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code contract class

* clean code

* clean code

* clean code

* clean code

* clean code

* fix typo

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix

* fix
2025-09-10 11:13:18 +02:00
Frédéric FRANCE
a1d7b11324 fix doc (#35196) 2025-09-03 12:54:17 +02:00
ldestailleur
cda2717155 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-08-13 19:54:21 +02:00
ldestailleur
66e420bc9d FIX Can edit status of tasks 2025-08-12 18:01:34 +02:00
ldestailleur
8cfc3d1306 Fix MAIN_NON_WORKING_DAYS_INCLUDE_MONDAY 2025-08-05 12:20:46 +02:00
ldestailleur
1d00912fed Fix MAIN_NON_WORKING_DAYS_INCLUDE_MONDAY 2025-08-05 12:19:53 +02:00
Charlène Benke
1df5ea8456 NEW Add thirdparty search on api list (#34634)
* Add thirdparty search on api list

this change allow to seach element with filter on thirdparty (ex : list of bill of with name of thidparty)

* Update api_orders.class.php

* Update api_invoices.class.php

* Update api_contracts.class.php

* Update api_shipments.class.php

* Update api_interventions.class.php

* Update api_projects.class.php

* Update api_tickets.class.php

* Update api_tickets.class.php

* Update api_projects.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-07-18 02:35:50 +02:00
Laurent Destailleur
77ce4ebc39 Debug v22 2025-07-08 00:56:55 +02:00
Jyhere
787bd1d278 CHANGE: ternary simplification (#34675) 2025-07-01 20:34:09 +02:00
dev2a
910279ea37 Fix Check delete task which return 0 on error (#34655) 2025-06-28 13:20:01 +02:00