Skip to content
Snippets Groups Projects
Commit 55dbc2df authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Merge pull request #3115 from sebhm/develop

add hook addMoreActionsButtons
parents 97524687 84e51eff
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment