noalyss-commit
[Top][All Lists]
Advanced

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

[Noalyss-commit] [noalyss] 102/219: task #0001386: Amélioration visuell


From: Dany De Bontridder
Subject: [Noalyss-commit] [noalyss] 102/219: task #0001386: Amélioration visuelle plan comptable - postes utilisés Ajout lien si poste comptable utilisé
Date: Mon, 18 Dec 2017 13:22:45 -0500 (EST)

sparkyx pushed a commit to branch master
in repository noalyss.

commit b0f26ffd3ccd6d4b91866d2d3efb4bfb87053444
Author: Dany De Bontridder <address@hidden>
Date:   Tue Oct 24 00:07:43 2017 +0200

    task #0001386: Amélioration visuelle plan comptable - postes utilisés
    Ajout lien si poste comptable utilisé
---
 include/class/acc_plan_mtable.class.php | 16 ++++++++++++++--
 1 file changed, 14 insertions(+), 2 deletions(-)

diff --git a/include/class/acc_plan_mtable.class.php 
b/include/class/acc_plan_mtable.class.php
index 23377fa..84a15bc 100644
--- a/include/class/acc_plan_mtable.class.php
+++ b/include/class/acc_plan_mtable.class.php
@@ -78,7 +78,7 @@ class Acc_Plan_MTable extends Manage_Table_SQL
                 $js=sprintf("onclick=\"%s.input('%s','%s');\"", 
$this->object_name,
                         $p_row[$this->table->primary_key], $this->object_name);
                 echo sprintf('<td sort_type="text" sort_value="X%s">%s',
-                htmlspecialchars($p_row[$v]),
+                        htmlspecialchars($p_row[$v]),
                         HtmlInput::anchor($p_row[$v], "", $js)).'</td>';
             }
             elseif ($v == "fiche_qcode") {
@@ -87,10 +87,22 @@ class Acc_Plan_MTable extends Manage_Table_SQL
                elseif ($count == 1 ) { echo td($p_row[$v]) ; }
                elseif ($count > 1) { echo td($p_row[$v] . " ($count) ");} 
             }
+            elseif ($v=="pcm_lib")
+            {
+                $cn=Dossier::connect();
+                if ( $cn->get_value("select count(*) from jrnx where 
j_poste=$1",[$p_row['pcm_val']])>0){
+                    echo "<td>";
+                    echo 
HtmlInput::history_account($p_row['pcm_val'],h($p_row["pcm_lib"]));
+                    echo "</td>";
+                } else {
+                    echo td($p_row[$v]);
+                }
+
+            }
             else
             {
                 if ( ! $this->get_property_visible($v)) continue;
-                    echo td($p_row[$v]);
+                echo td($p_row[$v]);
             }
         }
         $this->display_icon_del($p_row);



reply via email to

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