diff --git a/htdocs/fourn/commande/fiche.php b/htdocs/fourn/commande/fiche.php index 214fc41770b..ffa72ecf9ac 100644 --- a/htdocs/fourn/commande/fiche.php +++ b/htdocs/fourn/commande/fiche.php @@ -1583,7 +1583,7 @@ elseif (! empty($object->id)) // Edit line if ($action != 'edit_line' || $_GET['rowid'] != $line->id) { - print ''; + print ''; // Show product and description print ''; @@ -1634,6 +1634,13 @@ elseif (! empty($object->id)) } print ''.price($line->total_ht).''; + + if (is_object($hookmanager)) + { + $parameters=array('line'=>$line,'num'=>$num,'i'=>$i); + $reshook=$hookmanager->executeHooks('printObjectLine',$parameters,$object,$action); + } + if ($object->statut == 0 && $user->rights->fournisseur->commande->creer) { print 'id.'#'.$line->id.'">'; diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index 073ea94b40e..3722ceaac51 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -1941,7 +1941,7 @@ else } else // Affichage simple de la ligne { - print ''; + print ''; // Show product and description print ''; @@ -1996,7 +1996,13 @@ else print ''.price($object->lines[$i]->total_ht).''; print ''.price($object->lines[$i]->total_ttc).''; - + + if (is_object($hookmanager)) + { + $parameters=array('line'=>$object->lines[$i],'num'=>$num,'i'=>$i); + $reshook=$hookmanager->executeHooks('printObjectLine',$parameters,$object,$action); + } + print ''; if ($object->statut == 0) print 'lines[$i]->rowid.'">'.img_edit().''; else print ' ';