22if (!defined(
'ALLOWED'))
23 die(
'Appel direct ne sont pas permis');
61 JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES|JSON_NUMERIC_CHECK);
62 header(
'Content-Type: application/json;charset=utf-8');
67if (
$g_user->check_module(
"PERIODE")==0)
97 $per_led_table->display_row($per_led_table->get_a_member(), 0,
103 catch (Exception
$ex)
129 $per_led_table->display_row($per_led_table->get_a_member(), 0,
135 catch (Exception
$ex)
148 $title=_(
'Modification période');
149 $title_par=
"<p>"._(
'Modifier les dates de début et fin de période').
151 $title_par.=
'<p class="notice">'._(
'Cela pourrait avoir un impact sur les opérations déjà existantes').
'</p>';
161 $html.=sprintf(
'<form method="post" id="mod_periode_frm" onsubmit="%s.save(\'mod_periode_frm\');return false;">',
166 $html.=dossier::hidden();
175 'onclick="removeDiv(\'mod_periode\')"');
194 $a_answer[
'content']=_(
'Erreur exercice invalide');
198 $sql=
"update parm_periode set p_start=to_date($1,'DD.MM.YYYY'),p_end=to_date($2,'DD.MM.YYYY'),p_exercice=$3,p_exercice_label=$5 where p_id=$4";
203 .
" parm_periode where p_exercice=$1",
225 catch (Exception
$ex)
235 $per->verify_delete();
239 catch (Exception
$ex)
245 case 'insert_periode':
251 $exercice_label=
$cn->get_value(
"select distinct p_exercice_label from parm_periode where p_exercice=$1",
273 $a_answer[
'content']=_(
"Invalid command").
"[$act]";
278 JSON_UNESCAPED_UNICODE|JSON_UNESCAPED_SLASHES|JSON_NUMERIC_CHECK);
280 header(
'Content-Type: application/json;charset=utf-8');
tr($p_string, $p_extra='')
record_log($p_message)
Record an error message into the log file of the server.
td($p_string='', $p_extra='')
surround the string with td
global $g_user
if no group available , then stop
if(headers_sent() &&DEBUGNOALYSS > 0) $html
catch(Exception $ex) if( $g_user->check_module("PERIODE")==0) switch($act) $jsson
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
This class handles only the numeric input, the input will call a javascript to change comma to period...
abstract of the table public.jrn_periode
ORM Manage the table public.parm_periode.
Display the periode per ledger: close : reopen ... the close , open must be done thanks Periode.
Manage the periode of a specif ledger, wrap the SQL Class Jrn_Periode_SQL.
For the periode tables parm_periode and jrn_periode.
static display_row_global(Parm_Periode_SQL $obj, $p_nb, $p_js)
Display each row for the global.