From 2e25d17372fd93c29b04cf76f283514805ef1526 Mon Sep 17 00:00:00 2001 From: lalaina rasamoelina Date: Tue, 6 Aug 2013 16:41:36 +0200 Subject: [PATCH] T960-develop : Put the note_private in the propal list In the propal list, if there are the private notes,we print them and we can edit them htdocs/comm/propal/list.php --- htdocs/comm/propal/list.php | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php index a911797fd49..c978e035785 100644 --- a/htdocs/comm/propal/list.php +++ b/htdocs/comm/propal/list.php @@ -139,8 +139,9 @@ if (! $sortfield) $sortfield='p.datep'; if (! $sortorder) $sortorder='DESC'; $limit = $conf->liste_limit; + $sql = 'SELECT s.rowid, s.nom, s.town, s.client, '; -$sql.= 'p.rowid as propalid, p.total_ht, p.ref, p.ref_client, p.fk_statut, p.fk_user_author, p.datep as dp, p.fin_validite as dfv,'; +$sql.= 'p.rowid as propalid, p.note_private, p.total_ht, p.ref, p.ref_client, p.fk_statut, p.fk_user_author, p.datep as dp, p.fin_validite as dfv,'; if (! $user->rights->societe->client->voir && ! $socid) $sql .= " sc.fk_soc, sc.fk_user,"; $sql.= ' u.login'; $sql.= ' FROM '.MAIN_DB_PREFIX.'societe as s, '.MAIN_DB_PREFIX.'propal as p'; @@ -352,6 +353,16 @@ if ($result) $companystatic->client=$objp->client; print ''; print $companystatic->getNomUrl(1,'customer'); + if(!empty($objp->note_private)) + { + print '
'; + print ''; + + } print ''; // Town