diff --git a/html/poste_csv.php b/html/poste_csv.php index 1c9f42fcb..44eb1d2c2 100644 --- a/html/poste_csv.php +++ b/html/poste_csv.php @@ -59,7 +59,8 @@ if ( ! isset ($_REQUEST['oper_detail'])) { $Poste=new Acc_Account_Ledger($cn,$pos['pcm_val']); $Poste->get_name(); list($array,$tot_deb,$tot_cred)=$Poste->get_row_date( $_REQUEST['from_periode'], - $_REQUEST['to_periode'] + $_REQUEST['to_periode'], + $_GET['ople'] ); if ( count($Poste->row ) == 0 ) continue; diff --git a/html/poste_pdf.php b/html/poste_pdf.php index e6c5bff8a..009654674 100644 --- a/html/poste_pdf.php +++ b/html/poste_pdf.php @@ -66,7 +66,7 @@ $align=array('L','C','C','L','R','R','R'); foreach ($a_poste as $poste) { $Poste=new Acc_Account_Ledger($cn,$poste['pcm_val']); - list($array,$tot_deb,$tot_cred)=$Poste->get_row_date($from_periode,$to_periode); + list($array,$tot_deb,$tot_cred)=$Poste->get_row_date($from_periode,$to_periode,$_GET['ople']); // don't print empty account if ( count($array) == 0 ) { continue; diff --git a/html/quick_code_csv.php b/html/quick_code_csv.php index 3df90d791..cd0ebd8c6 100644 --- a/html/quick_code_csv.php +++ b/html/quick_code_csv.php @@ -41,7 +41,8 @@ $Fiche=new Fiche($cn,$_REQUEST['f_id']); $Fiche->getName(); list($array,$tot_deb,$tot_cred)=$Fiche->get_row_date( $_GET['from_periode'], - $_GET['to_periode'] + $_GET['to_periode'], + $_GET['ople'] ); if ( count($Fiche->row ) == 0 ) { diff --git a/html/quick_code_pdf.php b/html/quick_code_pdf.php index fbde96bb6..3342af2e6 100644 --- a/html/quick_code_pdf.php +++ b/html/quick_code_pdf.php @@ -47,7 +47,7 @@ $pdf->AddPage(); $Fiche=new Fiche($cn,$f_id); -list($array,$tot_deb,$tot_cred)=$Fiche->get_row_date($from_periode,$to_periode); +list($array,$tot_deb,$tot_cred)=$Fiche->get_row_date($from_periode,$to_periode,$_GET['ople']); // don't print empty account if ( count($array) == 0 ) { exit; diff --git a/include/class_acc_account_ledger.php b/include/class_acc_account_ledger.php index 5bd924c51..a50cd63f5 100644 --- a/include/class_acc_account_ledger.php +++ b/include/class_acc_account_ledger.php @@ -347,7 +347,7 @@ function get_solde_detail($p_cond="") { echo '
'; echo ""; echo ''; - + $str_ople=(isset($_REQUEST['ople']))?HtmlInput::hidden('ople',$_REQUEST['ople']):''; echo '
'. dossier::hidden(). HtmlInput::submit('bt_other',"Autre poste"). @@ -356,7 +356,7 @@ function get_solde_detail($p_cond="") { echo '
'. dossier::hidden(). HtmlInput::submit('bt_pdf',"Export PDF"). - $hid->input("type","poste"). + $hid->input("type","poste").$str_ople. $hid->input('p_action','impress'). $hid->input("from_periode",$_REQUEST['from_periode']). $hid->input("to_periode",$_REQUEST['to_periode']); @@ -373,7 +373,7 @@ function get_solde_detail($p_cond="") { echo ''. dossier::hidden(). HtmlInput::submit('bt_csv',"Export CSV"). - $hid->input("type","poste"). + $hid->input("type","poste").$str_ople. $hid->input('p_action','impress'). $hid->input("from_periode",$_REQUEST['from_periode']). $hid->input("to_periode",$_REQUEST['to_periode']);