dolibarr  7.0.0-beta
list.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2013-2014 Olivier Geffroy <jeff@jeffinfo.com>
3  * Copyright (C) 2013-2017 Alexandre Spangaro <aspangaro@zendsi.com>
4  * Copyright (C) 2014-2015 Ari Elbaz (elarifr) <github@accedinfo.com>
5  * Copyright (C) 2013-2014 Florian Henry <florian.henry@open-concept.pro>
6  * Copyright (C) 2014 Juanjo Menent <jmenent@2byte.es>s
7  * Copyright (C) 2016 Laurent Destailleur <eldy@users.sourceforge.net>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  */
22 
28 require '../../main.inc.php';
29 
30 // Class
31 require_once DOL_DOCUMENT_ROOT . '/expensereport/class/expensereport.class.php';
32 require_once DOL_DOCUMENT_ROOT . '/core/class/html.formaccounting.class.php';
33 require_once DOL_DOCUMENT_ROOT . '/accountancy/class/accountingaccount.class.php';
34 require_once DOL_DOCUMENT_ROOT . '/core/lib/accounting.lib.php';
35 require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php';
36 require_once DOL_DOCUMENT_ROOT . '/core/lib/date.lib.php';
37 
38 // Langs
39 $langs->load("compta");
40 $langs->load("bills");
41 $langs->load("other");
42 $langs->load("trips");
43 $langs->load("main");
44 $langs->load("accountancy");
45 $langs->load("productbatch");
46 
47 $action=GETPOST('action','alpha');
48 $massaction=GETPOST('massaction','alpha');
49 $show_files=GETPOST('show_files','int');
50 $confirm=GETPOST('confirm','alpha');
51 $toselect = GETPOST('toselect', 'array');
52 
53 // Select Box
54 $mesCasesCochees = GETPOST('toselect', 'array');
55 
56 // Search Getpost
57 $search_expensereport = GETPOST('search_expensereport', 'alpha');
58 $search_label = GETPOST('search_label', 'alpha');
59 $search_desc = GETPOST('search_desc', 'alpha');
60 $search_amount = GETPOST('search_amount', 'alpha');
61 $search_account = GETPOST('search_account', 'alpha');
62 $search_vat = GETPOST('search_vat', 'alpha');
63 $search_day=GETPOST("search_day","int");
64 $search_month=GETPOST("search_month","int");
65 $search_year=GETPOST("search_year","int");
66 
67 $btn_ventil = GETPOST('ventil', 'alpha');
68 
69 // Load variable for pagination
70 $limit = GETPOST('limit','int')?GETPOST('limit', 'int'):(empty($conf->global->ACCOUNTING_LIMIT_LIST_VENTILATION)?$conf->liste_limit:$conf->global->ACCOUNTING_LIMIT_LIST_VENTILATION);
71 $sortfield = GETPOST('sortfield', 'alpha');
72 $sortorder = GETPOST('sortorder', 'alpha');
73 $page = GETPOST('page','int');
74 if (empty($page) || $page < 0) { $page = 0; }
75 $offset = $limit * $page;
76 $pageprev = $page - 1;
77 $pagenext = $page + 1;
78 if (! $sortfield)
79  $sortfield = "erd.date, erd.rowid";
80 if (! $sortorder) {
81  if ($conf->global->ACCOUNTING_LIST_SORT_VENTILATION_TODO > 0) {
82  $sortorder = "DESC";
83  }
84 }
85 
86 // Security check
87 if ($user->societe_id > 0)
89 if (! $user->rights->accounting->bind->write)
91 
92 $formaccounting = new FormAccounting($db);
93 $accounting = new AccountingAccount($db);
94 
95 $chartaccountcode = dol_getIdFromCode($db, $conf->global->CHARTOFACCOUNTS, 'accounting_system', 'rowid', 'pcg_version');
96 
97 
98 /*
99  * Action
100  */
101 
102 if (GETPOST('cancel','alpha')) { $action='list'; $massaction=''; }
103 if (! GETPOST('confirmmassaction','alpha') && $massaction != 'presend' && $massaction != 'confirm_presend') { $massaction=''; }
104 
105 // Purge search criteria
106 if (GETPOST('button_removefilter_x','alpha') || GETPOST('button_removefilter.x','alpha') || GETPOST('button_removefilter','alpha')) // All test are required to be compatible with all browsers
107 {
108  $search_expensereport = '';
109  $search_label = '';
110  $search_desc = '';
111  $search_amount = '';
112  $search_account = '';
113  $search_vat = '';
114  $search_day = '';
115  $search_month = '';
116  $search_year = '';
117 }
118 
119 // Mass actions
120 $objectclass='ExpenseReport';
121 $objectlabel='ExpenseReport';
122 $permtoread = $user->rights->expensereport->read;
123 $permtodelete = $user->rights->expensereport->delete;
124 $uploaddir = $conf->expensereport->dir_output;
125 include DOL_DOCUMENT_ROOT.'/core/actions_massactions.inc.php';
126 
127 if ($massaction == 'ventil') {
128  $msg='';
129  //print '<div><font color="red">' . $langs->trans("Processing") . '...</font></div>';
130  if (! empty($mesCasesCochees)) {
131  $msg = '<div>' . $langs->trans("SelectedLines") . ': '.count($mesCasesCochees).'</div>';
132  $msg.='<div class="detail">';
133  $mesCodesVentilChoisis = $codeventil;
134  $cpt = 0;
135  $ok=0;
136  $ko=0;
137 
138  foreach ( $mesCasesCochees as $maLigneCochee ) {
139  $maLigneCourante = explode("_", $maLigneCochee);
140  $monId = $maLigneCourante[0];
141  $monCompte = GETPOST('codeventil'.$monId);
142 
143  if ($monCompte <= 0)
144  {
145  $msg.= '<div><font color="red">' . $langs->trans("Lineofinvoice") . ' ' . $monId . ' - ' . $langs->trans("NoAccountSelected") . '</font></div>';
146  $ko++;
147  }
148  else
149  {
150  $sql = " UPDATE " . MAIN_DB_PREFIX . "expensereport_det";
151  $sql .= " SET fk_code_ventilation = " . $monCompte;
152  $sql .= " WHERE rowid = " . $monId;
153 
154  $accountventilated = new AccountingAccount($db);
155  $accountventilated->fetch($monCompte, '');
156 
157  dol_syslog('accountancy/expensereport/list.php:: sql=' . $sql, LOG_DEBUG);
158  if ($db->query($sql)) {
159  $msg.= '<div><font color="green">' . $langs->trans("LineOfExpenseReport") . ' ' . $monId . ' - ' . $langs->trans("VentilatedinAccount") . ' : ' . length_accountg($accountventilated->account_number) . '</font></div>';
160  $ok++;
161  } else {
162  $msg.= '<div><font color="red">' . $langs->trans("ErrorDB") . ' : ' . $langs->trans("Lineofinvoice") . ' ' . $monId . ' - ' . $langs->trans("NotVentilatedinAccount") . ' : ' . length_accountg($accountventilated->account_number) . '<br/> <pre>' . $sql . '</pre></font></div>';
163  $ko++;
164  }
165  }
166 
167  $cpt++;
168  }
169  $msg.='</div>';
170  $msg.= '<div>' . $langs->trans("EndProcessing") . '</div>';
171  //} else {
172  // setEventMessages($langs->trans("NoRecordSelected"), null, 'warnings');
173  }
174 }
175 
176 
177 
178 /*
179  * View
180  */
181 
182 $form = new Form($db);
183 $formother = new FormOther($db);
184 
185 llxHeader('', $langs->trans("ExpenseReportsVentilation"));
186 
187 if (empty($chartaccountcode))
188 {
189  print $langs->trans("ErrorChartOfAccountSystemNotSelected");
190  llxFooter();
191  $db->close();
192  exit;
193 }
194 
195 // Expense report lines
196 $sql = "SELECT er.ref, er.rowid as erid, er.date_debut,";
197 $sql.= " erd.rowid, erd.fk_c_type_fees, erd.comments, erd.total_ht as price, erd.fk_code_ventilation, erd.tva_tx as tva_tx_line, erd.vat_src_code, erd.date,";
198 $sql.= " f.id as type_fees_id, f.code as type_fees_code, f.label as type_fees_label, f.accountancy_code as code_buy,";
199 $sql.= " aa.rowid as aarowid";
200 $sql.= " FROM " . MAIN_DB_PREFIX . "expensereport as er";
201 $sql.= " INNER JOIN " . MAIN_DB_PREFIX . "expensereport_det as erd ON er.rowid = erd.fk_expensereport";
202 $sql.= " LEFT JOIN " . MAIN_DB_PREFIX . "c_type_fees as f ON f.id = erd.fk_c_type_fees";
203 $sql.= " LEFT JOIN " . MAIN_DB_PREFIX . "accounting_account as aa ON p.accountancy_code = aa.account_number AND aa.fk_pcg_version = '" . $chartaccountcode."'";
204 $sql.= " WHERE er.fk_statut > 4 AND erd.fk_code_ventilation <= 0";
205 // Add search filter like
206 if (strlen(trim($search_expensereport))) {
207  $sql .= natural_search("er.ref",$search_expensereport);
208 }
209 if (strlen(trim($search_label))) {
210  $sql .= natural_search("f.label",$search_label);
211 }
212 if (strlen(trim($search_desc))) {
213  $sql .= natural_search("erd.comments",$search_desc);
214 }
215 if (strlen(trim($search_amount))) {
216  $sql .= natural_search("erd.total_ht",$search_amount,1);
217 }
218 if (strlen(trim($search_account))) {
219  $sql .= natural_search("aa.account_number",$search_account);
220 }
221 if (strlen(trim($search_vat))) {
222  $sql .= natural_search("erd.tva_tx",$search_vat,1);
223 }
224 if ($search_month > 0)
225 {
226  if ($search_year > 0 && empty($search_day))
227  $sql.= " AND erd.date BETWEEN '".$db->idate(dol_get_first_day($search_year,$search_month,false))."' AND '".$db->idate(dol_get_last_day($search_year,$search_month,false))."'";
228  else if ($search_year > 0 && ! empty($search_day))
229  $sql.= " AND erd.date BETWEEN '".$db->idate(dol_mktime(0, 0, 0, $search_month, $search_day, $search_year))."' AND '".$db->idate(dol_mktime(23, 59, 59, $search_month, $search_day, $search_year))."'";
230  else
231  $sql.= " AND date_format(erd.date, '%m') = '".$db->escape($search_month)."'";
232 }
233 else if ($search_year > 0)
234 {
235  $sql.= " AND erd.date BETWEEN '".$db->idate(dol_get_first_day($search_year,1,false))."' AND '".$db->idate(dol_get_last_day($search_year,12,false))."'";
236 }
237 $sql .= " AND er.entity IN (" . getEntity('expensereport', 0) . ")"; // We don't share object for accountancy
238 
239 $sql .= $db->order($sortfield, $sortorder);
240 
241 // Count total nb of records
242 $nbtotalofrecords = '';
243 if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
244 {
245  $result = $db->query($sql);
246  $nbtotalofrecords = $db->num_rows($result);
247 }
248 
249 $sql .= $db->plimit($limit + 1, $offset);
250 
251 dol_syslog('accountancy/expensereport/list.php');
252 $result = $db->query($sql);
253 if ($result) {
254  $num_lines = $db->num_rows($result);
255  $i = 0;
256 
257  $arrayofselected=is_array($toselect)?$toselect:array();
258 
259  $param='';
260  if (! empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param.='&contextpage='.$contextpage;
261  if ($limit > 0 && $limit != $conf->liste_limit) $param.='&limit='.$limit;
262  if ($search_lineid) $param.='&search_lineid='.urlencode($search_lineid);
263  if ($search_day) $param.='&search_day='.urlencode($search_day);
264  if ($search_month) $param.='&search_month='.urlencode($search_month);
265  if ($search_year) $param.='&search_year='.urlencode($search_year);
266  if ($search_expensereport) $param.='&search_expensereport='.urlencode($search_expensereport);
267  if ($search_label) $param.='&search_label='.urlencode($search_label);
268  if ($search_desc) $param.='&search_desc='.urlencode($search_desc);
269  if ($search_amount) $param.='&search_amount='.urlencode($search_amount);
270  if ($search_vat) $param.='&search_vat='.urlencode($search_vat);
271 
272  $arrayofmassactions = array(
273  'ventil'=>$langs->trans("Ventilate")
274  //'presend'=>$langs->trans("SendByMail"),
275  //'builddoc'=>$langs->trans("PDFMerge"),
276  );
277  //if ($user->rights->mymodule->supprimer) $arrayofmassactions['predelete']=$langs->trans("Delete");
278  //if (in_array($massaction, array('presend','predelete'))) $arrayofmassactions=array();
279  $massactionbutton=$form->selectMassAction('ventil', $arrayofmassactions, 1);
280 
281 
282  print '<form action="' . $_SERVER["PHP_SELF"] . '" method="post">' . "\n";
283  print '<input type="hidden" name="action" value="ventil">';
284  if ($optioncss != '') print '<input type="hidden" name="optioncss" value="'.$optioncss.'">';
285  print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
286  print '<input type="hidden" name="formfilteraction" id="formfilteraction" value="list">';
287  print '<input type="hidden" name="sortfield" value="'.$sortfield.'">';
288  print '<input type="hidden" name="sortorder" value="'.$sortorder.'">';
289  print '<input type="hidden" name="page" value="'.$page.'">';
290 
291  print_barre_liste($langs->trans("ExpenseReportLines"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num_lines, $nbtotalofrecords, 'title_accountancy', 0, '', '', $limit);
292 
293  print $langs->trans("DescVentilTodoExpenseReport") . '</br><br>';
294 
295  /*$topicmail="Information";
296  $modelmail="project";
297  $objecttmp=new Project($db);
298  $trackid='prj'.$object->id;
299  include DOL_DOCUMENT_ROOT.'/core/tpl/massactions_pre.tpl.php';*/
300 
301  if ($msg) print $msg.'<br>';
302 
303  $moreforfilter = '';
304 
305  print '<div class="div-table-responsive">';
306  print '<table class="tagtable liste'.($moreforfilter?" listwithfilterbefore":"").'">'."\n";
307 
308  // We add search filter
309  print '<tr class="liste_titre_filter">';
310  print '<td class="liste_titre"></td>';
311  print '<td class="liste_titre"><input type="text" class="flat maxwidth50" name="search_expensereport" value="' . dol_escape_htmltag($search_expensereport) . '"></td>';
312  print '<td class="liste_titre center">';
313  if (! empty($conf->global->MAIN_LIST_FILTER_ON_DAY)) print '<input class="flat" type="text" size="1" maxlength="2" name="search_day" value="'.$search_day.'">';
314  print '<input class="flat" type="text" size="1" maxlength="2" name="search_month" value="'.$search_month.'">';
315  $formother->select_year($search_year,'search_year',1, 20, 5);
316  print '</td>';
317  print '<td class="liste_titre"><input type="text" class="flat maxwidth50" name="search_label" value="' . dol_escape_htmltag($search_label) . '"></td>';
318  print '<td class="liste_titre"><input type="text" class="flat maxwidthonsmartphone" name="search_desc" value="' . dol_escape_htmltag($search_desc) . '"></td>';
319  print '<td class="liste_titre" align="right"><input type="text" class="right flat maxwidth50" name="search_amount" value="' . dol_escape_htmltag($search_amount) . '"></td>';
320  print '<td class="liste_titre" align="right"><input type="text" class="right flat maxwidth50" name="search_vat" placeholder="%" size="1" value="' . dol_escape_htmltag($search_vat) . '"></td>';
321  print '<td class="liste_titre"></td>';
322  print '<td class="liste_titre"></td>';
323  print '<td align="center" class="liste_titre">';
324  $searchpicto=$form->showFilterButtons();
325  print $searchpicto;
326  print '</td>';
327  print '</tr>';
328 
329  print '<tr class="liste_titre">';
330  print_liste_field_titre("LineId", $_SERVER["PHP_SELF"], "erd.rowid", "", $param, '', $sortfield, $sortorder);
331  print_liste_field_titre("ExpenseReport", $_SERVER["PHP_SELF"], "er.ref", "", $param, '', $sortfield, $sortorder);
332  print_liste_field_titre("Date", $_SERVER["PHP_SELF"], "erd.date, erd.rowid", "", $param, 'align="center"', $sortfield, $sortorder);
333  print_liste_field_titre("TypeFees", $_SERVER["PHP_SELF"], "f.label", "", $param, '', $sortfield, $sortorder);
334  print_liste_field_titre("Description", $_SERVER["PHP_SELF"], "erd.comments", "", $param, '', $sortfield, $sortorder);
335  print_liste_field_titre("Amount", $_SERVER["PHP_SELF"], "erd.total_ht", "", $param, 'align="right"', $sortfield, $sortorder);
336  print_liste_field_titre("VATRate", $_SERVER["PHP_SELF"], "erd.tva_tx", "", $param, 'align="right"', $sortfield, $sortorder);
337  print_liste_field_titre("AccountAccountingSuggest", '', '', '', '', 'align="center"', $sortfield, $sortorder);
338  print_liste_field_titre("IntoAccount", '', '', '', '', 'align="center"', $sortfield, $sortorder);
339  $checkpicto='';
340  if ($massactionbutton) $checkpicto=$form->showCheckAddButtons('checkforselect', 1);
341  print_liste_field_titre($checkpicto, '', '', '', '', 'align="center"');
342  print "</tr>\n";
343 
344 
345  $expensereport_static = new ExpenseReport($db);
346  $form = new Form($db);
347 
348  $var = true;
349  while ( $i < min($num_lines, $limit) ) {
350  $objp = $db->fetch_object($result);
351 
352  $objp->aarowid_suggest = '';
353  $objp->aarowid_suggest = $objp->aarowid;
354 
355  $expensereport_static->ref = $objp->ref;
356  $expensereport_static->id = $objp->erid;
357 
358  print '<tr class="oddeven">';
359 
360  // Line id
361  print '<td>' . $objp->rowid . '</td>';
362 
363  // Ref Expense report
364  print '<td>' . $expensereport_static->getNomUrl(1) . '</td>';
365 
366  // Date
367  print '<td align="center">' . dol_print_date($db->jdate($objp->date), 'day') . '</td>';
368 
369  // Fees label
370  print '<td>';
371  print ($langs->trans($objp->type_fees_code) == $objp->type_fees_code ? $objp->type_fees_label : $langs->trans(($objp->type_fees_code)));
372  print '</td>';
373 
374  // Fees description -- Can be null
375  print '<td>';
376  $text = dolGetFirstLineOfText(dol_string_nohtmltag($objp->comments));
377  $trunclength = empty($conf->global->ACCOUNTING_LENGTH_DESCRIPTION) ? 32 : $conf->global->ACCOUNTING_LENGTH_DESCRIPTION;
378  print $form->textwithtooltip(dol_trunc($text,$trunclength), $objp->comments);
379  print '</td>';
380 
381  print '<td align="right">';
382  print price($objp->price);
383  print '</td>';
384 
385  // Vat rate
386  print '<td align="right">';
387  print vatrate($objp->tva_tx_line.($objp->vat_src_code?' ('.$objp->vat_src_code.')':''));
388  print '</td>';
389 
390  // Current account
391  print '<td align="center">';
392  print length_accountg(html_entity_decode($objp->code_buy));
393  print '</td>';
394 
395  // Suggested accounting account
396  print '<td align="center">';
397  print $formaccounting->select_account($objp->aarowid_suggest, 'codeventil'.$objp->rowid, 1, array(), 0, 0, 'codeventil maxwidth300 maxwidthonsmartphone', 'cachewithshowemptyone');
398  print '</td>';
399 
400  print '<td align="center">';
401  print '<input type="checkbox" class="flat checkforselect checkforselect'.$objp->rowid.'" name="toselect[]" value="' . $objp->rowid . "_" . $i . '"' . ($objp->aarowid ? "checked" : "") . '/>';
402  print '</td>';
403 
404  print "</tr>";
405  $i ++;
406  }
407 
408  print '</table>';
409  print "</div>";
410 
411  print '</form>';
412 } else {
413  print $db->error();
414 }
415 
416 // Add code to auto check the box when we select an account
417 print '<script type="text/javascript" language="javascript">
418 jQuery(document).ready(function() {
419  jQuery(".codeventil").change(function() {
420  var s=$(this).attr("id").replace("codeventil", "")
421  console.log(s+" "+$(this).val());
422  if ($(this).val() == -1) jQuery(".checkforselect"+s).prop("checked", false);
423  else jQuery(".checkforselect"+s).prop("checked", true);
424  });
425 });
426 </script>';
427 
428 llxFooter();
429 $db->close();
llxFooter()
Empty footer.
Definition: wrapper.php:58
dol_trunc($string, $size=40, $trunc='right', $stringencoding='UTF-8', $nodot=0, $display=0)
Truncate a string to a particular length adding '...' if string larger than length.
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm=false, $check=1)
Return a timestamp date built from detailed informations (by default a local PHP server timestamp) Re...
dol_getIdFromCode($db, $key, $tablename, $fieldkey='code', $fieldid='id', $entityfilter=0)
Return an id or code from a code or id.
dol_get_first_day($year, $month=1, $gm=false)
Return GMT time for first day of a month or year.
Definition: date.lib.php:445
if(empty($reshook)) $form
View.
Definition: perms.php:103
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields...
GETPOST($paramname, $check='none', $method=0, $filter=NULL, $options=NULL, $noreplace=0)
Return value of a param into GET or POST supervariable.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
Class to manage generation of HTML components Only common components must be here.
print_barre_liste($titre, $page, $file, $options='', $sortfield='', $sortorder='', $morehtmlcenter='', $num=-1, $totalnboflines='', $picto='title_generic.png', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limit=-1, $hideselectlimit=0, $hidenavigation=0)
Print a title with navigation controls for pagination.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='')
Write log message into outputs.
Classe permettant la generation de composants html autre Only common components are here...
llxHeader()
Empty header.
Definition: wrapper.php:46
getEntity($element, $shared=1, $forceentity=null)
Get list of entity id to use.
natural_search($fields, $value, $mode=0, $nofirstand=0)
Generate natural SQL search string for a criteria (this criteria can be tested on one or several fiel...
dolGetFirstLineOfText($text, $nboflines=1)
Return first line of text.
Class to manage Trips and Expenses.
vatrate($rate, $addpercent=false, $info_bits=0, $usestarfornpr=0)
Return a string with VAT rate label formated for view output Used into pdf and HTML pages...
dol_string_nohtmltag($stringtoclean, $removelinefeed=1, $pagecodeto='UTF-8')
Clean a string from all HTML tags and entities.
price($amount, $form=0, $outlangs='', $trunc=1, $rounding=-1, $forcerounding=-1, $currency_code='')
Function to format a value into an amount for visual output Function used into PDF and HTML pages...
dol_print_date($time, $format='', $tzoutput='tzserver', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
dol_get_last_day($year, $month=12, $gm=false)
Return GMT time for last day of a month or year.
Definition: date.lib.php:459
print
Draft customers invoices.
Definition: index.php:91
Class to manage generation of HTML components for accounting management.
print_liste_field_titre($name, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $tooltip="")
Show title line of an array.
Class to manage accounting accounts.
length_accountg($account)
Return General accounting account with defined length (used for product and miscellaneous) ...