Explorar o código

Merge pull request #20381 from hregis/new_add_hooks_in_product_reassort

NEW add printFieldListWhere hook in product reassort card
Laurent Destailleur %!s(int64=3) %!d(string=hai) anos
pai
achega
cd79b61ace
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      htdocs/product/reassort.php

+ 4 - 0
htdocs/product/reassort.php

@@ -198,6 +198,10 @@ if (!empty($canvas)) {
 if ($fourn_id > 0) {
 	$sql .= " AND p.rowid = pf.fk_product AND pf.fk_soc = ".((int) $fourn_id);
 }
+// Add where from hooks
+$parameters = array();
+$reshook = $hookmanager->executeHooks('printFieldListWhere', $parameters); // Note that $action and $object may have been modified by hook
+$sql .= $hookmanager->resPrint;
 $sql .= " GROUP BY p.rowid, p.ref, p.label, p.barcode, p.price, p.price_ttc, p.price_base_type, p.entity,";
 $sql .= " p.fk_product_type, p.tms, p.duration, p.tosell, p.tobuy, p.seuil_stock_alerte, p.desiredstock";
 // Add fields from hooks