noalyss-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Noalyss-commit] [noalyss] 01/05: Task #1083 - Pas de nom du poste quand


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 01/05: Task #1083 - Pas de nom du poste quand on fait un lettrage par poste
Date: Sat, 24 Jan 2015 16:18:04 +0000

sparkyx pushed a commit to branch master
in repository noalyss.

commit 51d4f3c8d400314212b2421c669008a4480350fb
Author: Dany De Bontridder <address@hidden>
Date:   Sat Jan 24 16:45:48 2015 +0100

    Task #1083 - Pas de nom du poste quand on fait un lettrage par poste
---
 include/lettering.account.inc.php |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/include/lettering.account.inc.php 
b/include/lettering.account.inc.php
index cd2b1fe..c8903e8 100644
--- a/include/lettering.account.inc.php
+++ b/include/lettering.account.inc.php
@@ -32,7 +32,6 @@ echo '<FORM METHOD="GET">';
 echo dossier::hidden();
 echo HtmlInput::hidden('ac',$_REQUEST['ac']);
 echo HtmlInput::hidden('sa','poste');
-echo '<table width="50%">';
 
 $poste=new IPoste();
 $poste->name="acc";
@@ -42,11 +41,20 @@ $poste->set_attribute('gDossier',dossier::id());
 $poste->set_attribute('ipopup','ipop_account');
 $poste->set_attribute('label','account_label');
 $poste->set_attribute('account','acc');
-if (isset($_GET['acc'])) $poste->value=$_GET['acc'];
+$acc_lib="";
+if (isset($_GET['acc'])) { 
+    $poste->value=$_GET['acc']; 
+    $acc_lib=$cn->get_value('select pcm_lib from tmp_pcmn where 
pcm_val=upper($1)',array($poste->value));
+}
+
 $poste_span=new ISpan('account_label');
+$poste_span->value=$acc_lib;
+
 $r= td(_('Lettrage pour le poste comptable ')).
     td($poste->input()).
     td($poste_span->input());
+
+echo '<table width="50%">';
 echo tr($r);
 // limit of the year
 $exercice=$g_user->get_exercice();



reply via email to

[Prev in Thread] Current Thread [Next in Thread]