noalyss Version-9
Variables
impress_jrn.inc.php File Reference

ask for Printing the ledger (pdf,html) More...

Go to the source code of this file.

Variables

 $a = count($ret)
 
 $all = array('value' => 0, 'label' => _('Tous les journaux disponibles'))
 
 $ex = new Exercice($cn)
 
 $exercice =$http->get("exercice","string",$user_exercice)
 
 $filter_year = " where p_exercice='" . sql_string($exercice) . "'"
 
 $from_periode =$http->get("from_periode","number","")
 
global $g_user
 
 $gDossier = dossier::id()
 
global $http
 
 $label = _("Choisissez le journal")
 
 $periode_end = $cn->make_array("select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end")
 
 $periode_start = $cn->make_array("select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end")
 
 $ret [$a] = $all
 
 $s_operation = new ISelect("operation_type")
 All operation. More...
 
 $simple =$http->get("p_simple","string","L")
 
 $to_periode =$http->get("to_periode","number","")
 
 $user_exercice =$g_user->get_exercice()
 Get exercice. More...
 
 $w = new ISelect()
 
 $wex = $ex->select('exercice', $exercice, ' onchange="waiting_box();submit(this)"')
 
if($g_user->Admin()==0 && $g_user->is_local_admin()==0 && $g_user->get_status_security_ledger()==1) else
 
 if ( $from_periode==""||$to_periode=="")
 
 if (isset( $_REQUEST[ 'bt_html']))
 
 print
 Type of printing. More...
 
$w selected = $http->get('jrn_id',"number",0)
 
$w table = 1
 
$s_operation value
 

Detailed Description

ask for Printing the ledger (pdf,html)

Definition in file impress_jrn.inc.php.

Variable Documentation

◆ $a

$a = count($ret)

Definition at line 66 of file impress_jrn.inc.php.

◆ $all

$all = array('value' => 0, 'label' => _('Tous les journaux disponibles'))

Definition at line 69 of file impress_jrn.inc.php.

◆ $ex

$ex = new Exercice($cn)

Definition at line 98 of file impress_jrn.inc.php.

◆ $exercice

$exercice =$http->get("exercice","string",$user_exercice)

Definition at line 32 of file impress_jrn.inc.php.

◆ $filter_year

$filter_year = " where p_exercice='" . sql_string($exercice) . "'"

Definition at line 121 of file impress_jrn.inc.php.

◆ $from_periode

$from_periode =$http->get("from_periode","number","")

Definition at line 73 of file impress_jrn.inc.php.

◆ $g_user

global $g_user

Definition at line 26 of file impress_jrn.inc.php.

◆ $gDossier

$gDossier = dossier::id()

Definition at line 25 of file impress_jrn.inc.php.

◆ $http

global $http

Definition at line 26 of file impress_jrn.inc.php.

◆ $label

$label = _("Choisissez le journal")

◆ $periode_end

$periode_end = $cn->make_array("select p_id,to_char(p_end,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end")

Definition at line 129 of file impress_jrn.inc.php.

◆ $periode_start

$periode_start = $cn->make_array("select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode $filter_year order by p_start,p_end")

Definition at line 122 of file impress_jrn.inc.php.

◆ $ret

$ret[ $a] = $all

Definition at line 70 of file impress_jrn.inc.php.

◆ $s_operation

$s_operation = new ISelect("operation_type")

All operation.

Definition at line 147 of file impress_jrn.inc.php.

◆ $simple

$simple =$http->get("p_simple","string","L")

Definition at line 161 of file impress_jrn.inc.php.

◆ $to_periode

$to_periode =$http->get("to_periode","number","")

Definition at line 74 of file impress_jrn.inc.php.

◆ $user_exercice

$user_exercice =$g_user->get_exercice()

Get exercice.

Definition at line 31 of file impress_jrn.inc.php.

◆ $w

$w = new ISelect()

Definition at line 113 of file impress_jrn.inc.php.

◆ $wex

$wex = $ex->select('exercice', $exercice, ' onchange="waiting_box();submit(this)"')

Definition at line 99 of file impress_jrn.inc.php.

◆ else

if ( $g_user->Admin()==0 &&$g_user->is_local_admin()==0 &&$g_user->get_status_security_ledger()==1) else
Initial value:
{
$ret = $cn->make_array("select jrn_def_id,jrn_def_name
from jrn_def join jrn_type on jrn_def_type=jrn_type_id
where
jrn_enable=1 or exists(select 1 from jrn where jr_tech_per in (select p_id from parm_periode where p_exercice=$1))
order by jrn_def_name
",0,[$exercice])
$ret[$a]
$exercice

Definition at line 53 of file impress_jrn.inc.php.

◆ if [1/2]

if($from_periode==""|| $to_periode=="") (   $from_periode = ="" || $to_periode=="")

Definition at line 79 of file impress_jrn.inc.php.

◆ if [2/2]

if(isset($_REQUEST['bt_html'])) ( isset( $_REQUEST[ 'bt_html'])  )

Definition at line 178 of file impress_jrn.inc.php.

◆ print

print

◆ selected

$w selected = $http->get('jrn_id',"number",0)

Definition at line 116 of file impress_jrn.inc.php.

◆ table

$w table = 1

Definition at line 114 of file impress_jrn.inc.php.

◆ value

$s_operation value
Initial value:
=array(
array("label"=>_("Toutes les opérations"),"value"=>"all"),
array("label"=>_("Uniquement payées"),"value"=>"paid"),
array("label"=>_("Uniquement non payées"),"value"=>"unpaid")
)

Definition at line 148 of file impress_jrn.inc.php.