phpcompta-dev
[Top][All Lists]
Advanced

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

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


From: phpcompta-dev
Subject: [Phpcompta-dev] r4590 - phpcompta/trunk/include
Date: Fri, 9 Dec 2011 15:09:42 +0100 (CET)

Author: danydb
Date: 2011-12-09 15:09:41 +0100 (Fri, 09 Dec 2011)
New Revision: 4590

Modified:
   phpcompta/trunk/include/history_operation.inc.php
Log:
#491 Historique ODS

Modified: phpcompta/trunk/include/history_operation.inc.php
===================================================================
--- phpcompta/trunk/include/history_operation.inc.php   2011-12-09 14:08:35 UTC 
(rev 4589)
+++ phpcompta/trunk/include/history_operation.inc.php   2011-12-09 14:09:41 UTC 
(rev 4590)
@@ -32,7 +32,7 @@
 require_once 'class_acc_ledger_sold.php';
 require_once 'class_acc_ledger.php';
 global $g_user,$cn;
-
+$p_array = $_GET;
 if ( isset ($_GET['ledger_type']))
 {
        $ledger_type=$_GET['ledger_type'];
@@ -43,9 +43,14 @@
                        $ask_pay=1;
                        break;
                case 'ODS':
+                        $Ledger=new Acc_Ledger($cn,0);
+                       $ask_pay=0;
+                        $p_array['ledger_type']='ODS';
+                       break;
                case 'ALL':
                        $Ledger=new Acc_Ledger($cn,0);
                        $ask_pay=0;
+                        $p_array['ledger_type']='ALL';
                        break;
                case 'VEN':
                        $Ledger=new Acc_Ledger_Sold($cn,0);
@@ -83,8 +88,8 @@
 {
        $Ledger->update_paid($_GET);
 }
-$p_array = $_GET;
 
+
 $msg="";
 /* by default we should the default period */
 if (!isset($p_array['date_start']))




reply via email to

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