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");
21 if (user_use_date_picker())
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 _('Customer') => 'CUSTOMERS_NO_FILTER',
103 _('Orientation') => 'ORIENTATION'
105 $reports->addReport(RC_CUSTOMER, 113, _('Print &Credit Notes'),
106 array( _('From') => 'CREDIT',
108 _('Currency Filter') => 'CURRENCY',
109 _('email Customers') => 'YES_NO',
110 _('Payment Link') => 'PAYMENT_LINK',
111 _('Comments') => 'TEXTBOX',
112 _('Orientation') => 'ORIENTATION'));
113 $reports->addReport(RC_CUSTOMER, 110, _('Print &Deliveries'),
114 array( _('From') => 'DELIVERY',
115 _('To') => 'DELIVERY',
116 _('email Customers') => 'YES_NO',
117 _('Print as Packing Slip') => 'YES_NO',
118 _('Comments') => 'TEXTBOX',
119 _('Orientation') => 'ORIENTATION'));
120 $reports->addReport(RC_CUSTOMER, 108, _('Print &Statements'),
121 array( _('Customer') => 'CUSTOMERS_NO_FILTER',
122 _('Currency Filter') => 'CURRENCY',
123 _('Show Also Allocated') => 'YES_NO',
124 _('Email Customers') => 'YES_NO',
125 _('Comments') => 'TEXTBOX',
126 _('Orientation') => 'ORIENTATION'));
127 $reports->addReport(RC_CUSTOMER, 109, _('&Print Sales Orders'),
128 array( _('From') => 'ORDERS',
130 _('Currency Filter') => 'CURRENCY',
131 _('Email Customers') => 'YES_NO',
132 _('Print as Quote') => 'YES_NO',
133 _('Comments') => 'TEXTBOX',
134 _('Orientation') => 'ORIENTATION'));
135 $reports->addReport(RC_CUSTOMER, 111, _('&Print Sales Quotations'),
136 array( _('From') => 'QUOTATIONS',
137 _('To') => 'QUOTATIONS',
138 _('Currency Filter') => 'CURRENCY',
139 _('Email Customers') => 'YES_NO',
140 _('Comments') => 'TEXTBOX',
141 _('Orientation') => 'ORIENTATION'));
142 $reports->addReport(RC_CUSTOMER, 112, _('Print Receipts'),
143 array( _('From') => 'RECEIPT',
144 _('To') => 'RECEIPT',
145 _('Currency Filter') => 'CURRENCY',
146 _('Comments') => 'TEXTBOX',
147 _('Orientation') => 'ORIENTATION'));
149 $reports->addReportClass(_('Supplier'), RC_SUPPLIER);
150 $reports->addReport(RC_SUPPLIER, 201, _('Supplier &Balances'),
151 array( _('Start Date') => 'DATEBEGIN',
152 _('End Date') => 'DATEENDM',
153 _('Supplier') => 'SUPPLIERS_NO_FILTER',
154 _('Show Balance') => 'YES_NO',
155 _('Currency Filter') => 'CURRENCY',
156 _('Suppress Zeros') => 'YES_NO',
157 _('Comments') => 'TEXTBOX',
158 _('Orientation') => 'ORIENTATION',
159 _('Destination') => 'DESTINATION'));
160 $reports->addReport(RC_SUPPLIER, 202, _('&Aged Supplier Analyses'),
161 array( _('End Date') => 'DATE',
162 _('Supplier') => 'SUPPLIERS_NO_FILTER',
163 _('Currency Filter') => 'CURRENCY',
164 _('Show Also Allocated') => 'YES_NO',
165 _('Summary Only') => 'YES_NO',
166 _('Suppress Zeros') => 'YES_NO',
167 _('Graphics') => 'GRAPHIC',
168 _('Comments') => 'TEXTBOX',
169 _('Orientation') => 'ORIENTATION',
170 _('Destination') => 'DESTINATION'));
171 $reports->addReport(RC_SUPPLIER, 203, _('&Payment Report'),
172 array( _('End Date') => 'DATE',
173 _('Supplier') => 'SUPPLIERS_NO_FILTER',
174 _('Currency Filter') => 'CURRENCY',
175 _('Suppress Zeros') => 'YES_NO',
176 _('Comments') => 'TEXTBOX',
177 _('Orientation') => 'ORIENTATION',
178 _('Destination') => 'DESTINATION'));
179 $reports->addReport(RC_SUPPLIER, 204, _('Outstanding &GRNs Report'),
180 array( _('Supplier') => 'SUPPLIERS_NO_FILTER',
181 _('Comments') => 'TEXTBOX',
182 _('Orientation') => 'ORIENTATION',
183 _('Destination') => 'DESTINATION'));
184 $reports->addReport(RC_SUPPLIER, 205, _('Supplier &Detail Listing'),
185 array( _('Activity Since') => 'DATEBEGIN',
186 _('Activity Greater Than') => 'TEXT',
187 _('Activity Less Than') => 'TEXT',
188 _('Comments') => 'TEXTBOX',
189 _('Orientation') => 'ORIENTATION',
190 _('Destination') => 'DESTINATION'));
191 $reports->addReport(RC_SUPPLIER, 209, _('Print Purchase &Orders'),
192 array( _('From') => 'PO',
194 _('Currency Filter') => 'CURRENCY',
195 _('Email Suppliers') => 'YES_NO',
196 _('Comments') => 'TEXTBOX',
197 _('Orientation') => 'ORIENTATION'));
198 $reports->addReport(RC_SUPPLIER, 210, _('Print Remi&ttances'),
199 array( _('From') => 'REMITTANCE',
200 _('To') => 'REMITTANCE',
201 _('Currency Filter') => 'CURRENCY',
202 _('Email Suppliers') => 'YES_NO',
203 _('Comments') => 'TEXTBOX',
204 _('Orientation') => 'ORIENTATION'));
206 $reports->addReportClass(_('Inventory'), RC_INVENTORY);
207 $reports->addReport(RC_INVENTORY, 301, _('Inventory &Valuation Report'),
208 array( _('End Date') => 'DATE',
209 _('Inventory Category') => 'CATEGORIES',
210 _('Location') => 'LOCATIONS',
211 _('Summary Only') => 'YES_NO',
212 _('Comments') => 'TEXTBOX',
213 _('Orientation') => 'ORIENTATION',
214 _('Destination') => 'DESTINATION'));
215 $reports->addReport(RC_INVENTORY, 302, _('Inventory &Planning Report'),
216 array( _('Inventory Category') => 'CATEGORIES',
217 _('Location') => 'LOCATIONS',
218 _('Comments') => 'TEXTBOX',
219 _('Orientation') => 'ORIENTATION',
220 _('Destination') => 'DESTINATION'));
221 $reports->addReport(RC_INVENTORY, 303, _('Stock &Check Sheets'),
222 array( _('Inventory Category') => 'CATEGORIES',
223 _('Location') => 'LOCATIONS',
224 _('Show Pictures') => 'YES_NO',
225 _('Inventory Column') => 'YES_NO',
226 _('Show Shortage') => 'YES_NO',
227 _('Suppress Zeros') => 'YES_NO',
228 _('Item Like') => 'TEXT',
229 _('Comments') => 'TEXTBOX',
230 _('Orientation') => 'ORIENTATION',
231 _('Destination') => 'DESTINATION'));
232 $reports->addReport(RC_INVENTORY, 304, _('Inventory &Sales Report'),
233 array( _('Start Date') => 'DATEBEGINM',
234 _('End Date') => 'DATEENDM',
235 _('Inventory Category') => 'CATEGORIES',
236 _('Location') => 'LOCATIONS',
237 _('Customer') => 'CUSTOMERS_NO_FILTER',
238 _('Show Service Items') => 'YES_NO',
239 _('Comments') => 'TEXTBOX',
240 _('Orientation') => 'ORIENTATION',
241 _('Destination') => 'DESTINATION'));
242 $reports->addReport(RC_INVENTORY, 305, _('&GRN Valuation Report'),
243 array( _('Start Date') => 'DATEBEGINM',
244 _('End Date') => 'DATEENDM',
245 _('Comments') => 'TEXTBOX',
246 _('Orientation') => 'ORIENTATION',
247 _('Destination') => 'DESTINATION'));
248 $reports->addReport(RC_INVENTORY, 306, _('Inventory P&urchasing Report'),
249 array( _('Start Date') => 'DATEBEGINM',
250 _('End Date') => 'DATEENDM',
251 _('Inventory Category') => 'CATEGORIES',
252 _('Location') => 'LOCATIONS',
253 _('Supplier') => 'SUPPLIERS_NO_FILTER',
254 _('Items') => 'ITEMS_P',
255 _('Comments') => 'TEXTBOX',
256 _('Orientation') => 'ORIENTATION',
257 _('Destination') => 'DESTINATION'));
258 $reports->addReport(RC_INVENTORY, 307, _('Inventory &Movement Report'),
259 array( _('Start Date') => 'DATEBEGINM',
260 _('End Date') => 'DATEENDM',
261 _('Inventory Category') => 'CATEGORIES',
262 _('Location') => 'LOCATIONS',
263 _('Comments') => 'TEXTBOX',
264 _('Orientation') => 'ORIENTATION',
265 _('Destination') => 'DESTINATION'));
266 $reports->addReport(RC_INVENTORY, 308, _('C&osted Inventory Movement Report'),
267 array( _('Start Date') => 'DATEBEGINM',
268 _('End Date') => 'DATEENDM',
269 _('Inventory Category') => 'CATEGORIES',
270 _('Location') => 'LOCATIONS',
271 _('Comments') => 'TEXTBOX',
272 _('Orientation') => 'ORIENTATION',
273 _('Destination') => 'DESTINATION'));
274 $reports->addReport(RC_INVENTORY, 309,_('Item &Sales Summary Report'),
275 array( _('Start Date') => 'DATEBEGINM',
276 _('End Date') => 'DATEENDM',
277 _('Inventory Category') => 'CATEGORIES',
278 _('Comments') => 'TEXTBOX',
279 _('Orientation') => 'ORIENTATION',
280 _('Destination') => 'DESTINATION'));
282 $reports->addReportClass(_('Manufacturing'), RC_MANUFACTURE);
283 $reports->addReport(RC_MANUFACTURE, 401, _('&Bill of Material Listing'),
284 array( _('From product') => 'ITEMS',
285 _('To product') => 'ITEMS',
286 _('Comments') => 'TEXTBOX',
287 _('Orientation') => 'ORIENTATION',
288 _('Destination') => 'DESTINATION'));
289 $reports->addReport(RC_MANUFACTURE, 402, _('Work Order &Listing'),
290 array( _('Items') => 'ITEMS_ALL',
291 _('Location') => 'LOCATIONS',
292 _('Outstanding Only') => 'YES_NO',
293 _('Comments') => 'TEXTBOX',
294 _('Orientation') => 'ORIENTATION',
295 _('Destination') => 'DESTINATION'));
296 $reports->addReport(RC_MANUFACTURE, 409, _('Print &Work Orders'),
297 array( _('From') => 'WORKORDER',
298 _('To') => 'WORKORDER',
299 _('Email Locations') => 'YES_NO',
300 _('Comments') => 'TEXTBOX',
301 _('Orientation') => 'ORIENTATION'));
302 $reports->addReportClass(_('Dimensions'), RC_DIMENSIONS);
305 $reports->addReport(RC_DIMENSIONS, 501, _('Dimension &Summary'),
306 array( _('From Dimension') => 'DIMENSION',
307 _('To Dimension') => 'DIMENSION',
308 _('Show Balance') => 'YES_NO',
309 _('Comments') => 'TEXTBOX',
310 _('Orientation') => 'ORIENTATION',
311 _('Destination') => 'DESTINATION'));
313 $reports->addReportClass(_('Banking'), RC_BANKING);
314 $reports->addReport(RC_BANKING, 601, _('Bank &Statement'),
315 array( _('Bank Accounts') => 'BANK_ACCOUNTS',
316 _('Start Date') => 'DATEBEGINM',
317 _('End Date') => 'DATEENDM',
318 _('Zero values') => 'YES_NO',
319 _('Comments') => 'TEXTBOX',
320 _('Orientation') => 'ORIENTATION',
321 _('Destination') => 'DESTINATION'));
322 $reports->addReport(RC_BANKING, 602, _('Bank Statement w/ &Reconcile'),
323 array( _('Bank Accounts') => 'BANK_ACCOUNTS',
324 _('Start Date') => 'DATEBEGINM',
325 _('End Date') => 'DATEENDM',
326 _('Comments') => 'TEXTBOX',
327 _('Destination') => 'DESTINATION'));
329 $reports->addReportClass(_('General Ledger'), RC_GL);
330 $reports->addReport(RC_GL, 701, _('Chart of &Accounts'),
331 array( _('Show Balances') => 'YES_NO',
332 _('Comments') => 'TEXTBOX',
333 _('Orientation') => 'ORIENTATION',
334 _('Destination') => 'DESTINATION'));
335 $reports->addReport(RC_GL, 702, _('List of &Journal Entries'),
336 array( _('Start Date') => 'DATEBEGINM',
337 _('End Date') => 'DATEENDM',
338 _('Type') => 'SYS_TYPES',
339 _('Comments') => 'TEXTBOX',
340 _('Orientation') => 'ORIENTATION',
341 _('Destination') => 'DESTINATION'));
345 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
346 array( _('Start Date') => 'DATEBEGINM',
347 _('End Date') => 'DATEENDM',
348 _('From Account') => 'GL_ACCOUNTS',
349 _('To Account') => 'GL_ACCOUNTS',
350 _('Dimension')." 1" => 'DIMENSIONS1',
351 _('Dimension')." 2" => 'DIMENSIONS2',
352 _('Comments') => 'TEXTBOX',
353 _('Orientation') => 'ORIENTATION',
354 _('Destination') => 'DESTINATION'));
355 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
356 array( _('Year') => 'TRANS_YEARS',
357 _('Dimension')." 1" => 'DIMENSIONS1',
358 _('Dimension')." 2" => 'DIMENSIONS2',
359 _('Account Tags') => 'ACCOUNTTAGS',
360 _('Comments') => 'TEXTBOX',
361 _('Orientation') => 'ORIENTATION',
362 _('Destination') => 'DESTINATION'));
363 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
364 array( _('Start Date') => 'DATEBEGIN',
365 _('End Date') => 'DATEENDM',
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, 707, _('&Profit and Loss Statement'),
375 array( _('Start Date') => 'DATEBEGINM',
376 _('End Date') => 'DATEENDM',
377 _('Compare to') => 'COMPARE',
378 _('Dimension')." 1" => 'DIMENSIONS1',
379 _('Dimension')." 2" => 'DIMENSIONS2',
380 _('Account Tags') => 'ACCOUNTTAGS',
381 _('Decimal values') => 'YES_NO',
382 _('Graphics') => 'GRAPHIC',
383 _('Comments') => 'TEXTBOX',
384 _('Orientation') => 'ORIENTATION',
385 _('Destination') => 'DESTINATION'));
386 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
387 array( _('Start Date') => 'DATEBEGINM',
388 _('End Date') => 'DATEENDM',
389 _('Zero values') => 'YES_NO',
390 _('Only balances') => 'YES_NO',
391 _('Dimension')." 1" => 'DIMENSIONS1',
392 _('Dimension')." 2" => 'DIMENSIONS2',
393 _('Comments') => 'TEXTBOX',
394 _('Orientation') => 'ORIENTATION',
395 _('Destination') => 'DESTINATION'));
399 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
400 array( _('Start Date') => 'DATEBEGINM',
401 _('End Date') => 'DATEENDM',
402 _('From Account') => 'GL_ACCOUNTS',
403 _('To Account') => 'GL_ACCOUNTS',
404 _('Dimension') => 'DIMENSIONS1',
405 _('Comments') => 'TEXTBOX',
406 _('Orientation') => 'ORIENTATION',
407 _('Destination') => 'DESTINATION'));
408 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
409 array( _('Year') => 'TRANS_YEARS',
410 _('Dimension') => 'DIMENSIONS1',
411 _('Account Tags') => 'ACCOUNTTAGS',
412 _('Comments') => 'TEXTBOX',
413 _('Orientation') => 'ORIENTATION',
414 _('Destination') => 'DESTINATION'));
415 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
416 array( _('Start Date') => 'DATEBEGIN',
417 _('End Date') => 'DATEENDM',
418 _('Dimension') => 'DIMENSIONS1',
419 _('Account Tags') => 'ACCOUNTTAGS',
420 _('Decimal values') => 'YES_NO',
421 _('Graphics') => 'GRAPHIC',
422 _('Comments') => 'TEXTBOX',
423 _('Orientation') => 'ORIENTATION',
424 _('Destination') => 'DESTINATION'));
425 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
426 array( _('Start Date') => 'DATEBEGINM',
427 _('End Date') => 'DATEENDM',
428 _('Compare to') => 'COMPARE',
429 _('Dimension') => 'DIMENSIONS1',
430 _('Account Tags') => 'ACCOUNTTAGS',
431 _('Decimal values') => 'YES_NO',
432 _('Graphics') => 'GRAPHIC',
433 _('Comments') => 'TEXTBOX',
434 _('Orientation') => 'ORIENTATION',
435 _('Destination') => 'DESTINATION'));
436 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
437 array( _('Start Date') => 'DATEBEGINM',
438 _('End Date') => 'DATEENDM',
439 _('Zero values') => 'YES_NO',
440 _('Only balances') => 'YES_NO',
441 _('Dimension') => 'DIMENSIONS1',
442 _('Comments') => 'TEXTBOX',
443 _('Orientation') => 'ORIENTATION',
444 _('Destination') => 'DESTINATION'));
448 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
449 array( _('Start Date') => 'DATEBEGINM',
450 _('End Date') => 'DATEENDM',
451 _('From Account') => 'GL_ACCOUNTS',
452 _('To Account') => 'GL_ACCOUNTS',
453 _('Comments') => 'TEXTBOX',
454 _('Orientation') => 'ORIENTATION',
455 _('Destination') => 'DESTINATION'));
456 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
457 array( _('Year') => 'TRANS_YEARS',
458 _('Account Tags') => 'ACCOUNTTAGS',
459 _('Comments') => 'TEXTBOX',
460 _('Orientation') => 'ORIENTATION',
461 _('Destination') => 'DESTINATION'));
462 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
463 array( _('Start Date') => 'DATEBEGIN',
464 _('End Date') => 'DATEENDM',
465 _('Account Tags') => 'ACCOUNTTAGS',
466 _('Decimal values') => 'YES_NO',
467 _('Graphics') => 'GRAPHIC',
468 _('Comments') => 'TEXTBOX',
469 _('Orientation') => 'ORIENTATION',
470 _('Destination') => 'DESTINATION'));
471 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
472 array( _('Start Date') => 'DATEBEGINM',
473 _('End Date') => 'DATEENDM',
474 _('Compare to') => 'COMPARE',
475 _('Account Tags') => 'ACCOUNTTAGS',
476 _('Decimal values') => 'YES_NO',
477 _('Graphics') => 'GRAPHIC',
478 _('Comments') => 'TEXTBOX',
479 _('Orientation') => 'ORIENTATION',
480 _('Destination') => 'DESTINATION'));
481 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
482 array( _('Start Date') => 'DATEBEGINM',
483 _('End Date') => 'DATEENDM',
484 _('Zero values') => 'YES_NO',
485 _('Only balances') => 'YES_NO',
486 _('Comments') => 'TEXTBOX',
487 _('Orientation') => 'ORIENTATION',
488 _('Destination') => 'DESTINATION'));
490 $reports->addReport(RC_GL, 709, _('Ta&x Report'),
491 array( _('Start Date') => 'DATEBEGINTAX',
492 _('End Date') => 'DATEENDTAX',
493 _('Summary Only') => 'YES_NO',
494 _('Comments') => 'TEXTBOX',
495 _('Orientation') => 'ORIENTATION',
496 _('Destination') => 'DESTINATION'));
497 $reports->addReport(RC_GL, 710, _('Audit Trail'),
498 array( _('Start Date') => 'DATEBEGINM',
499 _('End Date') => 'DATEENDM',
500 _('Type') => 'SYS_TYPES_ALL',
501 _('User') => 'USERS',
502 _('Comments') => 'TEXTBOX',
503 _('Orientation') => 'ORIENTATION',
504 _('Destination') => 'DESTINATION'));
506 add_custom_reports($reports);
508 echo $reports->getDisplay();