* 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>
* 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>
* 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 !!!!
* 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>
* 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>