28if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
39 echo
'<div ><h2 class="error">'._(
'Aucun plan analytique défini').
'</h2></div>';
55 "?".http_build_query([
"ac"=>
$http->request(
"ac"),
"new"=>1,
"gDossier"=>
$dossier_id]),
57 _(
"Nouvelle opération")
60 "?".http_build_query([
"ac"=>
$http->request(
"ac"),
"see"=>1,
"gDossier"=>
$dossier_id]),
64),
"H",
"nav-item",
"nav-link",
"",
"nav nav-pills nav-level3");
71if ( isset(
$_GET[
'see']))
80 <div class="content" >
84 echo dossier::hidden();
91 $js=sprintf(
"updatePeriode(%d,'%s','%s')",
Dossier::id(),
'exercice',
'p_periode');
103 $w->name=
"p_periode";
105 $filter_year=
" where p_exercice='".$g_user->get_exercice().
"'";
107 $periode_start=
$cn->make_array(
"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode
108 where p_exercice=$1 order by p_start,p_end",1,[
$exercice]);
110 $current=
$http->get(
"p_periode",
"number",
$g_user->get_periode());
112 $w->selected=$current;
113 echo _(
'Filtrer par période').
":".
$w->input().HtmlInput::submit(
'gl_submit',
'Valider').
'</form>';
116 echo
'<div class="content" >';
117 echo
$a->html_table($current);
121if ( isset(
$_POST[
'save']))
126 echo
'<div class="redcontent" >'.
127 _(
'Opération sauvée');
138if ( isset(
$_GET[
'new']))
144 $wSubmit=
new IHidden(
"p_action",
"ca_od");
146 echo
'<div class="redcontent" >';
147 echo
'<form id="anc_od_frm" method="post" onsubmit="return validate_anc(\'anc_od_frm\');return false;">';
148 echo dossier::hidden();
149 echo $wSubmit->input();
153 echo
'<div class="info">';
154 echo _(
'Débit').
' = <span id="totalDeb"></span>';
155 echo _(
'Crédit').
' = <span id="totalCred"></span>';
156 echo _(
'Difference').
' = <span id="totalDiff"></span>
161 $msg_comment=_(
"Commentaire vide");
162 $msg_date=_(
"Date invalide");
165 function validate_anc(p_frm_id) {
167 if ($(
'pdesc').
value.length==0) {
168 smoke.alert(
'$msg_comment');
172 smoke.alert(
'$msg_date');
176 smoke.alert(e.message);
189<div
class=
"redcontent">
ShowItem($p_array, $p_dir='V', $class="nav-item", $class_ref="nav-link", $default="", $p_extra="nav nav-pills nav-fill")
store the string which print the content of p_array in a table used to display the menu
catch(Exception $e) $exercice
foreach($array as $idx=> $m) $w
group of object operations, used for misc operation
this class is used to show the form for entering an operation only FOR analytic operation to save it,...
Concerns the Analytic plan (table plan_analytique)
static get()
return a string to put to gDossier into a GET
static id()
return the 'gDossier' value after a check
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...