From 8444a290e785693db7a3eab895b552cb8ede9662 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 31 Dec 2011 14:26:03 +0100 Subject: [PATCH] Do not show paypal link if invoice is draft --- htdocs/compta/facture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php index 41d0ea4ef06..3f57f1a2e9f 100644 --- a/htdocs/compta/facture.php +++ b/htdocs/compta/facture.php @@ -2959,7 +2959,7 @@ else $somethingshown=$object->showLinkedObjectBlock(); // Link for paypal payment - if ($conf->paypal->enabled) + if ($conf->paypal->enabled && $object->statut != 0) { include_once(DOL_DOCUMENT_ROOT.'/paypal/lib/paypal.lib.php'); print showPaypalPaymentUrl('invoice',$object->ref);