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 a 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 ) and jr_def_id=a.jrn_def_id))
55 $ret =
$cn->make_array(
"select jrn_def_id,jrn_def_name
57 join jrn_type on jrn_def_type=jrn_type_id
59 jrn_enable=1 or exists(select 1
62 jr_tech_per in (select p_id from parm_periode where p_exercice=$1)
63 and jr_def_id=a.jrn_def_id)
74$all = array(
'value' => 0,
'label' =>
_(
'Tous les journaux disponibles'));
95echo
'<div class="content">';
99echo
'<form method="GET" onsubmit="waiting_box();return true;">';
102echo
_(
'Choisissez un exercice').
' :';
106echo dossier::hidden();
107echo HtmlInput::get_to_hidden(array(
'ac',
'type'));
113echo
'<FORM METHOD="GET" onsubmit="waiting_box();return true;">' . dossier::hidden();
114echo HtmlInput::get_to_hidden(array(
'ac',
'type'));
115echo HtmlInput::hidden(
'type',
'jrn');
116echo HtmlInput::get_to_hidden(array(
'exercice'));
121$w->selected =
$http->get(
'jrn_id',
"number",0);
127$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");
134$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");
138if (
$w->selected==
'' ){
139 $w->selected=$per_max->p_id;
144 array(
'value' =>
'L',
'label' =>
_(
'Liste opérations')),
145 array(
'value' =>
'E',
'label' =>
_(
'Liste détaillées opérations ')),
146 array(
'value' =>
'A',
'label' =>
_(
'Ecriture comptable')),
147 array(
'value' =>
'D',
'label' =>
_(
'Détails TVA'))
154 array(
"label"=>
_(
"Toutes les opérations"),
"value"=>
"all"),
155 array(
"label"=>
_(
"Uniquement payées"),
"value"=>
"paid"),
156 array(
"label"=>
_(
"Uniquement non payées"),
"value"=>
"unpaid")
172print HtmlInput::submit(
'bt_html',
_(
'Visualisation'));
190 echo
'<form method="GET" ACTION="export.php" id="export_pdf_frm" onsubmit="download_document_form(\'export_pdf_frm\')">' . dossier::hidden() .
191 HtmlInput::submit(
'bt_pdf',
"Export PDF") .
192 HtmlInput::hidden(
'act',
'PDF:ledger') .
193 $hid->input(
"type",
"jrn") .
199 echo HtmlInput::get_to_hidden(array(
'ac',
'type'));
203 echo
'<TD><form method="GET" ACTION="export.php" id="export_csv_frm" onsubmit="download_document_form(\'export_csv_frm\')">'
204 . dossier::hidden() .
205 HtmlInput::submit(
'bt_csv',
"Export CSV") .
206 HtmlInput::hidden(
'act',
'CSV:ledger') .
207 $hid->input(
"type",
"jrn") .
213 echo HtmlInput::get_to_hidden(array(
'ac',
'type'));
216 echo
'<td style="vertical-align:top">';
217 echo HtmlInput::print_window();
230 for (
$i=0;
$i<$nb_ret;
$i++) {
240 $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.