Commit Graph

642 Commits

Author SHA1 Message Date
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
Frédéric FRANCE
51624f8a50 deprecate statut (#33691)
* deprecate statut

* Update fichinter.class.php

* clean code

* clean code

---------

Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
2025-04-02 11:27:17 +02:00
yannis
2418489d1c Fix typo 2025-03-03 17:08:04 +01:00
yannis
3519174adf Added retrieving extraparams for some object lines 2025-03-03 16:57:32 +01:00
MDW
c02293a880 Qual: Add phpdoc for request_data param 2025-03-02 20:49:45 +01:00
Laurent Destailleur
054df65f66 Merge branch 'develop' into develop_FichInterClone_Contacts_Not 2025-02-05 03:02:30 +01:00
MDW
24fa28dfe2 Qual: Fix getKanban phpdoc
# Qual: Fix getKanban phpdoc

Array phpdoc for getKanban corrections.
2025-02-05 01:43:37 +01:00
MDW
4af154c6d5 Qual: Fix phan notices
# Qual: Fix phan notices

Fix phan notices mostly in relation with supplier invoices,
Fix phan notices in relation with formquestion (phpdoc update, casts).
2025-02-03 16:05:57 +01:00
Laurent Destailleur
16fbfc937d Merge branch 'develop' into develop_FichInterClone_Contacts_Not 2025-02-02 02:01:16 +01:00
MDW
991afe2b21 Qual: Fix notices in api_interventions, phpstan notice 2025-02-02 01:26:42 +01:00
MDW
bea27b0be4 Qual: Fix phan notices 2025-02-02 01:26:41 +01:00
Noé
1d1eafb19f FIX: Add documentation for hte new two params 2025-01-30 17:33:57 +01:00
Noé
ac8557e129 NEW: Add options on intervention clone popup to clone or not contact and notes 2025-01-30 17:24:42 +01:00
Laurent Destailleur
adae4f0fb3 Merge branch '21.0' of git@github.com:Dolibarr/dolibarr.git into develop 2025-01-27 01:37:52 +01:00
Laurent Destailleur
940e42c1e4 Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into 21.0 2025-01-27 01:30:34 +01:00