phpcompta-dev
[Top][All Lists]
Advanced

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

[Phpcompta-dev] r5166 - phpcompta/tags/rel650/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r5166 - phpcompta/tags/rel650/include
Date: Sat, 8 Dec 2012 21:30:45 +0100 (CET)

Author: danydb
Date: 2012-12-08 21:30:44 +0100 (Sat, 08 Dec 2012)
New Revision: 5166

Modified:
   phpcompta/tags/rel650/include/impress_jrn.inc.php
Log:
rewriting

Modified: phpcompta/tags/rel650/include/impress_jrn.inc.php
===================================================================
--- phpcompta/tags/rel650/include/impress_jrn.inc.php   2012-12-08 20:12:14 UTC 
(rev 5165)
+++ phpcompta/tags/rel650/include/impress_jrn.inc.php   2012-12-08 20:30:44 UTC 
(rev 5166)
@@ -118,8 +118,8 @@
 print td('Jusque ').$w->input('to_periode',$periode_end);
 print "</TR><TR>";
 $a=array(
-       array('value'=>0,'label'=>'Detaillé'),
-       array('value'=>1,'label'=>'Simple')
+       array('value'=>0,'label'=>'Ecriture comptable'),
+       array('value'=>1,'label'=>'Liste opérations')
    );
 $w->selected=1;
 print '</TR>';
@@ -146,18 +146,18 @@
     $d=var_export($_GET,true);
     $Jrn=new Acc_Ledger($cn,$_GET['jrn_id']);
     $Jrn->get_name();
-    if ( $_GET['p_simple']==0 )
-    {
-        $Row=$Jrn->get_row( $_GET['from_periode'],
-                            $_GET['to_periode']
-                          );
-    }
-    else
-    {
-        $Row=$Jrn->get_rowSimple($_GET['from_periode'],
-                                 $_GET['to_periode']
-                                );
-    }
+       switch ($_GET['p_simple'])
+       {
+               case "0":
+                        $Row=$Jrn->get_row( 
$_GET['from_periode'],$_GET['to_periode']);
+                       break;
+               case "1":
+                       
$Row=$Jrn->get_rowSimple($_GET['from_periode'],$_GET['to_periode']);
+                       break;
+               default:
+                       var_dump($_GET['p_simple']);
+                       die (__FILE__.":".__LINE__." error unknown style ");
+       }
     $rep="";
     $hid=new IHidden();
     echo '<div class="content">';
@@ -199,7 +199,9 @@
         exit;
 
     echo '<TABLE class="result">';
-
+       
/////////////////////////////////////////////////////////////////////////////////////
+       // Ecriture comptable
+       
/////////////////////////////////////////////////////////////////////////////////////
     if ( $_GET['p_simple'] == 0 )
     {
         // detailled printing
@@ -230,7 +232,11 @@
             "</TR>";
         }// end loop
     } // if
-    else
+       
/////////////////////////////////////////////////////////////////////////////////////
+       // Liste opérations
+       
/////////////////////////////////////////////////////////////////////////////////////
+
+    elseif ( $_GET['p_simple'] == 1 )
     {
         // Simple printing
         //---
@@ -242,7 +248,7 @@
         "<th>internal</th>".
          th('Tiers').
         "<th>Commentaire</th>".
-        "<th> montant</th>".
+        "<th>Total opération</th>".
         "</TR>";
         // set a filter for the FIN
 



---
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]