فهرست منبع

MMIFilters : Search by product ref in propal, order and invoice lists

Mathieu Moulin 1 سال پیش
والد
کامیت
41ba840d47
2فایلهای تغییر یافته به همراه8 افزوده شده و 1 حذف شده
  1. 7 0
      htdocs/commande/list.php
  2. 1 1
      htdocs/custom/mmifilters

+ 7 - 0
htdocs/commande/list.php

@@ -844,6 +844,13 @@ if ($search_product_category > 0) {
 $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."projet as p ON p.rowid = c.fk_projet";
 $sql .= ' LEFT JOIN '.MAIN_DB_PREFIX.'user as u ON c.fk_user_author = u.rowid';
 
+// Added by MMI Mathieu Moulin iProspective
+// Add fields from hooks
+$parameters = array();
+$reshook = $hookmanager->executeHooks('printFieldListJoinCommande', $parameters); // Note that $action and $object may have been modified by hook
+$sql .= $hookmanager->resPrint;
+//echo ($sql); die();
+
 // We'll need this table joined to the select in order to filter by sale
 if ($search_sale > 0 || (empty($user->rights->societe->client->voir) && !$socid)) {
 	$sql .= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc";

+ 1 - 1
htdocs/custom/mmifilters

@@ -1 +1 @@
-Subproject commit 2c52b03731d21c9b49fd38facaa91cb2e2f2963f
+Subproject commit 9e9c38739bd2f2c2282a004eb25764232f2246ce