28if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
39 echo
'<div ><h2 class="error">'._(
'Aucun plan analytique défini').
'</h2></div>';
52 "?".http_build_query([
"ac"=>
$http->request(
"ac"),
"new"=>1,
"gDossier"=>
$dossier_id]),
54 _(
"Nouvelle opération")
58 "?".http_build_query([
"ac"=>
$http->request(
"ac"),
"see"=>1,
"gDossier"=>
$dossier_id]),
60 _(
"Liste opérations"),
72if ( isset(
$_GET[
'see']))
81 <div class="content" >
85 echo dossier::hidden();
92 $js=sprintf(
"updatePeriode(%d,'%s','%s')",Dossier::id(),
'exercice',
'p_periode');
104 $w->name=
"p_periode";
106 $filter_year=
" where p_exercice='".$g_user->get_exercice().
"'";
108 $periode_start=
$cn->make_array(
"select p_id,to_char(p_start,'DD-MM-YYYY') from parm_periode
109 where p_exercice=$1 order by p_start,p_end",1,[
$exercice]);
111 $current=
$http->get(
"p_periode",
"number",
$g_user->get_periode());
113 $w->selected=$current;
114 echo
_(
'Filtrer par période').
":".
$w->input().HtmlInput::submit(
'gl_submit',
'Valider').
'</form>';
117 echo
'<div class="content" >';
118 echo
$a->html_table($current);
122if ( isset(
$_POST[
'save']))
127 echo
'<div class="redcontent" >'.
128 _(
'Opération sauvée');
139if ( isset(
$_GET[
'new']))
145 $wSubmit=
new IHidden(
"p_action",
"ca_od");
147 echo
'<div class="redcontent" >';
148 echo
'<form id="anc_od_frm" method="post" onsubmit="return validate_anc(\'anc_od_frm\');return false;">';
149 echo dossier::hidden();
150 echo $wSubmit->input();
154 echo
'<div class="info">';
155 echo
_(
'Débit').
' = <span id="totalDeb"></span>';
156 echo
_(
'Crédit').
' = <span id="totalCred"></span>';
157 echo
_(
'Difference').
' = <span id="totalDiff"></span>
162 $msg_comment=
_(
"Commentaire vide");
163 $msg_date=
_(
"Date invalide");
166 function validate_anc(p_frm_id) {
168 if ($(
'pdesc').
value.length==0) {
169 smoke.alert(
'$msg_comment');
172 if ( ! check_date($(p_frm_id)[
'pdate'].
value) ) {
173 smoke.alert(
'$msg_date');
177 smoke.alert(e.message);
190<div
class=
"redcontent">
show_menu_extension($p_array, $default="", $p_extra="")
Same menu for all extensions, with the right level, it calls ShowItem with the right parameters @glob...
global $g_user
if no group available , then stop
catch(Exception $e) $exercice
foreach($array as $idx=> $m) $w
_("actif, passif,charge,...")
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)
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...