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);
205 $reports->addReport(RC_INVENTORY, 301, _('Inventory &Valuation Report'),
206 array( _('End Date') => 'DATE',
207 _('Inventory Category') => 'CATEGORIES',
208 _('Location') => 'LOCATIONS',
209 _('Summary Only') => 'YES_NO',
210 _('Comments') => 'TEXTBOX',
211 _('Orientation') => 'ORIENTATION',
212 _('Destination') => 'DESTINATION'));
213 $reports->addReport(RC_INVENTORY, 302, _('Inventory &Planning Report'),
214 array( _('Inventory Category') => 'CATEGORIES',
215 _('Location') => 'LOCATIONS',
216 _('Comments') => 'TEXTBOX',
217 _('Orientation') => 'ORIENTATION',
218 _('Destination') => 'DESTINATION'));
219 $reports->addReport(RC_INVENTORY, 303, _('Stock &Check Sheets'),
220 array( _('Inventory Category') => 'CATEGORIES',
221 _('Location') => 'LOCATIONS',
222 _('Show Pictures') => 'YES_NO',
223 _('Inventory Column') => 'YES_NO',
224 _('Show Shortage') => 'YES_NO',
225 _('Suppress Zeros') => 'YES_NO',
226 _('Comments') => 'TEXTBOX',
227 _('Orientation') => 'ORIENTATION',
228 _('Destination') => 'DESTINATION'));
229 $reports->addReport(RC_INVENTORY, 304, _('Inventory &Sales Report'),
230 array( _('Start Date') => 'DATEBEGINM',
231 _('End Date') => 'DATEENDM',
232 _('Inventory Category') => 'CATEGORIES',
233 _('Location') => 'LOCATIONS',
234 _('Customer') => 'CUSTOMERS_NO_FILTER',
235 _('Comments') => 'TEXTBOX',
236 _('Orientation') => 'ORIENTATION',
237 _('Destination') => 'DESTINATION'));
238 $reports->addReport(RC_INVENTORY, 305, _('&GRN Valuation Report'),
239 array( _('Start Date') => 'DATEBEGINM',
240 _('End Date') => 'DATEENDM',
241 _('Comments') => 'TEXTBOX',
242 _('Orientation') => 'ORIENTATION',
243 _('Destination') => 'DESTINATION'));
244 $reports->addReport(RC_INVENTORY, 306, _('Inventory P&urchasing Report'),
245 array( _('Start Date') => 'DATEBEGINM',
246 _('End Date') => 'DATEENDM',
247 _('Inventory Category') => 'CATEGORIES',
248 _('Location') => 'LOCATIONS',
249 _('Supplier') => 'SUPPLIERS_NO_FILTER',
250 _('Items') => 'ITEMS_P',
251 _('Comments') => 'TEXTBOX',
252 _('Orientation') => 'ORIENTATION',
253 _('Destination') => 'DESTINATION'));
254 $reports->addReport(RC_INVENTORY, 307, _('Inventory &Movement Report'),
255 array( _('Start Date') => 'DATEBEGINM',
256 _('End Date') => 'DATEENDM',
257 _('Inventory Category') => 'CATEGORIES',
258 _('Location') => 'LOCATIONS',
259 _('Comments') => 'TEXTBOX',
260 _('Orientation') => 'ORIENTATION',
261 _('Destination') => 'DESTINATION'));
262 $reports->addReport(RC_INVENTORY, 308, _('C&osted Inventory Movement Report'),
263 array( _('Start Date') => 'DATEBEGINM',
264 _('End Date') => 'DATEENDM',
265 _('Inventory Category') => 'CATEGORIES',
266 _('Location') => 'LOCATIONS',
267 _('Comments') => 'TEXTBOX',
268 _('Orientation') => 'ORIENTATION',
269 _('Destination') => 'DESTINATION'));
271 $reports->addReportClass(_('Manufacturing'), RC_MANUFACTURE);
272 $reports->addReport(RC_MANUFACTURE, 401, _('&Bill of Material Listing'),
273 array( _('From product') => 'ITEMS',
274 _('To product') => 'ITEMS',
275 _('Comments') => 'TEXTBOX',
276 _('Orientation') => 'ORIENTATION',
277 _('Destination') => 'DESTINATION'));
278 $reports->addReport(RC_MANUFACTURE, 409, _('Print &Work Orders'),
279 array( _('From') => 'WORKORDER',
280 _('To') => 'WORKORDER',
281 _('Email Locations') => 'YES_NO',
282 _('Comments') => 'TEXTBOX',
283 _('Orientation') => 'ORIENTATION'));
284 $reports->addReportClass(_('Dimensions'), RC_DIMENSIONS);
287 $reports->addReport(RC_DIMENSIONS, 501, _('Dimension &Summary'),
288 array( _('From Dimension') => 'DIMENSION',
289 _('To Dimension') => 'DIMENSION',
290 _('Show Balance') => 'YES_NO',
291 _('Comments') => 'TEXTBOX',
292 _('Orientation') => 'ORIENTATION',
293 _('Destination') => 'DESTINATION'));
294 //$reports->addReport(_('Dimensions'),502, _('Dimension Details'),
295 //array( _('Dimension'),'DIMENSIONS'),
296 // _('Comments'),'TEXTBOX')));
298 $reports->addReportClass(_('Banking'), RC_BANKING);
299 $reports->addReport(RC_BANKING, 601, _('Bank &Statement'),
300 array( _('Bank Accounts') => 'BANK_ACCOUNTS',
301 _('Start Date') => 'DATEBEGINM',
302 _('End Date') => 'DATEENDM',
303 _('Zero values') => 'YES_NO',
304 _('Comments') => 'TEXTBOX',
305 _('Orientation') => 'ORIENTATION',
306 _('Destination') => 'DESTINATION'));
308 $reports->addReportClass(_('General Ledger'), RC_GL);
309 $reports->addReport(RC_GL, 701, _('Chart of &Accounts'),
310 array( _('Show Balances') => 'YES_NO',
311 _('Comments') => 'TEXTBOX',
312 _('Orientation') => 'ORIENTATION',
313 _('Destination') => 'DESTINATION'));
314 $reports->addReport(RC_GL, 702, _('List of &Journal Entries'),
315 array( _('Start Date') => 'DATEBEGINM',
316 _('End Date') => 'DATEENDM',
317 _('Type') => 'SYS_TYPES',
318 _('Comments') => 'TEXTBOX',
319 _('Orientation') => 'ORIENTATION',
320 _('Destination') => 'DESTINATION'));
321 //$reports->addReport(RC_GL, 703, _('GL Account Group Summary'),
322 // array( _('Comments'),'TEXTBOX')));
326 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
327 array( _('Start Date') => 'DATEBEGINM',
328 _('End Date') => 'DATEENDM',
329 _('From Account') => 'GL_ACCOUNTS',
330 _('To Account') => 'GL_ACCOUNTS',
331 _('Dimension')." 1" => 'DIMENSIONS1',
332 _('Dimension')." 2" => 'DIMENSIONS2',
333 _('Comments') => 'TEXTBOX',
334 _('Orientation') => 'ORIENTATION',
335 _('Destination') => 'DESTINATION'));
336 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
337 array( _('Year') => 'TRANS_YEARS',
338 _('Dimension')." 1" => 'DIMENSIONS1',
339 _('Dimension')." 2" => 'DIMENSIONS2',
340 _('Account Tags') => 'ACCOUNTTAGS',
341 _('Comments') => 'TEXTBOX',
342 _('Orientation') => 'ORIENTATION',
343 _('Destination') => 'DESTINATION'));
344 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
345 array( _('Start Date') => 'DATEBEGIN',
346 _('End Date') => 'DATEENDM',
347 _('Dimension')." 1" => 'DIMENSIONS1',
348 _('Dimension')." 2" => 'DIMENSIONS2',
349 _('Account Tags') => 'ACCOUNTTAGS',
350 _('Decimal values') => 'YES_NO',
351 _('Graphics') => 'GRAPHIC',
352 _('Comments') => 'TEXTBOX',
353 _('Orientation') => 'ORIENTATION',
354 _('Destination') => 'DESTINATION'));
355 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
356 array( _('Start Date') => 'DATEBEGINM',
357 _('End Date') => 'DATEENDM',
358 _('Compare to') => 'COMPARE',
359 _('Dimension')." 1" => 'DIMENSIONS1',
360 _('Dimension')." 2" => 'DIMENSIONS2',
361 _('Account Tags') => 'ACCOUNTTAGS',
362 _('Decimal values') => 'YES_NO',
363 _('Graphics') => 'GRAPHIC',
364 _('Comments') => 'TEXTBOX',
365 _('Orientation') => 'ORIENTATION',
366 _('Destination') => 'DESTINATION'));
367 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
368 array( _('Start Date') => 'DATEBEGINM',
369 _('End Date') => 'DATEENDM',
370 _('Zero values') => 'YES_NO',
371 _('Only balances') => 'YES_NO',
372 _('Dimension')." 1" => 'DIMENSIONS1',
373 _('Dimension')." 2" => 'DIMENSIONS2',
374 _('Comments') => 'TEXTBOX',
375 _('Orientation') => 'ORIENTATION',
376 _('Destination') => 'DESTINATION'));
380 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
381 array( _('Start Date') => 'DATEBEGINM',
382 _('End Date') => 'DATEENDM',
383 _('From Account') => 'GL_ACCOUNTS',
384 _('To Account') => 'GL_ACCOUNTS',
385 _('Dimension') => 'DIMENSIONS1',
386 _('Comments') => 'TEXTBOX',
387 _('Orientation') => 'ORIENTATION',
388 _('Destination') => 'DESTINATION'));
389 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
390 array( _('Year') => 'TRANS_YEARS',
391 _('Dimension') => 'DIMENSIONS1',
392 _('Account Tags') => 'ACCOUNTTAGS',
393 _('Comments') => 'TEXTBOX',
394 _('Orientation') => 'ORIENTATION',
395 _('Destination') => 'DESTINATION'));
396 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
397 array( _('Start Date') => 'DATEBEGIN',
398 _('End Date') => 'DATEENDM',
399 _('Dimension') => 'DIMENSIONS1',
400 _('Account Tags') => 'ACCOUNTTAGS',
401 _('Decimal values') => 'YES_NO',
402 _('Graphics') => 'GRAPHIC',
403 _('Comments') => 'TEXTBOX',
404 _('Orientation') => 'ORIENTATION',
405 _('Destination') => 'DESTINATION'));
406 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
407 array( _('Start Date') => 'DATEBEGINM',
408 _('End Date') => 'DATEENDM',
409 _('Compare to') => 'COMPARE',
410 _('Dimension') => 'DIMENSIONS1',
411 _('Account Tags') => 'ACCOUNTTAGS',
412 _('Decimal values') => 'YES_NO',
413 _('Graphics') => 'GRAPHIC',
414 _('Comments') => 'TEXTBOX',
415 _('Orientation') => 'ORIENTATION',
416 _('Destination') => 'DESTINATION'));
417 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
418 array( _('Start Date') => 'DATEBEGINM',
419 _('End Date') => 'DATEENDM',
420 _('Zero values') => 'YES_NO',
421 _('Only balances') => 'YES_NO',
422 _('Dimension') => 'DIMENSIONS1',
423 _('Comments') => 'TEXTBOX',
424 _('Orientation') => 'ORIENTATION',
425 _('Destination') => 'DESTINATION'));
429 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
430 array( _('Start Date') => 'DATEBEGINM',
431 _('End Date') => 'DATEENDM',
432 _('From Account') => 'GL_ACCOUNTS',
433 _('To Account') => 'GL_ACCOUNTS',
434 _('Comments') => 'TEXTBOX',
435 _('Orientation') => 'ORIENTATION',
436 _('Destination') => 'DESTINATION'));
437 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
438 array( _('Year') => 'TRANS_YEARS',
439 _('Account Tags') => 'ACCOUNTTAGS',
440 _('Comments') => 'TEXTBOX',
441 _('Orientation') => 'ORIENTATION',
442 _('Destination') => 'DESTINATION'));
443 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
444 array( _('Start Date') => 'DATEBEGIN',
445 _('End Date') => 'DATEENDM',
446 _('Account Tags') => 'ACCOUNTTAGS',
447 _('Decimal values') => 'YES_NO',
448 _('Graphics') => 'GRAPHIC',
449 _('Comments') => 'TEXTBOX',
450 _('Orientation') => 'ORIENTATION',
451 _('Destination') => 'DESTINATION'));
452 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
453 array( _('Start Date') => 'DATEBEGINM',
454 _('End Date') => 'DATEENDM',
455 _('Compare to') => 'COMPARE',
456 _('Account Tags') => 'ACCOUNTTAGS',
457 _('Decimal values') => 'YES_NO',
458 _('Graphics') => 'GRAPHIC',
459 _('Comments') => 'TEXTBOX',
460 _('Orientation') => 'ORIENTATION',
461 _('Destination') => 'DESTINATION'));
462 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
463 array( _('Start Date') => 'DATEBEGINM',
464 _('End Date') => 'DATEENDM',
465 _('Zero values') => 'YES_NO',
466 _('Only balances') => 'YES_NO',
467 _('Comments') => 'TEXTBOX',
468 _('Orientation') => 'ORIENTATION',
469 _('Destination') => 'DESTINATION'));
471 $reports->addReport(RC_GL, 709, _('Ta&x Report'),
472 array( _('Start Date') => 'DATEBEGINTAX',
473 _('End Date') => 'DATEENDTAX',
474 _('Summary Only') => 'YES_NO',
475 _('Comments') => 'TEXTBOX',
476 _('Orientation') => 'ORIENTATION',
477 _('Destination') => 'DESTINATION'));
478 $reports->addReport(RC_GL, 710, _('Audit Trail'),
479 array( _('Start Date') => 'DATEBEGINM',
480 _('End Date') => 'DATEENDM',
481 _('Type') => 'SYS_TYPES_ALL',
482 _('User') => 'USERS',
483 _('Comments') => 'TEXTBOX',
484 _('Orientation') => 'ORIENTATION',
485 _('Destination') => 'DESTINATION'));
487 add_custom_reports($reports);
489 echo $reports->getDisplay();