diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index cda640f2f383017ad0058de514b42bd42605c32d..794e3e4901a90d5ca68baffb96863eb05db7ed7c 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -2313,6 +2313,11 @@ else print '<div class="tabsAction">'; + $parameters = array(); + $reshook = $hookmanager->executeHooks('addMoreActionsButtons', $parameters, $object, $action); // Note that $action and $object may have been + // modified by hook + if (empty($reshook)) { + // Modify a validated invoice with no payments if ($object->statut == FactureFournisseur::STATUS_VALIDATED && $action != 'edit' && $object->getSommePaiement() == 0 && $user->rights->fournisseur->facture->creer) { @@ -2432,6 +2437,7 @@ else print '</div></div></div>'; //print '</td></tr></table>'; } + } } /* * Show mail form