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'));
270 $reports->addReport(RC_INVENTORY, 309,_('Item &Sales Summary Report'),
271 array( _('Start Date') => 'DATEBEGINM',
272 _('End Date') => 'DATEENDM',
273 _('Inventory Category') => 'CATEGORIES',
274 _('Comments') => 'TEXTBOX',
275 _('Orientation') => 'ORIENTATION',
276 _('Destination') => 'DESTINATION'));
278 $reports->addReportClass(_('Manufacturing'), RC_MANUFACTURE);
279 $reports->addReport(RC_MANUFACTURE, 401, _('&Bill of Material Listing'),
280 array( _('From product') => 'ITEMS',
281 _('To product') => 'ITEMS',
282 _('Comments') => 'TEXTBOX',
283 _('Orientation') => 'ORIENTATION',
284 _('Destination') => 'DESTINATION'));
285 $reports->addReport(RC_MANUFACTURE, 409, _('Print &Work Orders'),
286 array( _('From') => 'WORKORDER',
287 _('To') => 'WORKORDER',
288 _('Email Locations') => 'YES_NO',
289 _('Comments') => 'TEXTBOX',
290 _('Orientation') => 'ORIENTATION'));
291 $reports->addReportClass(_('Dimensions'), RC_DIMENSIONS);
294 $reports->addReport(RC_DIMENSIONS, 501, _('Dimension &Summary'),
295 array( _('From Dimension') => 'DIMENSION',
296 _('To Dimension') => 'DIMENSION',
297 _('Show Balance') => 'YES_NO',
298 _('Comments') => 'TEXTBOX',
299 _('Orientation') => 'ORIENTATION',
300 _('Destination') => 'DESTINATION'));
301 //$reports->addReport(_('Dimensions'),502, _('Dimension Details'),
302 //array( _('Dimension'),'DIMENSIONS'),
303 // _('Comments'),'TEXTBOX')));
305 $reports->addReportClass(_('Banking'), RC_BANKING);
306 $reports->addReport(RC_BANKING, 601, _('Bank &Statement'),
307 array( _('Bank Accounts') => 'BANK_ACCOUNTS',
308 _('Start Date') => 'DATEBEGINM',
309 _('End Date') => 'DATEENDM',
310 _('Zero values') => 'YES_NO',
311 _('Comments') => 'TEXTBOX',
312 _('Orientation') => 'ORIENTATION',
313 _('Destination') => 'DESTINATION'));
315 $reports->addReportClass(_('General Ledger'), RC_GL);
316 $reports->addReport(RC_GL, 701, _('Chart of &Accounts'),
317 array( _('Show Balances') => 'YES_NO',
318 _('Comments') => 'TEXTBOX',
319 _('Orientation') => 'ORIENTATION',
320 _('Destination') => 'DESTINATION'));
321 $reports->addReport(RC_GL, 702, _('List of &Journal Entries'),
322 array( _('Start Date') => 'DATEBEGINM',
323 _('End Date') => 'DATEENDM',
324 _('Type') => 'SYS_TYPES',
325 _('Comments') => 'TEXTBOX',
326 _('Orientation') => 'ORIENTATION',
327 _('Destination') => 'DESTINATION'));
328 //$reports->addReport(RC_GL, 703, _('GL Account Group Summary'),
329 // array( _('Comments'),'TEXTBOX')));
333 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
334 array( _('Start Date') => 'DATEBEGINM',
335 _('End Date') => 'DATEENDM',
336 _('From Account') => 'GL_ACCOUNTS',
337 _('To Account') => 'GL_ACCOUNTS',
338 _('Dimension')." 1" => 'DIMENSIONS1',
339 _('Dimension')." 2" => 'DIMENSIONS2',
340 _('Comments') => 'TEXTBOX',
341 _('Orientation') => 'ORIENTATION',
342 _('Destination') => 'DESTINATION'));
343 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
344 array( _('Year') => 'TRANS_YEARS',
345 _('Dimension')." 1" => 'DIMENSIONS1',
346 _('Dimension')." 2" => 'DIMENSIONS2',
347 _('Account Tags') => 'ACCOUNTTAGS',
348 _('Comments') => 'TEXTBOX',
349 _('Orientation') => 'ORIENTATION',
350 _('Destination') => 'DESTINATION'));
351 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
352 array( _('Start Date') => 'DATEBEGIN',
353 _('End Date') => 'DATEENDM',
354 _('Dimension')." 1" => 'DIMENSIONS1',
355 _('Dimension')." 2" => 'DIMENSIONS2',
356 _('Account Tags') => 'ACCOUNTTAGS',
357 _('Decimal values') => 'YES_NO',
358 _('Graphics') => 'GRAPHIC',
359 _('Comments') => 'TEXTBOX',
360 _('Orientation') => 'ORIENTATION',
361 _('Destination') => 'DESTINATION'));
362 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
363 array( _('Start Date') => 'DATEBEGINM',
364 _('End Date') => 'DATEENDM',
365 _('Compare to') => 'COMPARE',
366 _('Dimension')." 1" => 'DIMENSIONS1',
367 _('Dimension')." 2" => 'DIMENSIONS2',
368 _('Account Tags') => 'ACCOUNTTAGS',
369 _('Decimal values') => 'YES_NO',
370 _('Graphics') => 'GRAPHIC',
371 _('Comments') => 'TEXTBOX',
372 _('Orientation') => 'ORIENTATION',
373 _('Destination') => 'DESTINATION'));
374 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
375 array( _('Start Date') => 'DATEBEGINM',
376 _('End Date') => 'DATEENDM',
377 _('Zero values') => 'YES_NO',
378 _('Only balances') => 'YES_NO',
379 _('Dimension')." 1" => 'DIMENSIONS1',
380 _('Dimension')." 2" => 'DIMENSIONS2',
381 _('Comments') => 'TEXTBOX',
382 _('Orientation') => 'ORIENTATION',
383 _('Destination') => 'DESTINATION'));
387 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
388 array( _('Start Date') => 'DATEBEGINM',
389 _('End Date') => 'DATEENDM',
390 _('From Account') => 'GL_ACCOUNTS',
391 _('To Account') => 'GL_ACCOUNTS',
392 _('Dimension') => 'DIMENSIONS1',
393 _('Comments') => 'TEXTBOX',
394 _('Orientation') => 'ORIENTATION',
395 _('Destination') => 'DESTINATION'));
396 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
397 array( _('Year') => 'TRANS_YEARS',
398 _('Dimension') => 'DIMENSIONS1',
399 _('Account Tags') => 'ACCOUNTTAGS',
400 _('Comments') => 'TEXTBOX',
401 _('Orientation') => 'ORIENTATION',
402 _('Destination') => 'DESTINATION'));
403 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
404 array( _('Start Date') => 'DATEBEGIN',
405 _('End Date') => 'DATEENDM',
406 _('Dimension') => 'DIMENSIONS1',
407 _('Account Tags') => 'ACCOUNTTAGS',
408 _('Decimal values') => 'YES_NO',
409 _('Graphics') => 'GRAPHIC',
410 _('Comments') => 'TEXTBOX',
411 _('Orientation') => 'ORIENTATION',
412 _('Destination') => 'DESTINATION'));
413 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
414 array( _('Start Date') => 'DATEBEGINM',
415 _('End Date') => 'DATEENDM',
416 _('Compare to') => 'COMPARE',
417 _('Dimension') => 'DIMENSIONS1',
418 _('Account Tags') => 'ACCOUNTTAGS',
419 _('Decimal values') => 'YES_NO',
420 _('Graphics') => 'GRAPHIC',
421 _('Comments') => 'TEXTBOX',
422 _('Orientation') => 'ORIENTATION',
423 _('Destination') => 'DESTINATION'));
424 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
425 array( _('Start Date') => 'DATEBEGINM',
426 _('End Date') => 'DATEENDM',
427 _('Zero values') => 'YES_NO',
428 _('Only balances') => 'YES_NO',
429 _('Dimension') => 'DIMENSIONS1',
430 _('Comments') => 'TEXTBOX',
431 _('Orientation') => 'ORIENTATION',
432 _('Destination') => 'DESTINATION'));
436 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
437 array( _('Start Date') => 'DATEBEGINM',
438 _('End Date') => 'DATEENDM',
439 _('From Account') => 'GL_ACCOUNTS',
440 _('To Account') => 'GL_ACCOUNTS',
441 _('Comments') => 'TEXTBOX',
442 _('Orientation') => 'ORIENTATION',
443 _('Destination') => 'DESTINATION'));
444 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
445 array( _('Year') => 'TRANS_YEARS',
446 _('Account Tags') => 'ACCOUNTTAGS',
447 _('Comments') => 'TEXTBOX',
448 _('Orientation') => 'ORIENTATION',
449 _('Destination') => 'DESTINATION'));
450 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
451 array( _('Start Date') => 'DATEBEGIN',
452 _('End Date') => 'DATEENDM',
453 _('Account Tags') => 'ACCOUNTTAGS',
454 _('Decimal values') => 'YES_NO',
455 _('Graphics') => 'GRAPHIC',
456 _('Comments') => 'TEXTBOX',
457 _('Orientation') => 'ORIENTATION',
458 _('Destination') => 'DESTINATION'));
459 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
460 array( _('Start Date') => 'DATEBEGINM',
461 _('End Date') => 'DATEENDM',
462 _('Compare to') => 'COMPARE',
463 _('Account Tags') => 'ACCOUNTTAGS',
464 _('Decimal values') => 'YES_NO',
465 _('Graphics') => 'GRAPHIC',
466 _('Comments') => 'TEXTBOX',
467 _('Orientation') => 'ORIENTATION',
468 _('Destination') => 'DESTINATION'));
469 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
470 array( _('Start Date') => 'DATEBEGINM',
471 _('End Date') => 'DATEENDM',
472 _('Zero values') => 'YES_NO',
473 _('Only balances') => 'YES_NO',
474 _('Comments') => 'TEXTBOX',
475 _('Orientation') => 'ORIENTATION',
476 _('Destination') => 'DESTINATION'));
478 $reports->addReport(RC_GL, 709, _('Ta&x Report'),
479 array( _('Start Date') => 'DATEBEGINTAX',
480 _('End Date') => 'DATEENDTAX',
481 _('Summary Only') => 'YES_NO',
482 _('Comments') => 'TEXTBOX',
483 _('Orientation') => 'ORIENTATION',
484 _('Destination') => 'DESTINATION'));
485 $reports->addReport(RC_GL, 710, _('Audit Trail'),
486 array( _('Start Date') => 'DATEBEGINM',
487 _('End Date') => 'DATEENDM',
488 _('Type') => 'SYS_TYPES_ALL',
489 _('User') => 'USERS',
490 _('Comments') => 'TEXTBOX',
491 _('Orientation') => 'ORIENTATION',
492 _('Destination') => 'DESTINATION'));
494 add_custom_reports($reports);
496 echo $reports->getDisplay();