phpcompta-dev
[Top][All Lists]
Advanced

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

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


From: phpcompta-dev
Subject: [Phpcompta-dev] r5232 - phpcompta/trunk/include
Date: Sat, 11 May 2013 00:21:56 +0200 (CEST)

Author: danydb
Date: 2013-05-11 00:21:56 +0200 (Sat, 11 May 2013)
New Revision: 5232

Modified:
   phpcompta/trunk/include/class_fiche.php
Log:
task #0000828: GESTION : Bouton exercice

Modified: phpcompta/trunk/include/class_fiche.php
===================================================================
--- phpcompta/trunk/include/class_fiche.php     2013-05-10 22:12:58 UTC (rev 
5231)
+++ phpcompta/trunk/include/class_fiche.php     2013-05-10 22:21:56 UTC (rev 
5232)
@@ -1248,12 +1248,15 @@
         if ( $p_array == null)
             $p_array=$_REQUEST;
         $progress=0;
-        
$name=h($this->getName()).'['.$this->strAttribut(ATTR_DEF_QUICKCODE).']';
+               // if from_periode is greater than to periode then swap the 
values
+               if (cmpDate($p_array['from_periode'],$p_array['to_periode']) > 
0)
+               {
+                       $tmp=$p_array['from_periode'];
+                       $p_array['from_periode']=$p_array['to_periode'];
+                       $p_array['to_periode']=$tmp;
 
-        list($array,$tot_deb,$tot_cred)=$this->get_row_date( 
$p_array['from_periode'],
-                                        $p_array['to_periode'],
-                                        $op_let
-                                                           );
+               }
+        list($array, $tot_deb, $tot_cred) = 
$this->get_row_date($p_array['from_periode'], $p_array['to_periode'], $op_let);
 
         if ( count($this->row ) == 0 )
             return -1;



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



reply via email to

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