2 /**********************************************************************
3 Copyright (C) FrontAccounting, LLC.
4 Released under the terms of the GNU General Public License, GPL,
5 as published by the Free Software Foundation, either version 3
6 of the License, or (at your option) any later version.
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
10 See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
11 ***********************************************************************/
13 $page_security = 'SA_OPEN';
14 include_once($path_to_root . "/includes/session.inc");
16 include_once($path_to_root . "/includes/date_functions.inc");
17 include_once($path_to_root . "/includes/data_checks.inc");
18 include_once($path_to_root . "/includes/ui.inc");
19 include_once($path_to_root . "/reporting/includes/reports_classes.inc");
22 $js .= get_js_date_picker();
24 add_js_file('reports.js');
26 page(_($help_context = "Reports and Analysis"), false, false, "", $js);
28 $reports = new BoxReports;
30 $dim = get_company_pref('use_dimension');
32 $reports->addReportClass(_('Customer'), RC_CUSTOMER);
33 $reports->addReport(RC_CUSTOMER, 101, _('Customer &Balances'),
34 array( _('Start Date') => 'DATEBEGIN',
35 _('End Date') => 'DATEENDM',
36 _('Customer') => 'CUSTOMERS_NO_FILTER',
37 _('Show Balance') => 'YES_NO',
38 _('Currency Filter') => 'CURRENCY',
39 _('Suppress Zeros') => 'YES_NO',
40 _('Comments') => 'TEXTBOX',
41 _('Orientation') => 'ORIENTATION',
42 _('Destination') => 'DESTINATION'));
43 $reports->addReport(RC_CUSTOMER, 102, _('&Aged Customer Analysis'),
44 array( _('End Date') => 'DATE',
45 _('Customer') => 'CUSTOMERS_NO_FILTER',
46 _('Currency Filter') => 'CURRENCY',
47 _('Show Also Allocated') => 'YES_NO',
48 _('Summary Only') => 'YES_NO',
49 _('Suppress Zeros') => 'YES_NO',
50 _('Graphics') => 'GRAPHIC',
51 _('Comments') => 'TEXTBOX',
52 _('Orientation') => 'ORIENTATION',
53 _('Destination') => 'DESTINATION'));
54 $reports->addReport(RC_CUSTOMER, 103, _('Customer &Detail Listing'),
55 array( _('Activity Since') => 'DATEBEGIN',
56 _('Sales Areas') => 'AREAS',
57 _('Sales Folk') => 'SALESMEN',
58 _('Activity Greater Than') => 'TEXT',
59 _('Activity Less Than') => 'TEXT',
60 _('Comments') => 'TEXTBOX',
61 _('Orientation') => 'ORIENTATION',
62 _('Destination') => 'DESTINATION'));
63 $reports->addReport(RC_CUSTOMER, 114, _('Sales &Summary Report'),
64 array( _('Start Date') => 'DATEBEGINTAX',
65 _('End Date') => 'DATEENDTAX',
66 _('Tax Id Only') => 'YES_NO',
67 _('Comments') => 'TEXTBOX',
68 _('Orientation') => 'ORIENTATION',
69 _('Destination') => 'DESTINATION'));
70 $reports->addReport(RC_CUSTOMER, 104, _('&Price Listing'),
71 array( _('Currency Filter') => 'CURRENCY',
72 _('Inventory Category') => 'CATEGORIES',
73 _('Sales Types') => 'SALESTYPES',
74 _('Show Pictures') => 'YES_NO',
75 _('Show GP %') => 'YES_NO',
76 _('Comments') => 'TEXTBOX',
77 _('Orientation') => 'ORIENTATION',
78 _('Destination') => 'DESTINATION'));
79 $reports->addReport(RC_CUSTOMER, 105, _('&Order Status Listing'),
80 array( _('Start Date') => 'DATEBEGINM',
81 _('End Date') => 'DATEENDM',
82 _('Inventory Category') => 'CATEGORIES',
83 _('Stock Location') => 'LOCATIONS',
84 _('Back Orders Only') => 'YES_NO',
85 _('Comments') => 'TEXTBOX',
86 _('Orientation') => 'ORIENTATION',
87 _('Destination') => 'DESTINATION'));
88 $reports->addReport(RC_CUSTOMER, 106, _('&Salesman Listing'),
89 array( _('Start Date') => 'DATEBEGINM',
90 _('End Date') => 'DATEENDM',
91 _('Summary Only') => 'YES_NO',
92 _('Comments') => 'TEXTBOX',
93 _('Orientation') => 'ORIENTATION',
94 _('Destination') => 'DESTINATION'));
95 $reports->addReport(RC_CUSTOMER, 107, _('Print &Invoices'),
96 array( _('From') => 'INVOICE',
98 _('Currency Filter') => 'CURRENCY',
99 _('email Customers') => 'YES_NO',
100 _('Payment Link') => 'PAYMENT_LINK',
101 _('Comments') => 'TEXTBOX',
102 _('Orientation') => 'ORIENTATION'));
103 $reports->addReport(RC_CUSTOMER, 113, _('Print &Credit Notes'),
104 array( _('From') => 'CREDIT',
106 _('Currency Filter') => 'CURRENCY',
107 _('email Customers') => 'YES_NO',
108 _('Payment Link') => 'PAYMENT_LINK',
109 _('Comments') => 'TEXTBOX',
110 _('Orientation') => 'ORIENTATION'));
111 $reports->addReport(RC_CUSTOMER, 110, _('Print &Deliveries'),
112 array( _('From') => 'DELIVERY',
113 _('To') => 'DELIVERY',
114 _('email Customers') => 'YES_NO',
115 _('Print as Packing Slip') => 'YES_NO',
116 _('Comments') => 'TEXTBOX',
117 _('Orientation') => 'ORIENTATION'));
118 $reports->addReport(RC_CUSTOMER, 108, _('Print &Statements'),
119 array( _('Customer') => 'CUSTOMERS_NO_FILTER',
120 _('Currency Filter') => 'CURRENCY',
121 _('Show Also Allocated') => 'YES_NO',
122 _('Email Customers') => 'YES_NO',
123 _('Comments') => 'TEXTBOX',
124 _('Orientation') => 'ORIENTATION'));
125 $reports->addReport(RC_CUSTOMER, 109, _('&Print Sales Orders'),
126 array( _('From') => 'ORDERS',
128 _('Currency Filter') => 'CURRENCY',
129 _('Email Customers') => 'YES_NO',
130 _('Print as Quote') => 'YES_NO',
131 _('Comments') => 'TEXTBOX',
132 _('Orientation') => 'ORIENTATION'));
133 $reports->addReport(RC_CUSTOMER, 111, _('&Print Sales Quotations'),
134 array( _('From') => 'QUOTATIONS',
135 _('To') => 'QUOTATIONS',
136 _('Currency Filter') => 'CURRENCY',
137 _('Email Customers') => 'YES_NO',
138 _('Comments') => 'TEXTBOX',
139 _('Orientation') => 'ORIENTATION'));
140 $reports->addReport(RC_CUSTOMER, 112, _('Print Receipts'),
141 array( _('From') => 'RECEIPT',
142 _('To') => 'RECEIPT',
143 _('Currency Filter') => 'CURRENCY',
144 _('Comments') => 'TEXTBOX',
145 _('Orientation') => 'ORIENTATION'));
147 $reports->addReportClass(_('Supplier'), RC_SUPPLIER);
148 $reports->addReport(RC_SUPPLIER, 201, _('Supplier &Balances'),
149 array( _('Start Date') => 'DATEBEGIN',
150 _('End Date') => 'DATEENDM',
151 _('Supplier') => 'SUPPLIERS_NO_FILTER',
152 _('Show Balance') => 'YES_NO',
153 _('Currency Filter') => 'CURRENCY',
154 _('Suppress Zeros') => 'YES_NO',
155 _('Comments') => 'TEXTBOX',
156 _('Orientation') => 'ORIENTATION',
157 _('Destination') => 'DESTINATION'));
158 $reports->addReport(RC_SUPPLIER, 202, _('&Aged Supplier Analyses'),
159 array( _('End Date') => 'DATE',
160 _('Supplier') => 'SUPPLIERS_NO_FILTER',
161 _('Currency Filter') => 'CURRENCY',
162 _('Show Also Allocated') => 'YES_NO',
163 _('Summary Only') => 'YES_NO',
164 _('Suppress Zeros') => 'YES_NO',
165 _('Graphics') => 'GRAPHIC',
166 _('Comments') => 'TEXTBOX',
167 _('Orientation') => 'ORIENTATION',
168 _('Destination') => 'DESTINATION'));
169 $reports->addReport(RC_SUPPLIER, 203, _('&Payment Report'),
170 array( _('End Date') => 'DATE',
171 _('Supplier') => 'SUPPLIERS_NO_FILTER',
172 _('Currency Filter') => 'CURRENCY',
173 _('Suppress Zeros') => 'YES_NO',
174 _('Comments') => 'TEXTBOX',
175 _('Orientation') => 'ORIENTATION',
176 _('Destination') => 'DESTINATION'));
177 $reports->addReport(RC_SUPPLIER, 204, _('Outstanding &GRNs Report'),
178 array( _('Supplier') => 'SUPPLIERS_NO_FILTER',
179 _('Comments') => 'TEXTBOX',
180 _('Orientation') => 'ORIENTATION',
181 _('Destination') => 'DESTINATION'));
182 $reports->addReport(RC_SUPPLIER, 205, _('Supplier &Detail Listing'),
183 array( _('Activity Since') => 'DATEBEGIN',
184 _('Activity Greater Than') => 'TEXT',
185 _('Activity Less Than') => 'TEXT',
186 _('Comments') => 'TEXTBOX',
187 _('Orientation') => 'ORIENTATION',
188 _('Destination') => 'DESTINATION'));
189 $reports->addReport(RC_SUPPLIER, 209, _('Print Purchase &Orders'),
190 array( _('From') => 'PO',
192 _('Currency Filter') => 'CURRENCY',
193 _('Email Customers') => 'YES_NO',
194 _('Comments') => 'TEXTBOX',
195 _('Orientation') => 'ORIENTATION'));
196 $reports->addReport(RC_SUPPLIER, 210, _('Print Remittances'),
197 array( _('From') => 'REMITTANCE',
198 _('To') => 'REMITTANCE',
199 _('Currency Filter') => 'CURRENCY',
200 _('Email Customers') => 'YES_NO',
201 _('Comments') => 'TEXTBOX',
202 _('Orientation') => 'ORIENTATION'));
204 $reports->addReportClass(_('Inventory'), RC_INVENTORY);
206 $reports->addReport(RC_INVENTORY, 301, _('Inventory &Valuation Report'),
207 array( _('End Date') => 'DATE',
208 _('Inventory Category') => 'CATEGORIES',
209 _('Location') => 'LOCATIONS',
210 _('Summary Only') => 'YES_NO',
211 _('Comments') => 'TEXTBOX',
212 _('Orientation') => 'ORIENTATION',
213 _('Destination') => 'DESTINATION'));
214 $reports->addReport(RC_INVENTORY, 302, _('Inventory &Planning Report'),
215 array( _('Inventory Category') => 'CATEGORIES',
216 _('Location') => 'LOCATIONS',
217 _('Comments') => 'TEXTBOX',
218 _('Orientation') => 'ORIENTATION',
219 _('Destination') => 'DESTINATION'));
220 $reports->addReport(RC_INVENTORY, 303, _('Stock &Check Sheets'),
221 array( _('Inventory Category') => 'CATEGORIES',
222 _('Location') => 'LOCATIONS',
223 _('Show Pictures') => 'YES_NO',
224 _('Inventory Column') => 'YES_NO',
225 _('Show Shortage') => 'YES_NO',
226 _('Suppress Zeros') => 'YES_NO',
227 _('Comments') => 'TEXTBOX',
228 _('Orientation') => 'ORIENTATION',
229 _('Destination') => 'DESTINATION'));
230 $reports->addReport(RC_INVENTORY, 307, _('Inventory &Movement Report'),
231 array( _('Start Date') => 'DATEBEGINM',
232 _('End Date') => 'DATEENDM',
233 _('Inventory Category') => 'CATEGORIES',
234 _('Location') => 'LOCATIONS',
235 _('Comments') => 'TEXTBOX',
236 _('Orientation') => 'ORIENTATION',
237 _('Destination') => 'DESTINATION'));
238 $reports->addReport(RC_INVENTORY, 304, _('Inventory &Sales Report'),
239 array( _('Start Date') => 'DATEBEGINM',
240 _('End Date') => 'DATEENDM',
241 _('Inventory Category') => 'CATEGORIES',
242 _('Location') => 'LOCATIONS',
243 _('Customer') => 'CUSTOMERS_NO_FILTER',
244 _('Comments') => 'TEXTBOX',
245 _('Orientation') => 'ORIENTATION',
246 _('Destination') => 'DESTINATION'));
247 $reports->addReport(RC_INVENTORY, 305, _('&GRN Valuation Report'),
248 array( _('Start Date') => 'DATEBEGINM',
249 _('End Date') => 'DATEENDM',
250 _('Comments') => 'TEXTBOX',
251 _('Orientation') => 'ORIENTATION',
252 _('Destination') => 'DESTINATION'));
253 $reports->addReport(RC_INVENTORY, 306, _('Inventory P&urchasing Report'),
254 array( _('Start Date') => 'DATEBEGINM',
255 _('End Date') => 'DATEENDM',
256 _('Inventory Category') => 'CATEGORIES',
257 _('Location') => 'LOCATIONS',
258 _('Supplier') => 'SUPPLIERS_NO_FILTER',
259 _('Items') => 'ITEMS_P',
260 _('Comments') => 'TEXTBOX',
261 _('Orientation') => 'ORIENTATION',
262 _('Destination') => 'DESTINATION'));
264 $reports->addReportClass(_('Manufacturing'), RC_MANUFACTURE);
265 $reports->addReport(RC_MANUFACTURE, 401, _('&Bill of Material Listing'),
266 array( _('From product') => 'ITEMS',
267 _('To product') => 'ITEMS',
268 _('Comments') => 'TEXTBOX',
269 _('Orientation') => 'ORIENTATION',
270 _('Destination') => 'DESTINATION'));
271 $reports->addReport(RC_MANUFACTURE, 409, _('Print &Work Orders'),
272 array( _('From') => 'WORKORDER',
273 _('To') => 'WORKORDER',
274 _('Email Locations') => 'YES_NO',
275 _('Comments') => 'TEXTBOX',
276 _('Orientation') => 'ORIENTATION'));
277 $reports->addReportClass(_('Dimensions'), RC_DIMENSIONS);
280 $reports->addReport(RC_DIMENSIONS, 501, _('Dimension &Summary'),
281 array( _('From Dimension') => 'DIMENSION',
282 _('To Dimension') => 'DIMENSION',
283 _('Show Balance') => 'YES_NO',
284 _('Comments') => 'TEXTBOX',
285 _('Orientation') => 'ORIENTATION',
286 _('Destination') => 'DESTINATION'));
287 //$reports->addReport(_('Dimensions'),502, _('Dimension Details'),
288 //array( _('Dimension'),'DIMENSIONS'),
289 // _('Comments'),'TEXTBOX')));
291 $reports->addReportClass(_('Banking'), RC_BANKING);
292 $reports->addReport(RC_BANKING, 601, _('Bank &Statement'),
293 array( _('Bank Accounts') => 'BANK_ACCOUNTS',
294 _('Start Date') => 'DATEBEGINM',
295 _('End Date') => 'DATEENDM',
296 _('Zero values') => 'YES_NO',
297 _('Comments') => 'TEXTBOX',
298 _('Orientation') => 'ORIENTATION',
299 _('Destination') => 'DESTINATION'));
301 $reports->addReportClass(_('General Ledger'), RC_GL);
302 $reports->addReport(RC_GL, 701, _('Chart of &Accounts'),
303 array( _('Show Balances') => 'YES_NO',
304 _('Comments') => 'TEXTBOX',
305 _('Orientation') => 'ORIENTATION',
306 _('Destination') => 'DESTINATION'));
307 $reports->addReport(RC_GL, 702, _('List of &Journal Entries'),
308 array( _('Start Date') => 'DATEBEGINM',
309 _('End Date') => 'DATEENDM',
310 _('Type') => 'SYS_TYPES',
311 _('Comments') => 'TEXTBOX',
312 _('Orientation') => 'ORIENTATION',
313 _('Destination') => 'DESTINATION'));
314 //$reports->addReport(RC_GL, 703, _('GL Account Group Summary'),
315 // array( _('Comments'),'TEXTBOX')));
319 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
320 array( _('Start Date') => 'DATEBEGINM',
321 _('End Date') => 'DATEENDM',
322 _('From Account') => 'GL_ACCOUNTS',
323 _('To Account') => 'GL_ACCOUNTS',
324 _('Dimension')." 1" => 'DIMENSIONS1',
325 _('Dimension')." 2" => 'DIMENSIONS2',
326 _('Comments') => 'TEXTBOX',
327 _('Orientation') => 'ORIENTATION',
328 _('Destination') => 'DESTINATION'));
329 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
330 array( _('Year') => 'TRANS_YEARS',
331 _('Dimension')." 1" => 'DIMENSIONS1',
332 _('Dimension')." 2" => 'DIMENSIONS2',
333 _('Account Tags') => 'ACCOUNTTAGS',
334 _('Comments') => 'TEXTBOX',
335 _('Orientation') => 'ORIENTATION',
336 _('Destination') => 'DESTINATION'));
337 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
338 array( _('Start Date') => 'DATEBEGIN',
339 _('End Date') => 'DATEENDM',
340 _('Dimension')." 1" => 'DIMENSIONS1',
341 _('Dimension')." 2" => 'DIMENSIONS2',
342 _('Account Tags') => 'ACCOUNTTAGS',
343 _('Decimal values') => 'YES_NO',
344 _('Graphics') => 'GRAPHIC',
345 _('Comments') => 'TEXTBOX',
346 _('Orientation') => 'ORIENTATION',
347 _('Destination') => 'DESTINATION'));
348 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
349 array( _('Start Date') => 'DATEBEGINM',
350 _('End Date') => 'DATEENDM',
351 _('Compare to') => 'COMPARE',
352 _('Dimension')." 1" => 'DIMENSIONS1',
353 _('Dimension')." 2" => 'DIMENSIONS2',
354 _('Account Tags') => 'ACCOUNTTAGS',
355 _('Decimal values') => 'YES_NO',
356 _('Graphics') => 'GRAPHIC',
357 _('Comments') => 'TEXTBOX',
358 _('Orientation') => 'ORIENTATION',
359 _('Destination') => 'DESTINATION'));
360 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
361 array( _('Start Date') => 'DATEBEGINM',
362 _('End Date') => 'DATEENDM',
363 _('Zero values') => 'YES_NO',
364 _('Only balances') => 'YES_NO',
365 _('Dimension')." 1" => 'DIMENSIONS1',
366 _('Dimension')." 2" => 'DIMENSIONS2',
367 _('Comments') => 'TEXTBOX',
368 _('Orientation') => 'ORIENTATION',
369 _('Destination') => 'DESTINATION'));
373 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
374 array( _('Start Date') => 'DATEBEGINM',
375 _('End Date') => 'DATEENDM',
376 _('From Account') => 'GL_ACCOUNTS',
377 _('To Account') => 'GL_ACCOUNTS',
378 _('Dimension') => 'DIMENSIONS1',
379 _('Comments') => 'TEXTBOX',
380 _('Orientation') => 'ORIENTATION',
381 _('Destination') => 'DESTINATION'));
382 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
383 array( _('Year') => 'TRANS_YEARS',
384 _('Dimension') => 'DIMENSIONS1',
385 _('Account Tags') => 'ACCOUNTTAGS',
386 _('Comments') => 'TEXTBOX',
387 _('Orientation') => 'ORIENTATION',
388 _('Destination') => 'DESTINATION'));
389 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
390 array( _('Start Date') => 'DATEBEGIN',
391 _('End Date') => 'DATEENDM',
392 _('Dimension') => 'DIMENSIONS1',
393 _('Account Tags') => 'ACCOUNTTAGS',
394 _('Decimal values') => 'YES_NO',
395 _('Graphics') => 'GRAPHIC',
396 _('Comments') => 'TEXTBOX',
397 _('Orientation') => 'ORIENTATION',
398 _('Destination') => 'DESTINATION'));
399 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
400 array( _('Start Date') => 'DATEBEGINM',
401 _('End Date') => 'DATEENDM',
402 _('Compare to') => 'COMPARE',
403 _('Dimension') => 'DIMENSIONS1',
404 _('Account Tags') => 'ACCOUNTTAGS',
405 _('Decimal values') => 'YES_NO',
406 _('Graphics') => 'GRAPHIC',
407 _('Comments') => 'TEXTBOX',
408 _('Orientation') => 'ORIENTATION',
409 _('Destination') => 'DESTINATION'));
410 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
411 array( _('Start Date') => 'DATEBEGINM',
412 _('End Date') => 'DATEENDM',
413 _('Zero values') => 'YES_NO',
414 _('Only balances') => 'YES_NO',
415 _('Dimension') => 'DIMENSIONS1',
416 _('Comments') => 'TEXTBOX',
417 _('Orientation') => 'ORIENTATION',
418 _('Destination') => 'DESTINATION'));
422 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
423 array( _('Start Date') => 'DATEBEGINM',
424 _('End Date') => 'DATEENDM',
425 _('From Account') => 'GL_ACCOUNTS',
426 _('To Account') => 'GL_ACCOUNTS',
427 _('Comments') => 'TEXTBOX',
428 _('Orientation') => 'ORIENTATION',
429 _('Destination') => 'DESTINATION'));
430 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
431 array( _('Year') => 'TRANS_YEARS',
432 _('Account Tags') => 'ACCOUNTTAGS',
433 _('Comments') => 'TEXTBOX',
434 _('Orientation') => 'ORIENTATION',
435 _('Destination') => 'DESTINATION'));
436 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
437 array( _('Start Date') => 'DATEBEGIN',
438 _('End Date') => 'DATEENDM',
439 _('Account Tags') => 'ACCOUNTTAGS',
440 _('Decimal values') => 'YES_NO',
441 _('Graphics') => 'GRAPHIC',
442 _('Comments') => 'TEXTBOX',
443 _('Orientation') => 'ORIENTATION',
444 _('Destination') => 'DESTINATION'));
445 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
446 array( _('Start Date') => 'DATEBEGINM',
447 _('End Date') => 'DATEENDM',
448 _('Compare to') => 'COMPARE',
449 _('Account Tags') => 'ACCOUNTTAGS',
450 _('Decimal values') => 'YES_NO',
451 _('Graphics') => 'GRAPHIC',
452 _('Comments') => 'TEXTBOX',
453 _('Orientation') => 'ORIENTATION',
454 _('Destination') => 'DESTINATION'));
455 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
456 array( _('Start Date') => 'DATEBEGINM',
457 _('End Date') => 'DATEENDM',
458 _('Zero values') => 'YES_NO',
459 _('Only balances') => 'YES_NO',
460 _('Comments') => 'TEXTBOX',
461 _('Orientation') => 'ORIENTATION',
462 _('Destination') => 'DESTINATION'));
464 $reports->addReport(RC_GL, 709, _('Ta&x Report'),
465 array( _('Start Date') => 'DATEBEGINTAX',
466 _('End Date') => 'DATEENDTAX',
467 _('Summary Only') => 'YES_NO',
468 _('Comments') => 'TEXTBOX',
469 _('Orientation') => 'ORIENTATION',
470 _('Destination') => 'DESTINATION'));
471 $reports->addReport(RC_GL, 710, _('Audit Trail'),
472 array( _('Start Date') => 'DATEBEGINM',
473 _('End Date') => 'DATEENDM',
474 _('Type') => 'SYS_TYPES_ALL',
475 _('User') => 'USERS',
476 _('Comments') => 'TEXTBOX',
477 _('Orientation') => 'ORIENTATION',
478 _('Destination') => 'DESTINATION'));
480 add_custom_reports($reports);
482 echo $reports->getDisplay();