noalyss  Version-9
balance.inc.php
Go to the documentation of this file.
1 <?php
2 /*
3  * This file is part of NOALYSS.
4  *
5  * NOALYSS is free software; you can redistribute it and/or modify
6  * it under the terms of the GNU General Public License as published by
7  * the Free Software Foundation; either version 2 of the License, or
8  * (at your option) any later version.
9  *
10  * NOALYSS is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with NOALYSS; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 // Copyright(2004) Dany De Bontridder danydb@aevalys.eu
20 /*! \file
21  * \brief Show the balance and let you print it or export to PDF
22  * file included by user_impress
23  *
24  * some variable are already defined ($cn, $g_user ...)
25  */
26 if ( ! defined ('ALLOWED') ) die('Appel direct ne sont pas permis');
27 include_once NOALYSS_INCLUDE.'/lib/ac_common.php';
28 include_once NOALYSS_INCLUDE.'/class/acc_balance.class.php';
29 global $g_user, $http;
31 // Get the exercice
32 $exercice=$http->request("exercice","number",0);
33 if ($exercice == 0 ){
34  $exercice=$g_user->get_exercice();
35 }
36 
37 bcscale(2);
38 
39 echo '<div class="content">';
40 /*
41  * Let you change the exercice
42  */
43 echo '<form method="GET" onsubmit="return waiting_box()">';
44 echo _('Choisissez un autre exercice')." : ";
46 $js=sprintf("updatePeriode(%d,'%s','%s','%s',1)",Dossier::id(),'exercice','from_periode','to_periode');
47 $wex=$ex->select('exercice',$exercice,' onchange="'.$js.'"');
48 echo $wex->input();
49 echo dossier::hidden();
50 echo HtmlInput::get_to_hidden(array('ac','type'));
51 
52 
53 // Show the form for period
54 echo HtmlInput::get_to_hidden(array('ac'));
55 echo HtmlInput::hidden('type','bal');
56 echo dossier::hidden();
57 
58 
59 
60 // filter on the current year
61 $from=$http->get("from_periode", "number",0);
62 $input_from=new IPeriod("from_periode",$from,$exercice);
63 $input_from->id="from_periode";
64 $input_from->show_end_date=false;
67 $input_from->filter_year=true;
69 
70 echo _('Depuis').' :'.$input_from->input();
71 // filter on the current year
72 $to=$http->get("to_periode", "number",0);
73 
74 
75 if( $to == 0) {
76  $t_periode=new Periode($cn);
77  list($per_max,$per_min)=$t_periode->get_limit($exercice);
78  $to=$per_min->p_id;
79 }
80 $input_to=new IPeriod("to_periode",$to,$exercice);
81 $input_to->id="to_periode";
82 $input_to->show_start_date=false;
83 $input_to->filter_year=true;
84 $input_to->type=ALL;
85 $input_to->cn=$cn;
86 $input_to->user=$g_user;
87 echo " "._('jusque').' :'.$input_to->input();
88 echo '<br>';
89 echo HtmlInput::button_action(_('Avancé'), " if (\$('balance_advanced_div').style.display=='none') { \$('balance_advanced_div').show();} else { \$('balance_advanced_div').hide();}");
90 //-------------------------------------------------
91 echo '<div id="balance_advanced_div" style="display:none">';
92 
93 /* add a all ledger choice */
94 echo _('Filtre')." ";
95 // temp var used to set the filter
96 $rad=new IRadio();
97 
98 $array_ledger=$g_user->get_ledger('ALL',3);
100 $selected=$http->get('r_jrn','array',array());
101 $select_cat=$http->get('r_cat','array',array());
102 
104 // filter type : none(0), ledger(1), catgory of ledger (sale,purchase...)(=2)
105 $filter=$http->get('p_filter',"string",0);
106 $filter = ($filter=="")?0:$filter;
107 
108 echo '<ul style="list-style-type:none">';
109 $rad->selected=false;
110 if ( $filter==0) $rad->selected='t';
111 
112 echo '<li>'.$rad->input('p_filter',0)._('Aucun filtre, tous les journaux').'</li>';
113 
114 $rad->selected=false;
115 if ( $filter==1) $rad->selected='t';
116 echo '<li>'.$rad->input('p_filter',1)._('Filtré par journal');
117 echo HtmlInput::button_choice_ledger(array('div'=>'','type'=>'ALL','all_type'=>1));
118 echo '</li>';
119 
120 $rad->selected=false;
121 if ( $filter==2) $rad->selected='t';
122 
123 echo '<li>'.$rad->input('p_filter',2)._('Filtré par catégorie').HtmlInput::select_cat($array_cat).'</li>';
124 echo '</ul>';
125 
126 echo _('Totaux par sous-niveaux');
127 $ck_lev1=new ICheckBox('lvl1');
128 $ck_lev2=new ICheckBox('lvl2');
129 $ck_lev3=new ICheckBox('lvl3');
130 $ck_lev1->value=1;
131 $ck_lev2->value=1;
132 $ck_lev3->value=1;
133 
134 
135 echo '<ul style="list-style-type:none">';
136 
137 if ($http->get('lvl1',"string",false) !== false)
138  $ck_lev1->selected=true;
139 if ($http->get('lvl2',"string",false) !== false)
140  $ck_lev2->selected=true;
141 if ($http->get('lvl3',"string",false) !== false)
142  $ck_lev3->selected=true;
143 echo '<li>'.$ck_lev1->input()._('Niveau 1').'</li>';
144 echo '<li>'.$ck_lev2->input()._('Niveau 2').'</li>';
145 echo '<li>'.$ck_lev3->input()._('Niveau 3').'</li>';
146 echo '</ul>';
147 
148 $unsold=new ICheckBox('unsold');
149 if ($http->get('unsold',"string",false) !== false)
150  $unsold->selected=true;
151 
152 // previous exercice if checked
153 $previous_exc=new ICheckBox('previous_exc');
154 if ($http->get('previous_exc',"string",false) !== false)
155  $previous_exc->selected=true;
156 
157 
159 $from_poste->name="from_poste";
160 $from_poste->set_attribute('ipopup','ipop_account');
161 $from_poste->set_attribute('label','from_poste_label');
162 $from_poste->set_attribute('account','from_poste');
163 
164 $from_poste->value=$http->get('from_poste',"string",'');
165 $from_span=new ISpan("from_poste_label","");
166 
168 $to_poste->name="to_poste";
169 $to_poste->set_attribute('ipopup','ipop_account');
170 $to_poste->set_attribute('label','to_poste_label');
171 $to_poste->set_attribute('account','to_poste');
172 
173 $to_poste->value=$http->get('to_poste',"string",'');
174 $to_span=new ISpan("to_poste_label","");
175 
176 echo "<div>";
177 echo _("Plage de postes")." :".$from_poste->input();
178 echo $from_span->input();
179 echo " "._("jusque")." :".$to_poste->input();
180 echo $to_span->input();
181 echo "</div>";
182 echo '<div>';
183 echo '<p>';
184 echo _("Uniquement comptes non soldés")." ".$unsold->input();
185 echo '</p>';
186 echo '<p>';
187 echo _("Avec la balance de l'année précédente")." ".$previous_exc->input();
188 echo '</p>';
189 echo '</div>';
190 ?>
191 <div>
192  <?php echo _("Récapitulatif par classe")?>
193  <?php
194  $summary=new ICheckBox("summary");
195  $summary->value=1;
196  $is_summary=$http->get("summary","string", 0);
197  $summary->set_check($is_summary);
198  echo $summary->input();
199  ?>
200 </div>
201 <?php
202 echo '</div>';
203 echo HtmlInput::submit("view",_("Visualisation"));
204 echo '</form>';
205 echo '<hr>';
206 //-----------------------------------------------------
207 // Form
208 //-----------------------------------------------------
209 // Show the export button
210 if ( isset ($_GET['view'] ) )
211 {
212 
213  $hid=new IHidden();
214  $from_periode=$http->get("from_periode","number");
215  $to_periode=$http->get("to_periode","number");
216  $from_poste=$http->get("from_poste","string");
217  $to_poste=$http->get("to_poste","string");
218 
219 
220  echo "<table>";
221  echo '<TR>';
222 
223  echo '<TD><form method="GET" ACTION="export.php" ';
224  $id=uniqid("export_");
225  printf( 'id="%s" onsubmit="download_document_form(\'%s\')">',$id,$id);
226 
227  echo dossier::hidden().
228  HtmlInput::submit('bt_pdf',"Export PDF").
229  HtmlInput::hidden("ac",$http->request('ac')).
230  HtmlInput::hidden("act","PDF:balance").
231  HtmlInput::hidden("summary", $is_summary).
232  HtmlInput::hidden("from_periode",$from_periode).
233  HtmlInput::hidden("to_periode",$to_periode);
234  echo HtmlInput::hidden('p_filter',$filter);
235  for ($e=0;$e<count($selected);$e++)
236  if (isset($selected[$e]) && in_array ($selected[$e],$array))
237  echo HtmlInput::hidden("r_jrn[$e]",$selected[$e]);
238  for ($e=0;$e<count($array_cat);$e++)
239  if (isset($select_cat[$e]))
240  echo HtmlInput::hidden("r_cat[$e]",$e);
241 
242  echo HtmlInput::hidden("from_poste",$from_poste).
243  HtmlInput::hidden("to_poste",$to_poste);
244  echo HtmlInput::get_to_hidden(array('lvl1','lvl2','lvl3','unsold','previous_exc'));
245 
246  echo "</form></TD>";
247 
248  echo '<TD><form method="GET" ACTION="export.php" ';
249  $id=uniqid("export_");
250  printf( 'id="%s" onsubmit="download_document_form(\'%s\')">',$id,$id);
251 
252 
253  echo HtmlInput::submit('bt_csv',"Export CSV").
254  dossier::hidden().
255  HtmlInput::hidden("act","CSV:balance").
256  HtmlInput::hidden("from_periode",$from_periode).
257  HtmlInput::hidden("to_periode",$to_periode);
258  echo HtmlInput::get_to_hidden(array('ac'));
259  echo HtmlInput::hidden('p_filter',$filter);
260  for ($e=0;$e<count($selected);$e++){
261  if (isset($selected[$e]) && in_array ($selected[$e],$array)){
262  echo HtmlInput::hidden("r_jrn[$e]",$selected[$e]);
263  }
264  }
265  for ($e=0;$e<count($array_cat);$e++)
266  if (isset($select_cat[$e]))
267  echo HtmlInput::hidden("r_cat[$e]",$e);
268 
269  echo HtmlInput::hidden("from_poste",$from_poste).
270  HtmlInput::hidden("to_poste",$to_poste);
271  echo HtmlInput::get_to_hidden(array('unsold','previous_exc'));
272 
273  echo "</form></TD>";
274  echo '<td style="vertical-align:top">';
276  echo '</td>';
277  echo "</TR>";
278 
279  echo "</table>";
280 }
281 
282 
283 //-----------------------------------------------------
284 // Display result
285 //-----------------------------------------------------
286 if ( isset($_GET['view'] ) )
287 {
288 
289  $bal=new Acc_Balance($cn);
290  if ( $filter==1)
291  {
292  for ($e=0;$e<count($selected);$e++)
293  if (isset($selected[$e]) && in_array ($selected[$e],$array))
294  $bal->jrn[]=$selected[$e];
295  }
296  if ( $filter == 0 )
297  {
298  $bal->jrn=[];
299  }
300  if ( $filter == 2 && ! empty($select_cat))
301  {
302  $bal->filter_cat($select_cat);
303  }
304  $bal->from_poste=$http->get('from_poste');
305  $bal->to_poste=$http->get('to_poste');
306  if ( isset($_GET['unsold'])) $bal->unsold=true;
307  $previous=(isset($_GET['previous_exc']))?1:0;
308  $from_periode=$http->get("from_periode","number");
309  $to_periode=$http->get("to_periode","number");
311  $previous= (isset ($row[0]['sum_cred_previous']))?1:0;
312 
313  $periode=new Periode($cn);
314  $a=$periode->get_date_limit($from_periode);
315  $b=$periode->get_date_limit($to_periode);
316  echo '<h2>';
317  printf ( _("période du %s au %s"),$a['p_start'],$b['p_end']);
318  echo '</h2>';
319  echo '<span style="display:block">';
320  echo _('Cherche').Icon_Action::infobulle(24);
321  echo HtmlInput::filter_table("t_balance", "0,1","1");
322  echo '</span>';
323  echo '<table id="t_balance" width="100%">';
324  echo '<th>'._("Poste Comptable").'</th>';
325  echo '<th>'._("Libellé").'</th>';
326  if ( $previous == 1 ){
327  echo '<th style="text-align:right;">'._("Débit N-1").'</th>';
328  echo '<th style="text-align:right;">'._('Crédit N-1').'</th>';
329  echo '<th style="text-align:right;">'._('Solde N-1').'</th>';
330 
331  }
332  echo '<th style="text-align:right;">'._('Ouverture').'</th>';
333  echo '<th style="text-align:right;">'._('Débit').'</th>';
334  echo '<th style="text-align:right;">'._('Crédit').'</th>';
335  echo '<th style="text-align:right;">'._('Solde').'</th>';
336 
337  $i=0;
338  if ( $previous == 1) {
339  $a_sum=array('sum_cred','sum_deb','solde_deb','solde_cred','sum_deb_ope','sum_cred_ope','sum_cred_previous','sum_deb_previous','solde_previous');
340  }
341  else {
342  $a_sum=array('sum_cred','sum_deb','solde_deb','solde_cred','sum_deb_ope','sum_cred_ope') ;
343  }
344  foreach($a_sum as $a)
345  {
346  $lvl1[$a]=0;
347  $lvl2[$a]=0;
348  $lvl3[$a]=0;
349  }
350  $lvl1_old='';
351  $lvl2_old='';
352  $lvl3_old='';
353 
354  bcscale(2);
355  $nb_row = count($row);
356 
357  // Compute for the summary
358  $summary_tab=$bal->summary_init();
359  $summary_prev_tab=$bal->summary_init();
360  foreach ($row as $r)
361  {
362  $i++;
363  if ( $i%2 == 0 )
364  $tr="even";
365  else
366  $tr="odd";
367  $view_history=HtmlInput::history_account($r['poste'], $r['poste'], "",$exercice);
368  if ($previous == 1 ) {
369  $r['solde_previous']=bcsub($r['solde_deb_previous'],$r['solde_cred_previous']);
370  }
371  /*
372  * level x
373  */
374  foreach (array(3,2,1) as $ind)
375  {
376  if ( ! isset($_GET['lvl'.$ind]))continue;
377  if (${'lvl'.$ind.'_old'} == '') ${'lvl'.$ind.'_old'}=mb_substr($r['poste'],0,$ind);
378  if ( ${'lvl'.$ind.'_old'} != mb_substr($r['poste'],0,$ind))
379  {
380 
381  echo '<tr class="highlight">';
382  echo td(${'lvl'.$ind.'_old'},'style="font-weight:bold;"');
383  echo td(${'lvl'.$ind.'_old'}." "._("Total niveau")." ".$ind,'style="font-weight:bold;"');
384 
385  // compare with previous exercice
386  if ($previous==1) {
387  echo td(nbm(${'lvl'.$ind}['sum_deb_previous']),'class="previous_year" style="font-weight:bold;"');
388  echo td(nbm(${'lvl'.$ind}['sum_cred_previous']),' class="previous_year" style="font-weight:bold;" ');
389  $delta_previous=${'lvl'.$ind}['solde_previous'];
390  $side_previous=($delta_previous > 0 ) ? "D":"C";
391  echo td(nbm(abs($delta_previous))." $side_previous",'class="previous_year" style="text-align:right;font-weight:bold;" ');
392 
393  }
394 
395  // Ouverture
396  $solde3=bcsub(${'lvl'.$ind}['sum_deb_ope'],${'lvl'.$ind}['sum_cred_ope']);
397  $side3=($solde3<0)?" C":" D";
398  $side3=($solde3==0)?" ":$side3;
399  echo td(nbm(abs($solde3)).$side3,'style="text-align:right;font-weight:bold;"');
400 
401  // Saldo debit
402  $solde_deb=bcsub(${'lvl'.$ind}['sum_deb'],${'lvl'.$ind}['sum_deb_ope']);
403  echo td(nbm($solde_deb),'style="text-align:right;font-weight:bold;"');
404 
405  // Saldo cred
406  $solde_cred=bcsub(${'lvl'.$ind}['sum_cred'],${'lvl'.$ind}['sum_cred_ope']);
407  echo td(nbm($solde_cred),'style="text-align:right;font-weight:bold;"');
408  $delta=bcsub(${'lvl'.$ind}['solde_cred'],${'lvl'.$ind}['solde_deb']);
409  $side=($delta > 0 ) ? "C":"D";
410  echo td(nbm(abs($delta))." $side",'style="text-align:right;font-weight:bold;" ');
411 
412  echo '</tr>';
413  ${'lvl'.$ind.'_old'}=mb_substr($r['poste'],0,$ind);
414  foreach($a_sum as $a)
415  {
416  ${'lvl'.$ind}[$a]=0;
417  }
418  }
419  }
420 
421  foreach($a_sum as $a)
422  {
423  $lvl1[$a]=bcadd($lvl1[$a],$r[$a]);
424  $lvl2[$a]=bcadd($lvl2[$a],$r[$a]);
425  $lvl3[$a]=bcadd($lvl3[$a],$r[$a]);
426  }
427  // For the Total row , there is no accounting
428  if ( $r['poste'] == "") {
429  $tr="highlight";
430  }
431 
432  $summary_tab=$bal->summary_add($summary_tab,$r['poste'],$r['sum_deb'],$r['sum_cred']);
433 
434  echo '<TR class="'.$tr.'">';
435  echo td($view_history);
436  echo td(h($r['label']));
437 
438  if ($previous == 1 ) {
439  echo td(nbm($r['sum_deb_previous']),' class="previous_year"');
440  echo td(nbm($r['sum_cred_previous']),' class="previous_year" ');
441  $solde_previous=bcsub($r['solde_deb_previous'],$r['solde_cred_previous']);
442  $side=($solde_previous<0)?"C":"D";
443  $side=($solde_previous==0)?"":$side;
444  $r['solde_previous']=$solde_previous;
445  echo td(nbm(abs($solde_previous))." ".$side,' class="previous_year"');
446 
448  $r['poste'],
449  $r['sum_deb_previous'],
450  $r['sum_cred_previous']);
451 
452  }
453  $solde=bcsub($r['sum_deb_ope'],$r['sum_cred_ope']);
454  $side=($solde < 0)?" C":" D";
455  $side=($solde==0)?"":$side;
456  echo td(nbm(abs($solde)).$side,'style="text-align:right;"');
457  echo td(nbm(bcsub($r['sum_deb'],$r['sum_deb_ope'])),'style="text-align:right;"');
458  echo td(nbm(bcsub($r['sum_cred'],$r['sum_cred_ope'])),'style="text-align:right;"');
459 
460  $solde2=bcsub($r['sum_deb'],$r['sum_cred']);
461  $side=($solde2 < 0)?" C":" D";
462  $side=($solde2==0)?"":$side;
463 
464  echo td(nbm(abs($solde2)).$side,'style="text-align:right;"');
465 
466  if ( isset($_GET['lvl1']) || isset($_GET['lvl2']) || isset($_GET['lvl3'])) echo '<td></td>';
467  echo '</TR>';
468 
469  }
470  echo '</table>';
471  // display the summary
472  if ($is_summary==1) {
473  if ( $previous == 1) {
474  echo '<div style="float:left;margin-right:50px">';
475  echo '<h2>';
476  echo _("Résumé Exercice précédent");
477  echo '</h2>';
478  $bal->summary_display($summary_prev_tab);
479  echo "</div>";
480  }
481  echo '<div style="float:left">';
482  echo '<h2>';
483  echo _("Résumé Exercice courant");
484  echo '</h2>';
485  $bal->summary_display($summary_tab);
486  echo "</div>";
487  }
488 }// end submit
489 echo "</div>";
490 ?>
nbm
nbm($p_number, $p_dec=2)
format the number with a sep.
Definition: ac_common.php:137
$array_cat
$array_cat
Definition: balance.inc.php:103
$ex
$ex
Definition: balance.inc.php:45
h
h( $row[ 'oa_description'])
Definition: ajax_anc_detail_operation.php:46
$e
$e
Definition: result_cat_card_summary.php:26
$ind
for($i=0;$i<=6;$i++) $ind
Definition: calendar.php:34
Periode
For the periode tables parm_periode and jrn_periode.
Definition: periode.class.php:32
$b
$b
Definition: export_balance_pdf.php:103
$a_sum
for($e=2;$e< $nb_col;$e++) $a_sum
Definition: export_printtva_pdf.php:157
IPeriod
Generate the form for the periode Data Members.
Definition: iperiod.class.php:34
$from_poste
$from_poste
Definition: balance.inc.php:158
ALL
const ALL
Definition: constant.php:194
$unsold
$unsold
Definition: balance.inc.php:148
$is_summary
$is_summary
Definition: export_balance_pdf.php:60
IRadio
Html Input.
Definition: iradio.class.php:29
$hid
$hid
Definition: ajax_anc_search.php:47
get_array_column
get_array_column($p_array, $key)
Definition: ac_common.php:1332
HtmlInput\button_action
static button_action($action, $javascript, $id=NULL, $p_class="button", $p_symbole="")
button Html with javascript
Definition: html_input.class.php:494
ISpan
Html Input.
Definition: ispan.class.php:31
$input_to
if( $to==0) $input_to
Definition: balance.inc.php:80
$_GET
$_GET['qcode']
Definition: category_followup.inc.php:53
$array
$array
Definition: balance.inc.php:99
$id
$id
Definition: ajax_fiche_def_detail.php:33
IHidden
Html Input.
Definition: ihidden.class.php:30
$from_span
$from_span
Definition: balance.inc.php:165
$ck_lev1
$ck_lev1
Definition: balance.inc.php:127
$input_from
$input_from
Definition: balance.inc.php:62
$rad
$rad
Definition: balance.inc.php:96
$summary_tab
catch(Exception $exc) $summary_tab
Definition: export_balance_pdf.php:58
$to_poste
$to_poste
Definition: balance.inc.php:167
$wex
$wex
Definition: balance.inc.php:47
$solde
$solde
Definition: anc_balance_group.php:13
$periode
$periode
Definition: ajax_display_letter.php:48
$gDossier
$gDossier
Definition: balance.inc.php:30
$nb_row
$nb_row
Definition: ajax_anc_detail_operation.php:50
$select_cat
$select_cat
Definition: balance.inc.php:101
id
$input_from id
Definition: balance.inc.php:63
$summary_prev_tab
$summary_prev_tab
Definition: export_balance_pdf.php:59
HtmlInput\filter_table
static filter_table($p_table_id, $p_col, $start_row)
filter the rows in a table and keep the colored row in alternance
Definition: html_input.class.php:1001
$i
$i
Definition: action_document_type_mtable_input.php:83
$filter
$filter
Definition: balance.inc.php:105
HtmlInput\print_window
static print_window()
Javascript to print the current window.
Definition: html_input.class.php:555
$selected
$selected
Definition: balance.inc.php:100
$a
$a
Definition: ajax_add_concerned_card.php:108
$ck_lev2
$ck_lev2
Definition: balance.inc.php:128
$previous
$previous
Definition: export_balance_pdf.php:89
$from
$from
Definition: balance.inc.php:61
$exercice
$exercice
Definition: balance.inc.php:32
$side
$side
Definition: letter_prop.php:157
Acc_Balance
Class for manipulating data to print the balance of account.
Definition: acc_balance.class.php:27
$bal
$bal
Definition: balance_card_ageing.inc.php:63
IPoste
show a button, for selecting a account and a input text for manually inserting an account the differe...
Definition: iposte.class.php:74
HtmlInput\submit
static submit($p_name, $p_value, $p_javascript="", $p_class="smallbutton")
Definition: html_input.class.php:199
$r
catch(Exception $exc) if(! $g_user->can_write_action($ag_id)) $r
Definition: ajax_add_concerned_card.php:53
Acc_Ledger\array_cat
static array_cat()
create an array of the existing cat, to be used in a checkbox form
Definition: acc_ledger.class.php:2352
$cn
$cn
Definition: ajax_anc_accounting.php:30
$to
$to
Definition: balance.inc.php:72
$js
$js
Definition: balance.inc.php:46
Dossier\id
static id()
return the $_REQUEST['gDossier'] after a check
Definition: dossier.class.php:55
$delta
$delta
Definition: compta_fin_rec.inc.php:287
$http
global $http
Definition: balance.inc.php:29
$g_user
global $g_user
Definition: balance.inc.php:27
$from_periode
$from_periode
Definition: export_fiche_detail_csv.php:29
$t_periode
$t_periode
Definition: forecast-new.php:31
ICheckBox
Html Input.
Definition: icheckbox.class.php:30
$lvl2_old
$lvl2_old
Definition: export_balance_pdf.php:154
$lvl3_old
$lvl3_old
Definition: export_balance_pdf.php:155
td
td($p_string='', $p_extra='')
surround the string with td
Definition: ac_common.php:83
$summary
$summary
Definition: action_display_short.php:36
HtmlInput\history_account
static history_account($p_account, $p_mesg, $p_style="", $p_exercice="")
display a div with the history of the account
Definition: html_input.class.php:349
HtmlInput\hidden
static hidden($p_name, $p_value, $p_id="")
Definition: html_input.class.php:218
$row
$row
Definition: ajax_anc_detail_operation.php:33
HtmlInput\button_choice_ledger
static button_choice_ledger($p_array)
Definition: html_input.class.php:1057
$ck_lev3
$ck_lev3
Definition: balance.inc.php:129
$array_ledger
$array_ledger
Definition: balance.inc.php:98
Exercice
about the accountancy period (usually 1 year starting in January until december) = exercice
Definition: exercice.class.php:30
$to_periode
$to_periode
Definition: export_balance_pdf.php:47
$previous_exc
$previous_exc
Definition: balance.inc.php:153
$to_span
$to_span
Definition: balance.inc.php:174
HtmlInput\get_to_hidden
static get_to_hidden($array)
transform $_GET data to hidden
Definition: html_input.class.php:643
$lvl1_old
foreach($a_sum as $a) $lvl1_old
Definition: export_balance_pdf.php:153