Commit Graph

656 Commits

Author SHA1 Message Date
MDW
ec69a624e0 qual: Update french texts (comments) to english (#37009)
* qual: Update french texts (comments) to english

* Qual: Update comment to english in card-rec.php and card.php

Translation of comments in the files card-rec.php and card.php.

* Qual: Translate comments to English

* Qual: Translate comments to English

* Fix space into tab

* Fix spelling

* Qual: Translate comments to English

* Update website.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-01-28 19:34:12 +01:00
Charlène Benke
0e51a7a529 Add source parameter to getContacts on api interventional (#36931)
Added a new parameter 'source' to the getContacts method to filter contacts based on their source (internal or external). Updated the method to handle the new parameter appropriately.

propose to add this feature on all getContacts method.

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2026-01-24 13:42:54 +01:00
Frédéric FRANCE
d770d37e29 add phpcs rule extension (#36561)
* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* add phpcs rule extension

* test

* test

* test

* test

* test

* test

* fix

* fix

* fix

* fix

* fix

* fix

* fix translations

* fix translations

* translate

* translate

* translate

* translate

* translate

* translate

* translate

* Update propal.class.php
2026-01-15 16:05:06 +01:00
William Mead
239f036252 Deleted duplicate route. Cleaned settodraft method. Updated changelog. 2025-12-17 10:11:50 +01:00
alain.cisirika
edc077c1a4 FIX #36624 SQL syntax error when adding line to intervention 2025-12-12 15:15:56 +02:00
Laurent Destailleur
73947be822 Fix CI 2025-12-07 17:46:24 +01:00
Laurent Destailleur
13e6a7b936 Debug v23 2025-12-05 12:55:20 +01:00
Charlène Benke
3ddbcf8d9e Continue Implement new title line addition for subtotals on interventional (#36376)
* Implement new title line addition for subtotals

Added functionality to handle adding a new title line for the subtotals module, including input processing and document generation.

* Add parameters to addline method in fichinter class

* Add special_code to fichinterligne class

* Update copyright notices in commonsubtotal.class.php

Added copyright notice for Charlene Benke for 2025.

* Remove extra blank line in fichinterligne.class.php

* Change special_code to be an integer in SQL query

* Refactor intervention detail display logic

Refactor code for better readability and maintainability by removing duplicate lines and organizing the logic for displaying intervention details.

* Decode extraparams to get subtotal options

* Change default value of special_code to 0
2025-11-24 19:47:07 +01:00
Charlène Benke
7d3dedbfc4 Continue to integrate subtotals on fichinter (#36325)
* add CommonSubtotal usage on fichinter class

* Add 'fichinter' to element check in subtotal_create

* Implement subtotal line addition in card.php

Added functionality to handle subtotal lines in the card.

* Update card.php

* Update permission checks for intervention module

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-20 16:13:56 +01:00
Laurent Destailleur
3fe6795b15 Clean code 2025-11-20 11:28:00 +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
b45ee47907 NEW : add product_type field on fichinter (preparing subtotal) (#36196)
* NEW : add product_type field on fichinter (preparing subtotal)

Added product_type to SQL queries for fetch, insert, and update methods.
field already present on table, so let start add subtotal on interventionals

* Update fichinterligne.class.php

* Update copyright information in card-rec.php

Updated copyright year and name for Charlie Benke.

* Update fichinterligne.class.php

* Update fichinterligne.class.php

* Update fichinterligne.class.php

* Update fichinterligne.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-19 15:27:26 +01:00
William Mead
24e519c5a0 FIX QUAL intervention API close (#36278)
* Refactored close method

* Updated PHPDoc

* Updated PHPDoc

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-11-17 22:15:44 +01:00
Frédéric FRANCE
59789a8f02 add class_element_line (#36115) 2025-11-05 22:18:02 +01:00
Charlène Benke
d1e0efc466 NEW Add getcontacts on api of interventional and proposal (#35589)
* Add getContacts method to retrieve contact information

* Implement getContacts method for proposals

Added a method to retrieve contacts associated with a proposal, including access checks and data cleaning.

* Implement getContacts method for invoices

Added a method to retrieve contacts associated with a specific invoice, including access checks and error handling.

* Update api_proposals.class.php

* Update api_invoices.class.php

* Update api_interventions.class.php

* Update api_interventions.class.php

* Add method to set invoice as draft

* Return contacts directly instead of cleaned data

* Return raw contacts instead of cleaned data

* Combine external and internal contacts in order list

Merge external and internal contacts for orders.

* Change return type from Object to array in API doc

Updated return type in API documentation for contact information.

* Change return type in api_orders.class.php docblock

Updated return type in docblock to reflect array return.

* Change return type from Object to array in API doc

* Update api_orders.class.php

* Update api_interventions.class.php

* Update api_proposals.class.php

* Update api_orders.class.php

* Update api_interventions.class.php

* Update api_interventions.class.php

* Update api_interventions.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-10-04 20:01:57 +02:00
Charlène Benke
277c01a432 Implement CRUD operations for interventional lines and contacts (#35457)
* Implement CRUD operations for interventional lines and contacts

Added methods to manage interventional lines and contacts.

* Update api_interventions.class.php

* Fix variable references in api_interventions.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-28 22:41:42 +02:00
Frédéric FRANCE
7fb7d38ffc clean code (#35533) 2025-09-28 20:56:54 +02:00
Frédéric FRANCE
bb9899085e clean code (#35451)
* clean code

apiroute is interventions

* Update api_interventions.class.php

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* fix bad condition

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-23 23:22:57 +02:00
Charlène Benke
e02991ed7f NEW Add hook initialization for interventions API (#35203)
* NEW Add hook initialization for interventions API

the goal is to enhance the search function on the api (by sample add linked contact or user name)

* Clean up whitespace in api_interventions.class.php

* Fix parameter reference in executeHooks call

* Update api_interventions.class.php

* Update action name in API intervention hooks

* Add 'apimethod' to parameters in API hook

* Update api_interventions.class.php

* Update api_interventions.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-09-21 23:23:39 +02:00
ldestailleur
15f34dbbb0 QUAL: Removed deprecated properties user_valid, user->creation,
user_modification replaced with user_ceation_id, user_validation_id and
user_modification_id.
2025-09-21 14:58:38 +02:00
Carlos Herrera
57157db2b7 Cehojac/issue35362 (#35364)
* intervencions api call dont show the objects relations
Fixes #35362

* feat: add loadlinkedobjects parameter to control linked object loading in interventions API

thank you for the recomendarion @eldy !!!!
2025-09-20 01:11:19 +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
24bd6d918a clean code (#35183)
* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code

* clean code
2025-09-02 22:46:55 +02:00
ldestailleur
1443f35cf1 Merge branch '22.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-08-29 02:20:14 +02:00
William Mead
83898f9454 Fixed intervention line duration add (#35117) 2025-08-28 17:29:04 +02:00
Charlène Benke
8fa13f68bf fix translation of $fields on interventional (#35106)
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-08-28 13:49:34 +02:00
Frédéric FRANCE
cc03c92614 fix update resource (#35015)
* fix update resource

* fix update resource

* fix update resource

* fix update resource

* fix update resource

* fix update resource

* fix update resource

* fix update resource

* fix update resource

* fix update resource

* fix update resource

* fix update resource
2025-08-20 19:02:08 +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
Jyhere
787bd1d278 CHANGE: ternary simplification (#34675) 2025-07-01 20:34:09 +02:00
ldestailleur
9c2da8b9b6 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-06-19 11:31:44 +02:00
Marc de Lima Lucio
7a8e926935 FIX: interventions: sql error when signed_status not set (#34515) 2025-06-15 00:32:23 +02:00
Charlène Benke
9577731b3a qual/fix : rewriting query generating error in certains case (#34305)
* Update facturestats.class.php

* Update expeditionstats.class.php

* Update fichinterstats.class.php

* Update expeditionstats.class.php

* Update facturestats.class.php
2025-06-04 14:36:53 +02:00
Mohamed DAOUD
d359a4d7a5 FIX #34046 No traceability when generating Intervention from Task Time (#34209)
* fix generating Intervention from Task Time

* remove comment

* fix CI

* FIX CI
2025-05-20 22:34:11 +02:00
William Mead
394ef6329d Fix SwaggerUI (#34124) 2025-05-13 11:49:26 +02:00
William Mead
22298c1f83 NEW pagination data for interventions API get (#34113)
* Added get interventions pagination data

* Fixed PHPDoc

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-05-12 20:06:38 +02:00
ldestailleur
d13cd0f47a Fix CI 2025-05-05 04:36:28 +02:00
ldestailleur
e4e5b1e597 Clean code 2025-05-05 02:22:02 +02:00
ldestailleur
2736a4b382 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-05-05 00:07:09 +02:00
ldestailleur
a74979bc04 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-05-05 00:04:17 +02:00
ldestailleur
d85cea32c0 Merge branch '19.0' of git@github.com:Dolibarr/dolibarr.git into 20.0 2025-05-05 00:03:49 +02:00
ldestailleur
f70cfeb6d3 Merge branch '18.0' of git@github.com:Dolibarr/dolibarr.git into 19.0 2025-05-05 00:03:09 +02:00
William Mead
2925bb6481 Cleaned PHPDoc. Added contributor info. (#34026) 2025-05-04 11:24:38 +02:00
William Mead
c3b35d4da5 Fixed PHPDoc. Added contributor details. (#33988) 2025-04-29 06:40:04 +02:00
William Mead
e8bf0e183d NEW reopen for interventions API (#33982)
* Added intervention post reopen API route

* Updated PHPDoc

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-26 04:21:37 +02:00
William Mead
333007c004 FIX intervention API get contacts ids (#33919)
* Fixed PHPDoc

* Added an array of contact ids to get and index methods

* Adjusted contact_type parameter to empty by default

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-20 19:00:04 +02:00
Francis Appels
55530fa588 Fix intervention update sql error (#33916) 2025-04-18 20:01:58 +02:00
Charlène Benke
93de32e153 add fichinter put call for update data (#33836)
* add fichinter put call for update data

* Update api_interventions.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-16 01:05:03 +02:00
Charlène Benke
4d1e071247 allow fichinter date update by api call (#33835)
* allow fichinter date update by api call

* Update fichinter.class.php

* Update fichinter.class.php

* Update fichinter.class.php

* Update fichinter.class.php

* Update fichinter.class.php

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-15 17:22:34 +02:00
Eric - CAP-REL
be1948e1eb better fields definition with full objects reference (#33798) 2025-04-09 16:36:42 +02:00