diff --git a/include/history_operation.inc.php b/include/history_operation.inc.php index 2b2747a84..0f0be0b3e 100644 --- a/include/history_operation.inc.php +++ b/include/history_operation.inc.php @@ -40,12 +40,16 @@ if ( isset ($_GET['ledger_type'])) { case 'ACH': $Ledger = new Acc_Ledger_Purchase($cn, 0); + $ask_pay=1; break; case 'ODS': + case 'ALL': $Ledger=new Acc_Ledger($cn,0); + $ask_pay=0; break; case 'VEN': $Ledger=new Acc_Ledger_Sold($cn,0); + $ask_pay=1; break; } @@ -98,11 +102,12 @@ $bar = jrn_navigation_bar($offset, $max_line, $step, $page); echo '
'; /* diff --git a/include/operation_adm.inc.php b/include/operation_adm.inc.php index e41fa5fa3..45062541a 100644 --- a/include/operation_adm.inc.php +++ b/include/operation_adm.inc.php @@ -34,5 +34,8 @@ $f=new Fiche($cn,$_REQUEST['f_id']); $qcode=$f->get_quick_code(); $_GET['qcode']=$qcode; $_REQUEST['qcode']=$qcode; -require_once ('user_action_gl.php'); + +$var_array=compute_variable('ledger_type=ALL'); +put_global($var_array); +require_once ('history_operation.inc.php'); diff --git a/include/operation_client.inc.php b/include/operation_client.inc.php index e41fa5fa3..ea4c6f8b3 100644 --- a/include/operation_client.inc.php +++ b/include/operation_client.inc.php @@ -34,5 +34,8 @@ $f=new Fiche($cn,$_REQUEST['f_id']); $qcode=$f->get_quick_code(); $_GET['qcode']=$qcode; $_REQUEST['qcode']=$qcode; -require_once ('user_action_gl.php'); +$var_array=compute_variable('ledger_type=ALL'); +put_global($var_array); +require_once ('history_operation.inc.php'); + diff --git a/include/operation_supplier.inc.php b/include/operation_supplier.inc.php index e41fa5fa3..c21e2a2c4 100644 --- a/include/operation_supplier.inc.php +++ b/include/operation_supplier.inc.php @@ -34,5 +34,7 @@ $f=new Fiche($cn,$_REQUEST['f_id']); $qcode=$f->get_quick_code(); $_GET['qcode']=$qcode; $_REQUEST['qcode']=$qcode; -require_once ('user_action_gl.php'); +$var_array=compute_variable('ledger_type=ALL'); +put_global($var_array); +require_once ('history_operation.inc.php'); diff --git a/include/user_action_gl.php b/include/user_action_gl.php deleted file mode 100644 index 603e395c8..000000000 --- a/include/user_action_gl.php +++ /dev/null @@ -1,88 +0,0 @@ -'; - -$Ledger=new Acc_Ledger($cn,0); -if ( !isset($_REQUEST['p_jrn'])) -{ - $Ledger->id=-1; -} -else - $Ledger->id=$_REQUEST['p_jrn']; -/* - * @todo usefull ? - */ -$_GET['ledger_type']='ALL'; -echo $Ledger->display_search_form(); -echo '