24if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
38if (
$g_user->Admin() == 0 &&
$g_user->is_local_admin() == 0 &&
$g_user->get_status_security_ledger()==1)
40 $sql =
"select jrn_def_id,jrn_def_name
41 from jrn_def join jrn_type on jrn_def_type=jrn_type_id
42 join user_sec_jrn on uj_jrn_id=jrn_def_id
45 and uj_priv in ('R','W')
48 exists (select 1 from jrn where jr_tech_per in (select p_id from parm_periode where p_exercice=$2)))
55 $ret =
$cn->make_array(
"select jrn_def_id,jrn_def_name
56 from jrn_def join jrn_type on jrn_def_type=jrn_type_id
58 jrn_enable=1 or exists(select 1 from jrn where jr_tech_per in (select p_id from parm_periode where p_exercice=$1))
69$all = array(
'value' => 0,
'label' =>
_(
'Tous les journaux disponibles'));
90echo
'<div class="content">';
94echo
'<form method="GET" onsubmit="waiting_box();return true;">';
97echo
_(
'Choisissez un exercice').
' :';
101echo dossier::hidden();
102echo HtmlInput::get_to_hidden(array(
'ac',
'type'));
108echo
'<FORM METHOD="GET" onsubmit="waiting_box();return true;">' . dossier::hidden();
109echo HtmlInput::get_to_hidden(array(
'ac',
'type'));
110echo HtmlInput::hidden(
'type',
'jrn');
111echo HtmlInput::get_to_hidden(array(
'exercice'));
116$w->selected =
$http->get(
'jrn_id',
"number",0);
122$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");
129$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");
133if (
$w->selected==
'' ){
134 $w->selected=$per_max->p_id;
139 array(
'value' =>
'L',
'label' =>
_(
'Liste opérations')),
140 array(
'value' =>
'E',
'label' =>
_(
'Liste détaillées opérations ')),
141 array(
'value' =>
'A',
'label' =>
_(
'Ecriture comptable')),
142 array(
'value' =>
'D',
'label' =>
_(
'Détails TVA'))
149 array(
"label"=>
_(
"Toutes les opérations"),
"value"=>
"all"),
150 array(
"label"=>
_(
"Uniquement payées"),
"value"=>
"paid"),
151 array(
"label"=>
_(
"Uniquement non payées"),
"value"=>
"unpaid")
167print HtmlInput::submit(
'bt_html',
_(
'Visualisation'));
185 echo
'<form method="GET" ACTION="export.php" id="export_pdf_frm" onsubmit="download_document_form(\'export_pdf_frm\')">' . dossier::hidden() .
186 HtmlInput::submit(
'bt_pdf',
"Export PDF") .
187 HtmlInput::hidden(
'act',
'PDF:ledger') .
188 $hid->input(
"type",
"jrn") .
194 echo HtmlInput::get_to_hidden(array(
'ac',
'type'));
198 echo
'<TD><form method="GET" ACTION="export.php" id="export_csv_frm" onsubmit="download_document_form(\'export_csv_frm\')">'
199 . dossier::hidden() .
200 HtmlInput::submit(
'bt_csv',
"Export CSV") .
201 HtmlInput::hidden(
'act',
'CSV:ledger') .
202 $hid->input(
"type",
"jrn") .
208 echo HtmlInput::get_to_hidden(array(
'ac',
'type'));
211 echo
'<td style="vertical-align:top">';
212 echo HtmlInput::print_window();
225 for (
$i=0;
$i<$nb_ret;
$i++) {
235 $ledger_history->export_html();
NoAccess($js=1)
Echo no access and stop.
sql_string($p_string)
Fix the problem with the quote char for the database.
td($p_string='', $p_extra='')
surround the string with td
global $g_user
if no group available , then stop
catch(Exception $e) $exercice
foreach($array as $idx=> $m) $w
_("actif, passif,charge,...")
static factory(Database $cn, $pa_ledger, $p_from, $p_to, $p_mode, $p_paid)
Build the right object.
about the accountancy period (usually 1 year starting in January until december) = exercice
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
static infobulle($p_comment)
Display a info in a bubble, text is in message_javascript.
$user_exercice
Get exercice.
$s_operation
All operation.