From c3b25e5d80aa16948f8038ee4122ed360130415d Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Thu, 24 May 2007 00:41:17 +0000
Subject: [PATCH] Ajout motif abandon sur aide

---
 htdocs/compta/facture.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/htdocs/compta/facture.php b/htdocs/compta/facture.php
index 4d3843cc1f4..a905c3b215d 100644
--- a/htdocs/compta/facture.php
+++ b/htdocs/compta/facture.php
@@ -2033,7 +2033,9 @@ else
 					if (($fac->statut == 2 || $fac->statut == 3) && $fac->close_code == 'abandon')
 					{
 						print '<tr><td colspan="2" align="right" nowrap="1">';
-						print $html->textwithhelp($langs->trans("Abandoned").':',$langs->trans("HelpAbandonOther"),-1);
+						$text=$langs->trans("HelpAbandonOther");
+						if ($fac->close_note) $text.='<br><br><b>'.$langs->trans("Reason").'</b>:'.$fac->close_note;
+						print $html->textwithhelp($langs->trans("Abandoned").':',$text,-1);
 						print '</td><td align="right">'.price($fac->total_ttc - $totalpaye).'</td><td>'.$langs->trans('Currency'.$conf->monnaie).'</td></tr>';
 						$resteapayeraffiche=0;
 					}
-- 
GitLab