Author: danydb
Date: 2013-10-19 15:23:30 +0200 (Sat, 19 Oct 2013)
New Revision: 5508

Modified:
   phpcompta/trunk/include/class_html_input.php
Log:
Card_detail without history

Modified: phpcompta/trunk/include/class_html_input.php
===================================================================
--- phpcompta/trunk/include/class_html_input.php        2013-10-19 13:06:49 UTC 
(rev 5507)
+++ phpcompta/trunk/include/class_html_input.php        2013-10-19 13:23:30 UTC 
(rev 5508)
@@ -456,12 +456,13 @@
     /**
      *show the detail of a card
      */
-    static function card_detail($p_qcode,$pname='',$p_style="")
+    static function 
card_detail($p_qcode,$pname='',$p_style="",$p_nohistory=false)
     {
       //if ($pname=='')$pname=$p_qcode;
       $r="";
-      $r.=sprintf('<a href="javascript:void(0)" %s 
onclick="fill_ipopcard({qcode:\'%s\'})">%s [%s]</a>',
-                 $p_style,$p_qcode,$pname,$p_qcode);
+      $histo=($p_nohistory==true)?' ,nohistory:1':"";
+      $r.=sprintf('<a href="javascript:void(0)" %s 
onclick="fill_ipopcard({qcode:\'%s\' %s})">%s [%s]</a>',
+                 $p_style,$p_qcode,$histo,$pname,$p_qcode);
       return $r;
     }
     /**



---
PhpCompta est un logiciel de comptabilité libre en ligne (full web)
Projet opensource http://www.phpcompta.eu

_______________________________________________
Phpcompta  est un logiciel libre de comptabilit&#233; en ligne 
(http://www.phpcompta.eu)
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to