mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
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>
This commit is contained in:
@@ -196,6 +196,7 @@ class Orders extends DolibarrApi
|
||||
|
||||
$sql = "SELECT t.rowid";
|
||||
$sql .= " FROM ".MAIN_DB_PREFIX."commande AS t";
|
||||
$sql .= " INNER JOIN ".MAIN_DB_PREFIX."societe AS s ON (s.rowid = t.fk_soc)";
|
||||
$sql .= " LEFT JOIN ".MAIN_DB_PREFIX."commande_extrafields AS ef ON (ef.fk_object = t.rowid)"; // Modification VMR Global Solutions to include extrafields as search parameters in the API GET call, so we will be able to filter on extrafields
|
||||
$sql .= ' WHERE t.entity IN ('.getEntity('commande').')';
|
||||
if ($socids) {
|
||||
|
||||
Reference in New Issue
Block a user