dolibarr  16.0.5
supplier_turnover_by_prodserv.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (C) 2020 Maxime Kohlhaas <maxime@atm-consulting.fr>
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License as published by
6  * the Free Software Foundation; either version 3 of the License, or
7  * (at your option) any later version.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program. If not, see <https://www.gnu.org/licenses/>.
16  */
17 
23 require '../../main.inc.php';
24 require_once DOL_DOCUMENT_ROOT.'/core/lib/report.lib.php';
25 require_once DOL_DOCUMENT_ROOT.'/core/lib/tax.lib.php';
26 require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php';
27 require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php';
28 require_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
29 
30 // Load translation files required by the page
31 $langs->loadLangs(array("products", "categories", "errors", 'accountancy'));
32 
33 // Define modecompta ('CREANCES-DETTES' or 'RECETTES-DEPENSES')
34 $modecompta = $conf->global->ACCOUNTING_MODE;
35 if (GETPOST("modecompta")) {
36  $modecompta = GETPOST("modecompta");
37 }
38 
39 $sortorder = GETPOST("sortorder", 'aZ09comma');
40 $sortfield = GETPOST("sortfield", 'aZ09comma');
41 if (!$sortorder) {
42  $sortorder = "asc";
43 }
44 if (!$sortfield) {
45  $sortfield = "ref";
46 }
47 
48 // Category
49 $selected_cat = (int) GETPOST('search_categ', 'int');
50 $selected_soc = (int) GETPOST('search_soc', 'int');
51 $subcat = false;
52 if (GETPOST('subcat', 'alpha') === 'yes') {
53  $subcat = true;
54 }
55 // product/service
56 $selected_type = GETPOST('search_type', 'int');
57 if ($selected_type == '') {
58  $selected_type = -1;
59 }
60 
61 // Hook
62 $hookmanager->initHooks(array('supplierturnoverbyprodservlist'));
63 
64 // Date range
65 $year = GETPOST("year");
66 $month = GETPOST("month");
67 $date_startyear = GETPOST("date_startyear");
68 $date_startmonth = GETPOST("date_startmonth");
69 $date_startday = GETPOST("date_startday");
70 $date_endyear = GETPOST("date_endyear");
71 $date_endmonth = GETPOST("date_endmonth");
72 $date_endday = GETPOST("date_endday");
73 if (empty($year)) {
74  $year_current = dol_print_date(dol_now(), '%Y');
75  $month_current = dol_print_date(dol_now(), '%m');
76  $year_start = $year_current;
77 } else {
78  $year_current = $year;
79  $month_current = dol_print_date(dol_now(), '%m');
80  $year_start = $year;
81 }
82 $date_start = dol_mktime(0, 0, 0, GETPOST("date_startmonth"), GETPOST("date_startday"), GETPOST("date_startyear"), 'tzserver'); // We use timezone of server so report is same from everywhere
83 $date_end = dol_mktime(23, 59, 59, GETPOST("date_endmonth"), GETPOST("date_endday"), GETPOST("date_endyear"), 'tzserver'); // We use timezone of server so report is same from everywhere
84 // Quarter
85 if (empty($date_start) || empty($date_end)) { // We define date_start and date_end
86  $q = GETPOST("q", "int");
87  if (empty($q)) {
88  // We define date_start and date_end
89  $month_start = GETPOST("month") ?GETPOST("month") : ($conf->global->SOCIETE_FISCAL_MONTH_START ? ($conf->global->SOCIETE_FISCAL_MONTH_START) : 1);
90  $year_end = $year_start;
91  $month_end = $month_start;
92  if (!GETPOST("month")) { // If month not forced
93  if (!GETPOST('year') && $month_start > $month_current) {
94  $year_start--;
95  $year_end--;
96  }
97  $month_end = $month_start - 1;
98  if ($month_end < 1) {
99  $month_end = 12;
100  } else {
101  $year_end++;
102  }
103  }
104  $date_start = dol_get_first_day($year_start, $month_start, false);
105  $date_end = dol_get_last_day($year_end, $month_end, false);
106  } else {
107  if ($q == 1) {
108  $date_start = dol_get_first_day($year_start, 1, false);
109  $date_end = dol_get_last_day($year_start, 3, false);
110  }
111  if ($q == 2) {
112  $date_start = dol_get_first_day($year_start, 4, false);
113  $date_end = dol_get_last_day($year_start, 6, false);
114  }
115  if ($q == 3) {
116  $date_start = dol_get_first_day($year_start, 7, false);
117  $date_end = dol_get_last_day($year_start, 9, false);
118  }
119  if ($q == 4) {
120  $date_start = dol_get_first_day($year_start, 10, false);
121  $date_end = dol_get_last_day($year_start, 12, false);
122  }
123  }
124 } else {
125  // TODO We define q
126 }
127 
128 // $date_start and $date_end are defined. We force $year_start and $nbofyear
129 $tmps = dol_getdate($date_start);
130 $year_start = $tmps['year'];
131 $tmpe = dol_getdate($date_end);
132 $year_end = $tmpe['year'];
133 $nbofyear = ($year_end - $year_start) + 1;
134 
135 $commonparams = array();
136 if (!empty($modecompta)) {
137  $commonparams['modecompta'] = $modecompta;
138 }
139 if (!empty($sortorder)) {
140  $commonparams['sortorder'] = $sortorder;
141 }
142 if (!empty($sortfield)) {
143  $commonparams['sortfield'] = $sortfield;
144 }
145 
146 $headerparams = array();
147 if (!empty($date_startyear)) {
148  $headerparams['date_startyear'] = $date_startyear;
149 }
150 if (!empty($date_startmonth)) {
151  $headerparams['date_startmonth'] = $date_startmonth;
152 }
153 if (!empty($date_startday)) {
154  $headerparams['date_startday'] = $date_startday;
155 }
156 if (!empty($date_endyear)) {
157  $headerparams['date_endyear'] = $date_endyear;
158 }
159 if (!empty($date_endmonth)) {
160  $headerparams['date_endmonth'] = $date_endmonth;
161 }
162 if (!empty($date_endday)) {
163  $headerparams['date_endday'] = $date_endday;
164 }
165 if (!empty($year)) {
166  $headerparams['year'] = $year;
167 }
168 if (!empty($month)) {
169  $headerparams['month'] = $month;
170 }
171 $headerparams['q'] = $q;
172 
173 $tableparams = array();
174 if (!empty($selected_cat)) {
175  $tableparams['search_categ'] = $selected_cat;
176 }
177 if (!empty($selected_soc)) {
178  $tableparams['search_soc'] = $selected_soc;
179 }
180 if (!empty($selected_type)) {
181  $tableparams['search_type'] = $selected_type;
182 }
183 $tableparams['subcat'] = ($subcat === true) ? 'yes' : '';
184 
185 // Adding common parameters
186 $allparams = array_merge($commonparams, $headerparams, $tableparams);
187 $headerparams = array_merge($commonparams, $headerparams);
188 $tableparams = array_merge($commonparams, $tableparams);
189 
190 foreach ($allparams as $key => $value) {
191  $paramslink .= '&'.$key.'='.$value;
192 }
193 
194 // Security pack (data & check)
195 $socid = GETPOST('socid', 'int');
196 
197 if ($user->socid > 0) {
198  $socid = $user->socid;
199 }
200 if (isModEnabled('comptabilite')) {
201  $result = restrictedArea($user, 'compta', '', '', 'resultat');
202 }
203 if (isModEnabled('accounting')) {
204  $result = restrictedArea($user, 'accounting', '', '', 'comptarapport');
205 }
206 
207 
208 /*
209  * View
210  */
211 
212 llxHeader();
213 
214 $form = new Form($db);
215 $formother = new FormOther($db);
216 
217 // TODO Report from bookkeeping not yet available, so we switch on report on business events
218 if ($modecompta == "BOOKKEEPING") {
219  $modecompta = "CREANCES-DETTES";
220 }
221 if ($modecompta == "BOOKKEEPINGCOLLECTED") {
222  $modecompta = "RECETTES-DEPENSES";
223 }
224 
225 // Show report header
226 if ($modecompta == "CREANCES-DETTES") {
227  $name = $langs->trans("PurchaseTurnover").', '.$langs->trans("ByProductsAndServices");
228  $calcmode = $langs->trans("CalcModeDebt");
229  //$calcmode.='<br>('.$langs->trans("SeeReportInInputOutputMode",'<a href="'.$_SERVER["PHP_SELF"].'?year='.$year_start.'&modecompta=RECETTES-DEPENSES">','</a>').')';
230 
231  $description = $langs->trans("RulesPurchaseTurnoverDue");
232  $builddate = dol_now();
233 } elseif ($modecompta == "RECETTES-DEPENSES") {
234  $name = $langs->trans("PurchaseTurnoverCollected").', '.$langs->trans("ByProductsAndServices");
235  $calcmode = $langs->trans("CalcModeEngagement");
236  //$calcmode.='<br>('.$langs->trans("SeeReportInDueDebtMode",'<a href="'.$_SERVER["PHP_SELF"].'?year='.$year_start.'&modecompta=CREANCES-DETTES">','</a>').')';
237  $description = $langs->trans("RulesPurchaseTurnoverIn");
238 
239  $builddate = dol_now();
240 } elseif ($modecompta == "BOOKKEEPING") {
241 } elseif ($modecompta == "BOOKKEEPINGCOLLECTED") {
242 }
243 
244 $period = $form->selectDate($date_start, 'date_start', 0, 0, 0, '', 1, 0, 0, '', '', '', '', 1, '', '', 'tzserver');
245 $period .= ' - ';
246 $period .= $form->selectDate($date_end, 'date_end', 0, 0, 0, '', 1, 0, 0, '', '', '', '', 1, '', '', 'tzserver');
247 if ($date_end == dol_time_plus_duree($date_start, 1, 'y') - 1) {
248  $periodlink = '<a href="'.$_SERVER["PHP_SELF"].'?year='.($year_start - 1).'&modecompta='.$modecompta.'">'.img_previous().'</a> <a href="'.$_SERVER["PHP_SELF"].'?year='.($year_start + 1).'&modecompta='.$modecompta.'">'.img_next().'</a>';
249 } else {
250  $periodlink = '';
251 }
252 
253 report_header($name, $namelink, $period, $periodlink, $description, $builddate, $exportlink, $tableparams, $calcmode);
254 
255 if (isModEnabled('accounting') && $modecompta != 'BOOKKEEPING') {
256  print info_admin($langs->trans("WarningReportNotReliable"), 0, 0, 1);
257 }
258 
259 
260 
261 $name = array();
262 
263 // SQL request
264 $catotal = 0;
265 $catotal_ht = 0;
266 $qtytotal = 0;
267 
268 if ($modecompta == 'CREANCES-DETTES') {
269  $sql = "SELECT DISTINCT p.rowid as rowid, p.ref as ref, p.label as label, p.fk_product_type as product_type,";
270  $sql .= " SUM(l.total_ht) as amount, SUM(l.total_ttc) as amount_ttc,";
271  $sql .= " SUM(CASE WHEN f.type = 2 THEN -l.qty ELSE l.qty END) as qty";
272  $sql .= " FROM ".MAIN_DB_PREFIX."facture_fourn as f";
273  if ($selected_soc > 0) {
274  $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."societe as soc ON (soc.rowid = f.fk_soc)";
275  }
276  $sql .= ",".MAIN_DB_PREFIX."facture_fourn_det as l";
277  $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON l.fk_product = p.rowid";
278  if ($selected_cat === -2) { // Without any category
279  $sql .= " LEFT JOIN ".MAIN_DB_PREFIX."categorie_product as cp ON p.rowid = cp.fk_product";
280  } elseif ($selected_cat) { // Into a specific category
281  $sql .= ", ".MAIN_DB_PREFIX."categorie as c, ".MAIN_DB_PREFIX."categorie_product as cp";
282  }
283  $sql .= " WHERE l.fk_facture_fourn = f.rowid";
284  $sql .= " AND f.fk_statut in (1,2)";
285  $sql .= " AND f.type IN (0,2)";
286 
287  if ($date_start && $date_end) {
288  $sql .= " AND f.datef >= '".$db->idate($date_start)."' AND f.datef <= '".$db->idate($date_end)."'";
289  }
290  if ($selected_type >= 0) {
291  $sql .= " AND l.product_type = ".((int) $selected_type);
292  }
293  if ($selected_cat === -2) { // Without any category
294  $sql .= " AND cp.fk_product is null";
295  } elseif ($selected_cat) { // Into a specific category
296  $sql .= " AND (c.rowid = ".((int) $selected_cat);
297  if ($subcat) {
298  $sql .= " OR c.fk_parent = ".((int) $selected_cat);
299  }
300  $sql .= ")";
301  $sql .= " AND cp.fk_categorie = c.rowid AND cp.fk_product = p.rowid";
302  }
303  if ($selected_soc > 0) {
304  $sql .= " AND soc.rowid=".((int) $selected_soc);
305  }
306  $sql .= " AND f.entity IN (".getEntity('supplier_invoice').")";
307  $sql .= " GROUP BY p.rowid, p.ref, p.label, p.fk_product_type";
308  $sql .= $db->order($sortfield, $sortorder);
309 
310  dol_syslog("supplier_turnover_by_prodserv", LOG_DEBUG);
311  $result = $db->query($sql);
312  if ($result) {
313  $num = $db->num_rows($result);
314  $i = 0;
315  while ($i < $num) {
316  $obj = $db->fetch_object($result);
317  $amount_ht[$obj->rowid] = $obj->amount;
318  $amount[$obj->rowid] = $obj->amount_ttc;
319  $qty[$obj->rowid] = $obj->qty;
320  $name[$obj->rowid] = $obj->ref.'&nbsp;-&nbsp;'.$obj->label;
321  $type[$obj->rowid] = $obj->product_type;
322  $catotal_ht += $obj->amount;
323  $catotal += $obj->amount_ttc;
324  $qtytotal += $obj->qty;
325  $i++;
326  }
327  } else {
328  dol_print_error($db);
329  }
330 
331  // Show Array
332  $i = 0;
333  print '<form method="POST" action="'.$_SERVER["PHP_SELF"].'">';
334  print '<input type="hidden" name="token" value="'.newToken().'">'."\n";
335  // Extra parameters management
336  foreach ($headerparams as $key => $value) {
337  print '<input type="hidden" name="'.$key.'" value="'.$value.'">';
338  }
339 
340  $moreforfilter = '';
341 
342  print '<div class="div-table-responsive">';
343  print '<table class="tagtable liste'.($moreforfilter ? " listwithfilterbefore" : "").'">'."\n";
344 
345  // Category filter
346  print '<tr class="liste_titre">';
347  print '<td>';
348  print img_picto('', 'category', 'class="paddingrightonly"');
349  print $formother->select_categories(Categorie::TYPE_PRODUCT, $selected_cat, 'search_categ', 0, $langs->trans("Category"));
350  print ' ';
351  print $langs->trans("SubCats").'? ';
352  print '<input type="checkbox" name="subcat" value="yes"';
353  if ($subcat) {
354  print ' checked';
355  }
356  print '>';
357  // type filter (produit/service)
358  print ' ';
359  print $langs->trans("Type").': ';
360  $form->select_type_of_lines(isset($selected_type) ? $selected_type : -1, 'search_type', 1, 1, 1);
361 
362  //select thirdparty
363  print '</br>';
364  print img_picto('', 'company', 'class="paddingrightonly"');
365  print $form->select_thirdparty_list($selected_soc, 'search_soc', '', $langs->trans("ThirdParty"));
366  print '</td>';
367 
368  print '<td colspan="5" class="right">';
369  print '<input type="image" class="liste_titre" name="button_search" src="'.img_picto($langs->trans("Search"), 'search.png', '', '', 1).'" value="'.dol_escape_htmltag($langs->trans("Search")).'" title="'.dol_escape_htmltag($langs->trans("Search")).'">';
370  print '</td></tr>';
371 
372  // Array header
373  print "<tr class=\"liste_titre\">";
375  $langs->trans("Product"),
376  $_SERVER["PHP_SELF"],
377  "ref",
378  "",
379  $paramslink,
380  "",
381  $sortfield,
382  $sortorder
383  );
385  $langs->trans('Quantity'),
386  $_SERVER["PHP_SELF"],
387  "qty",
388  "",
389  $paramslink,
390  'class="right"',
391  $sortfield,
392  $sortorder
393  );
395  $langs->trans("Percentage"),
396  $_SERVER["PHP_SELF"],
397  "qty",
398  "",
399  $paramslink,
400  'class="right"',
401  $sortfield,
402  $sortorder
403  );
405  $langs->trans('AmountHT'),
406  $_SERVER["PHP_SELF"],
407  "amount",
408  "",
409  $classslink,
410  'class="right"',
411  $sortfield,
412  $sortorder
413  );
415  $langs->trans("AmountTTC"),
416  $_SERVER["PHP_SELF"],
417  "amount_ttc",
418  "",
419  $paramslink,
420  'class="right"',
421  $sortfield,
422  $sortorder
423  );
425  $langs->trans("Percentage"),
426  $_SERVER["PHP_SELF"],
427  "amount_ttc",
428  "",
429  $paramslink,
430  'class="right"',
431  $sortfield,
432  $sortorder
433  );
434  print "</tr>\n";
435 
436  if (count($name)) {
437  foreach ($name as $key => $value) {
438  print '<tr class="oddeven">';
439 
440  // Product
441  print "<td>";
442  $fullname = $name[$key];
443  if ($key > 0) {
444  $linkname = '<a href="'.DOL_URL_ROOT.'/product/card.php?id='.$key.'">'.img_object($langs->trans("ShowProduct"), $type[$key] == 0 ? 'product' : 'service').' '.$fullname.'</a>';
445  } else {
446  $linkname = $langs->trans("PaymentsNotLinkedToProduct");
447  }
448  print $linkname;
449  print "</td>\n";
450 
451  // Quantity
452  print '<td class="right">';
453  print $qty[$key];
454  print '</td>';
455 
456  // Percent;
457  print '<td class="right">'.($qtytotal > 0 ? round(100 * $qty[$key] / $qtytotal, 2).'%' : '&nbsp;').'</td>';
458 
459  // Amount w/o VAT
460  print '<td class="right">';
461  print price($amount_ht[$key]);
462  //print '</a>';
463  print '</td>';
464 
465  // Amount with VAT
466  print '<td class="right">';
467  print price($amount[$key]);
468  //print '</a>';
469  print '</td>';
470 
471  // Percent;
472  print '<td class="right">'.($catotal > 0 ? round(100 * $amount[$key] / $catotal, 2).'%' : '&nbsp;').'</td>';
473 
474  // TODO: statistics?
475 
476  print "</tr>\n";
477  $i++;
478  }
479 
480  // Total
481  print '<tr class="liste_total">';
482  print '<td>'.$langs->trans("Total").'</td>';
483  print '<td class="right">'.$qtytotal.'</td>';
484  print '<td class="right">100%</td>';
485  print '<td class="right">'.price($catotal_ht).'</td>';
486  print '<td class="right">'.price($catotal).'</td>';
487  print '<td class="right">100%</td>';
488  print '</tr>';
489 
490  $db->free($result);
491  }
492  print "</table>";
493  print '</div>';
494 
495  print '</form>';
496 } else {
497  // $modecompta != 'CREANCES-DETTES'
498  // "Calculation of part of each product for accountancy in this mode is not possible. When a partial payment (for example 5 euros) is done on an
499  // invoice with 2 product (product A for 10 euros and product B for 20 euros), what is part of paiment for product A and part of paiment for product B ?
500  // Because there is no way to know this, this report is not relevant.
501  print '<br>'.$langs->trans("TurnoverPerProductInCommitmentAccountingNotRelevant").'<br>';
502 }
503 
504 // End of page
505 llxFooter();
506 $db->close();
dol_getdate
dol_getdate($timestamp, $fast=false, $forcetimezone='')
Return an array with locale date info.
Definition: functions.lib.php:2699
dol_escape_htmltag
dol_escape_htmltag($stringtoescape, $keepb=0, $keepn=0, $noescapetags='', $escapeonlyhtmltags=0)
Returns text escaped for inclusion in HTML alt or title tags, or into values of HTML input fields.
Definition: functions.lib.php:1454
restrictedArea
restrictedArea($user, $features, $objectid=0, $tableandshare='', $feature2='', $dbt_keyfield='fk_soc', $dbt_select='rowid', $isdraft=0, $mode=0)
Check permissions of a user to show a page and an object.
Definition: security.lib.php:234
llxFooter
llxFooter()
Empty footer.
Definition: wrapper.php:73
GETPOST
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
Definition: functions.lib.php:484
dol_print_error
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
Definition: functions.lib.php:4830
$form
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
Definition: card.php:142
FormOther
Classe permettant la generation de composants html autre Only common components are here.
Definition: html.formother.class.php:39
dol_print_date
dol_print_date($time, $format='', $tzoutput='auto', $outputlangs='', $encodetooutput=false)
Output date in a string format according to outputlangs (or langs if not defined).
Definition: functions.lib.php:2500
img_picto
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
Definition: functions.lib.php:3866
img_next
img_next($titlealt='default', $moreatt='')
Show next logo.
Definition: functions.lib.php:4543
dol_syslog
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.
Definition: functions.lib.php:1589
dol_get_first_day
dol_get_first_day($year, $month=1, $gm=false)
Return GMT time for first day of a month or year.
Definition: date.lib.php:551
dol_get_last_day
dol_get_last_day($year, $month=12, $gm=false)
Return GMT time for last day of a month or year.
Definition: date.lib.php:570
info_admin
info_admin($text, $infoonimgalt=0, $nodiv=0, $admin='1', $morecss='hideonsmartphone', $textfordropdown='')
Show information for admin users or standard users.
Definition: functions.lib.php:4786
isModEnabled
isModEnabled($module)
Is Dolibarr module enabled.
Definition: functions.lib.php:105
dol_time_plus_duree
dol_time_plus_duree($time, $duration_value, $duration_unit, $ruleforendofmonth=0)
Add a delay to a date.
Definition: date.lib.php:121
print_liste_field_titre
print_liste_field_titre($name, $file="", $field="", $begin="", $moreparam="", $moreattrib="", $sortfield="", $sortorder="", $prefix="", $tooltip="", $forcenowrapcolumntitle=0)
Show title line of an array.
Definition: functions.lib.php:5012
Form
Class to manage generation of HTML components Only common components must be here.
Definition: html.form.class.php:52
img_object
img_object($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0)
Show a picto called object_picto (generic function)
Definition: functions.lib.php:4197
dol_now
dol_now($mode='auto')
Return date for now.
Definition: functions.lib.php:2831
price
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.
Definition: functions.lib.php:5527
dol_mktime
dol_mktime($hour, $minute, $second, $month, $day, $year, $gm='auto', $check=1)
Return a timestamp date built from detailed informations (by default a local PHP server timestamp) Re...
Definition: functions.lib.php:2743
img_previous
img_previous($titlealt='default', $moreatt='')
Show previous logo.
Definition: functions.lib.php:4562
report_header
report_header($reportname, $notused, $period, $periodlink, $description, $builddate, $exportlink='', $moreparam=array(), $calcmode='', $varlink='')
Show header of a report.
Definition: report.lib.php:41
llxHeader
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOCSRFCHECK')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
Definition: wrapper.php:59