From 9e8ee9599f8d35fd585ec5b5f21678e476f3cfdd Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Fri, 9 Dec 2011 14:09:41 +0000 Subject: [PATCH] #491 Historique ODS --- include/history_operation.inc.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/include/history_operation.inc.php b/include/history_operation.inc.php index cb293e4f5..b86b19bc0 100644 --- a/include/history_operation.inc.php +++ b/include/history_operation.inc.php @@ -32,7 +32,7 @@ require_once 'class_acc_ledger_fin.php'; 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 @@ if ( isset ($_GET['ledger_type'])) $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,7 +88,7 @@ if (isset($_GET ['paid'])) { $Ledger->update_paid($_GET); } -$p_array = $_GET; + $msg=""; /* by default we should the default period */