phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r4554 - phpcompta/trunk/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r4554 - phpcompta/trunk/include
Date: Sun, 4 Dec 2011 07:07:03 +0100 (CET)

Author: danydb
Date: 2011-12-04 07:07:02 +0100 (Sun, 04 Dec 2011)
New Revision: 4554

Modified:
   phpcompta/trunk/include/class_acc_ledger.php
Log:
No filter on ledger


Modified: phpcompta/trunk/include/class_acc_ledger.php
===================================================================
--- phpcompta/trunk/include/class_acc_ledger.php        2011-12-04 05:32:34 UTC 
(rev 4553)
+++ phpcompta/trunk/include/class_acc_ledger.php        2011-12-04 06:07:02 UTC 
(rev 4554)
@@ -2479,17 +2479,10 @@
         $and='';
         $user=new User($this->db);
                $p_action=$ledger_type;
+               if ( $p_action == '') $p_action='ALL';
         if ( $r_jrn == -1 )
         {
 
-            /* Specific action allow to see all the ledgers in once */
-           if ( $ledger_type== 'gl') $p_action='ALL';
-            /* actions from commercial.php  */
-            if ( $p_action == 'client') $p_action='ALL';
-            if ( $p_action == 'supplier') $p_action='ALL';
-            if ( $p_action == 'adm') $p_action='ALL';
-            if ( $p_action == 'ALL') $p_action='ALL';
-
             /* from compta.php the p_action is quick_writing instead of ODS  */
             if ( $p_action == 'quick_writing') $p_action='ODS';
 
@@ -2499,13 +2492,12 @@
         }
         else
         {
-            if ( $p_action == 'gl') $p_action='ALL';
+
             if ( $p_action == 'quick_writing') $p_action='ODS';
 
             $aLedger=$user->get_ledger($p_action,3);
             $fil_ledger='';
             $sp='';
-
             for ($i=0;$i < count($aLedger) ;$i ++)
             {
                 if ( isset($r_jrn[$i]))




reply via email to

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