';
- // Reopen a standard paid invoice
+ // Modify a validated invoice with no payments
+ if ($object->statut == 1 && $action != 'edit' && $object->getSommePaiement() == 0 && $user->rights->fournisseur->facture->creer)
+ {
+ print ''.$langs->trans('Modify').'';
+ }
+
+ // Reopen a standard paid invoice
if (($object->type == 0 || $object->type == 1) && ($object->statut == 2 || $object->statut == 3)) // A paid invoice (partially or completely)
{
if (! $facidnext && $object->close_code != 'replaced') // Not replaced by another invoice
@@ -2107,4 +2114,4 @@ else
// End of page
llxFooter();
$db->close();
-?>
\ No newline at end of file
+?>