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 ($SysPrefs->use_popup_windows && $SysPrefs->use_popup_search)
22 $js .= get_js_open_window(900, 500);
23 if (user_use_date_picker())
24 $js .= get_js_date_picker();
26 add_js_file('reports.js');
28 page(_($help_context = "Reports and Analysis"), false, false, "", $js);
30 $reports = new BoxReports;
32 $dim = get_company_pref('use_dimension');
34 $reports->addReportClass(_('Customer'), RC_CUSTOMER);
35 $reports->addReport(RC_CUSTOMER, 101, _('Customer &Balances'),
36 array( _('Start Date') => 'DATEBEGIN',
37 _('End Date') => 'DATEENDM',
38 _('Customer') => 'CUSTOMERS_NO_FILTER',
39 _('Show Balance') => 'YES_NO',
40 _('Currency Filter') => 'CURRENCY',
41 _('Suppress Zeros') => 'YES_NO',
42 _('Comments') => 'TEXTBOX',
43 _('Orientation') => 'ORIENTATION',
44 _('Destination') => 'DESTINATION'));
45 $reports->addReport(RC_CUSTOMER, 102, _('&Aged Customer Analysis'),
46 array( _('End Date') => 'DATE',
47 _('Customer') => 'CUSTOMERS_NO_FILTER',
48 _('Currency Filter') => 'CURRENCY',
49 _('Show Also Allocated') => 'YES_NO',
50 _('Summary Only') => 'YES_NO',
51 _('Suppress Zeros') => 'YES_NO',
52 _('Graphics') => 'GRAPHIC',
53 _('Comments') => 'TEXTBOX',
54 _('Orientation') => 'ORIENTATION',
55 _('Destination') => 'DESTINATION'));
56 $reports->addReport(RC_CUSTOMER, 103, _('Customer &Detail Listing'),
57 array( _('Activity Since') => 'DATEBEGIN',
58 _('Sales Areas') => 'AREAS',
59 _('Sales Folk') => 'SALESMEN',
60 _('Activity Greater Than') => 'TEXT',
61 _('Activity Less Than') => 'TEXT',
62 _('Comments') => 'TEXTBOX',
63 _('Orientation') => 'ORIENTATION',
64 _('Destination') => 'DESTINATION'));
65 $reports->addReport(RC_CUSTOMER, 114, _('Sales &Summary Report'),
66 array( _('Start Date') => 'DATEBEGINTAX',
67 _('End Date') => 'DATEENDTAX',
68 _('Tax Id Only') => 'YES_NO',
69 _('Comments') => 'TEXTBOX',
70 _('Orientation') => 'ORIENTATION',
71 _('Destination') => 'DESTINATION'));
72 $reports->addReport(RC_CUSTOMER, 104, _('&Price Listing'),
73 array( _('Currency Filter') => 'CURRENCY',
74 _('Inventory Category') => 'CATEGORIES',
75 _('Sales Types') => 'SALESTYPES',
76 _('Show Pictures') => 'YES_NO',
77 _('Show GP %') => 'YES_NO',
78 _('Comments') => 'TEXTBOX',
79 _('Orientation') => 'ORIENTATION',
80 _('Destination') => 'DESTINATION'));
81 $reports->addReport(RC_CUSTOMER, 105, _('&Order Status Listing'),
82 array( _('Start Date') => 'DATEBEGINM',
83 _('End Date') => 'DATEENDM',
84 _('Inventory Category') => 'CATEGORIES',
85 _('Stock Location') => 'LOCATIONS',
86 _('Back Orders Only') => 'YES_NO',
87 _('Comments') => 'TEXTBOX',
88 _('Orientation') => 'ORIENTATION',
89 _('Destination') => 'DESTINATION'));
90 $reports->addReport(RC_CUSTOMER, 106, _('&Salesman Listing'),
91 array( _('Start Date') => 'DATEBEGINM',
92 _('End Date') => 'DATEENDM',
93 _('Summary Only') => 'YES_NO',
94 _('Comments') => 'TEXTBOX',
95 _('Orientation') => 'ORIENTATION',
96 _('Destination') => 'DESTINATION'));
97 $reports->addReport(RC_CUSTOMER, 107, _('Print &Invoices'),
98 array( _('From') => 'INVOICE',
100 _('Currency Filter') => 'CURRENCY',
101 _('email Customers') => 'YES_NO',
102 _('Payment Link') => 'PAYMENT_LINK',
103 _('Comments') => 'TEXTBOX',
104 _('Customer') => 'CUSTOMERS_NO_FILTER',
105 _('Orientation') => 'ORIENTATION'
107 $reports->addReport(RC_CUSTOMER, 113, _('Print &Credit Notes'),
108 array( _('From') => 'CREDIT',
110 _('Currency Filter') => 'CURRENCY',
111 _('email Customers') => 'YES_NO',
112 _('Payment Link') => 'PAYMENT_LINK',
113 _('Comments') => 'TEXTBOX',
114 _('Orientation') => 'ORIENTATION'));
115 $reports->addReport(RC_CUSTOMER, 110, _('Print &Deliveries'),
116 array( _('From') => 'DELIVERY',
117 _('To') => 'DELIVERY',
118 _('email Customers') => 'YES_NO',
119 _('Print as Packing Slip') => 'YES_NO',
120 _('Comments') => 'TEXTBOX',
121 _('Orientation') => 'ORIENTATION'));
122 $reports->addReport(RC_CUSTOMER, 108, _('Print &Statements'),
123 array( _('Customer') => 'CUSTOMERS_NO_FILTER',
124 _('Currency Filter') => 'CURRENCY',
125 _('Show Also Allocated') => 'YES_NO',
126 _('Email Customers') => 'YES_NO',
127 _('Comments') => 'TEXTBOX',
128 _('Orientation') => 'ORIENTATION'));
129 $reports->addReport(RC_CUSTOMER, 109, _('&Print Sales Orders'),
130 array( _('From') => 'ORDERS',
132 _('Currency Filter') => 'CURRENCY',
133 _('Email Customers') => 'YES_NO',
134 _('Print as Quote') => 'YES_NO',
135 _('Comments') => 'TEXTBOX',
136 _('Orientation') => 'ORIENTATION'));
137 $reports->addReport(RC_CUSTOMER, 111, _('&Print Sales Quotations'),
138 array( _('From') => 'QUOTATIONS',
139 _('To') => 'QUOTATIONS',
140 _('Currency Filter') => 'CURRENCY',
141 _('Email Customers') => 'YES_NO',
142 _('Comments') => 'TEXTBOX',
143 _('Orientation') => 'ORIENTATION'));
144 $reports->addReport(RC_CUSTOMER, 112, _('Print Receipts'),
145 array( _('From') => 'RECEIPT',
146 _('To') => 'RECEIPT',
147 _('Currency Filter') => 'CURRENCY',
148 _('Comments') => 'TEXTBOX',
149 _('Orientation') => 'ORIENTATION'));
151 $reports->addReportClass(_('Supplier'), RC_SUPPLIER);
152 $reports->addReport(RC_SUPPLIER, 201, _('Supplier &Balances'),
153 array( _('Start Date') => 'DATEBEGIN',
154 _('End Date') => 'DATEENDM',
155 _('Supplier') => 'SUPPLIERS_NO_FILTER',
156 _('Show Balance') => 'YES_NO',
157 _('Currency Filter') => 'CURRENCY',
158 _('Suppress Zeros') => 'YES_NO',
159 _('Comments') => 'TEXTBOX',
160 _('Orientation') => 'ORIENTATION',
161 _('Destination') => 'DESTINATION'));
162 $reports->addReport(RC_SUPPLIER, 202, _('&Aged Supplier Analyses'),
163 array( _('End Date') => 'DATE',
164 _('Supplier') => 'SUPPLIERS_NO_FILTER',
165 _('Currency Filter') => 'CURRENCY',
166 _('Show Also Allocated') => 'YES_NO',
167 _('Summary Only') => 'YES_NO',
168 _('Suppress Zeros') => 'YES_NO',
169 _('Graphics') => 'GRAPHIC',
170 _('Comments') => 'TEXTBOX',
171 _('Orientation') => 'ORIENTATION',
172 _('Destination') => 'DESTINATION'));
173 $reports->addReport(RC_SUPPLIER, 203, _('&Payment Report'),
174 array( _('End Date') => 'DATE',
175 _('Supplier') => 'SUPPLIERS_NO_FILTER',
176 _('Currency Filter') => 'CURRENCY',
177 _('Suppress Zeros') => 'YES_NO',
178 _('Comments') => 'TEXTBOX',
179 _('Orientation') => 'ORIENTATION',
180 _('Destination') => 'DESTINATION'));
181 $reports->addReport(RC_SUPPLIER, 204, _('Outstanding &GRNs Report'),
182 array( _('Supplier') => 'SUPPLIERS_NO_FILTER',
183 _('Comments') => 'TEXTBOX',
184 _('Orientation') => 'ORIENTATION',
185 _('Destination') => 'DESTINATION'));
186 $reports->addReport(RC_SUPPLIER, 205, _('Supplier &Detail Listing'),
187 array( _('Activity Since') => 'DATEBEGIN',
188 _('Activity Greater Than') => 'TEXT',
189 _('Activity Less Than') => 'TEXT',
190 _('Comments') => 'TEXTBOX',
191 _('Orientation') => 'ORIENTATION',
192 _('Destination') => 'DESTINATION'));
193 $reports->addReport(RC_SUPPLIER, 209, _('Print Purchase &Orders'),
194 array( _('From') => 'PO',
196 _('Currency Filter') => 'CURRENCY',
197 _('Email Suppliers') => 'YES_NO',
198 _('Comments') => 'TEXTBOX',
199 _('Orientation') => 'ORIENTATION'));
200 $reports->addReport(RC_SUPPLIER, 210, _('Print Remi&ttances'),
201 array( _('From') => 'REMITTANCE',
202 _('To') => 'REMITTANCE',
203 _('Currency Filter') => 'CURRENCY',
204 _('Email Suppliers') => 'YES_NO',
205 _('Comments') => 'TEXTBOX',
206 _('Orientation') => 'ORIENTATION'));
208 $reports->addReportClass(_('Inventory'), RC_INVENTORY);
209 $reports->addReport(RC_INVENTORY, 301, _('Inventory &Valuation Report'),
210 array( _('End Date') => 'DATE',
211 _('Inventory Category') => 'CATEGORIES',
212 _('Location') => 'LOCATIONS',
213 _('Summary Only') => 'YES_NO',
214 _('Comments') => 'TEXTBOX',
215 _('Orientation') => 'ORIENTATION',
216 _('Destination') => 'DESTINATION'));
217 $reports->addReport(RC_INVENTORY, 302, _('Inventory &Planning Report'),
218 array( _('Inventory Category') => 'CATEGORIES',
219 _('Location') => 'LOCATIONS',
220 _('Comments') => 'TEXTBOX',
221 _('Orientation') => 'ORIENTATION',
222 _('Destination') => 'DESTINATION'));
223 $reports->addReport(RC_INVENTORY, 303, _('Stock &Check Sheets'),
224 array( _('Inventory Category') => 'CATEGORIES',
225 _('Location') => 'LOCATIONS',
226 _('Show Pictures') => 'YES_NO',
227 _('Inventory Column') => 'YES_NO',
228 _('Show Shortage') => 'YES_NO',
229 _('Suppress Zeros') => 'YES_NO',
230 _('Item Like') => 'TEXT',
231 _('Comments') => 'TEXTBOX',
232 _('Orientation') => 'ORIENTATION',
233 _('Destination') => 'DESTINATION'));
234 $reports->addReport(RC_INVENTORY, 304, _('Inventory &Sales Report'),
235 array( _('Start Date') => 'DATEBEGINM',
236 _('End Date') => 'DATEENDM',
237 _('Inventory Category') => 'CATEGORIES',
238 _('Location') => 'LOCATIONS',
239 _('Customer') => 'CUSTOMERS_NO_FILTER',
240 _('Show Service Items') => 'YES_NO',
241 _('Comments') => 'TEXTBOX',
242 _('Orientation') => 'ORIENTATION',
243 _('Destination') => 'DESTINATION'));
244 $reports->addReport(RC_INVENTORY, 305, _('&GRN Valuation Report'),
245 array( _('Start Date') => 'DATEBEGINM',
246 _('End Date') => 'DATEENDM',
247 _('Comments') => 'TEXTBOX',
248 _('Orientation') => 'ORIENTATION',
249 _('Destination') => 'DESTINATION'));
250 $reports->addReport(RC_INVENTORY, 306, _('Inventory P&urchasing Report'),
251 array( _('Start Date') => 'DATEBEGINM',
252 _('End Date') => 'DATEENDM',
253 _('Inventory Category') => 'CATEGORIES',
254 _('Location') => 'LOCATIONS',
255 _('Supplier') => 'SUPPLIERS_NO_FILTER',
256 _('Items') => 'ITEMS_P',
257 _('Comments') => 'TEXTBOX',
258 _('Orientation') => 'ORIENTATION',
259 _('Destination') => 'DESTINATION'));
260 $reports->addReport(RC_INVENTORY, 307, _('Inventory &Movement Report'),
261 array( _('Start Date') => 'DATEBEGINM',
262 _('End Date') => 'DATEENDM',
263 _('Inventory Category') => 'CATEGORIES',
264 _('Location') => 'LOCATIONS',
265 _('Comments') => 'TEXTBOX',
266 _('Orientation') => 'ORIENTATION',
267 _('Destination') => 'DESTINATION'));
268 $reports->addReport(RC_INVENTORY, 308, _('C&osted Inventory Movement Report'),
269 array( _('Start Date') => 'DATEBEGINM',
270 _('End Date') => 'DATEENDM',
271 _('Inventory Category') => 'CATEGORIES',
272 _('Location') => 'LOCATIONS',
273 _('Comments') => 'TEXTBOX',
274 _('Orientation') => 'ORIENTATION',
275 _('Destination') => 'DESTINATION'));
276 $reports->addReport(RC_INVENTORY, 309,_('Item &Sales Summary Report'),
277 array( _('Start Date') => 'DATEBEGINM',
278 _('End Date') => 'DATEENDM',
279 _('Inventory Category') => 'CATEGORIES',
280 _('Comments') => 'TEXTBOX',
281 _('Orientation') => 'ORIENTATION',
282 _('Destination') => 'DESTINATION'));
283 if (get_company_pref('use_manufacturing'))
285 $reports->addReportClass(_('Manufacturing'), RC_MANUFACTURE);
286 $reports->addReport(RC_MANUFACTURE, 401, _('&Bill of Material Listing'),
287 array( _('From product') => 'ITEMS',
288 _('To product') => 'ITEMS',
289 _('Comments') => 'TEXTBOX',
290 _('Orientation') => 'ORIENTATION',
291 _('Destination') => 'DESTINATION'));
292 $reports->addReport(RC_MANUFACTURE, 402, _('Work Order &Listing'),
293 array( _('Items') => 'ITEMS_ALL',
294 _('Location') => 'LOCATIONS',
295 _('Outstanding Only') => 'YES_NO',
296 _('Comments') => 'TEXTBOX',
297 _('Orientation') => 'ORIENTATION',
298 _('Destination') => 'DESTINATION'));
299 $reports->addReport(RC_MANUFACTURE, 409, _('Print &Work Orders'),
300 array( _('From') => 'WORKORDER',
301 _('To') => 'WORKORDER',
302 _('Email Locations') => 'YES_NO',
303 _('Comments') => 'TEXTBOX',
304 _('Orientation') => 'ORIENTATION'));
306 if (get_company_pref('use_fixed_assets'))
308 $reports->addReportClass(_('Fixed Assets'), RC_FIXEDASSETS);
309 $reports->addReport(RC_FIXEDASSETS, 451, _('&Fixed Assets Valuation'),
310 array( _('End Date') => 'DATE',
311 _('Fixed Assets Class') => 'FCLASS',
312 _('Fixed Assets Location') => 'FLOCATIONS',
313 _('Summary Only') => 'YES_NO',
314 _('Comments') => 'TEXTBOX',
315 _('Orientation') => 'ORIENTATION',
316 _('Destination') => 'DESTINATION'));
318 $reports->addReportClass(_('Dimensions'), RC_DIMENSIONS);
321 $reports->addReport(RC_DIMENSIONS, 501, _('Dimension &Summary'),
322 array( _('From Dimension') => 'DIMENSION',
323 _('To Dimension') => 'DIMENSION',
324 _('Show Balance') => 'YES_NO',
325 _('Comments') => 'TEXTBOX',
326 _('Orientation') => 'ORIENTATION',
327 _('Destination') => 'DESTINATION'));
329 $reports->addReportClass(_('Banking'), RC_BANKING);
330 $reports->addReport(RC_BANKING, 601, _('Bank &Statement'),
331 array( _('Bank Accounts') => 'BANK_ACCOUNTS',
332 _('Start Date') => 'DATEBEGINM',
333 _('End Date') => 'DATEENDM',
334 _('Zero values') => 'YES_NO',
335 _('Comments') => 'TEXTBOX',
336 _('Orientation') => 'ORIENTATION',
337 _('Destination') => 'DESTINATION'));
338 $reports->addReport(RC_BANKING, 602, _('Bank Statement w/ &Reconcile'),
339 array( _('Bank Accounts') => 'BANK_ACCOUNTS',
340 _('Start Date') => 'DATEBEGINM',
341 _('End Date') => 'DATEENDM',
342 _('Comments') => 'TEXTBOX',
343 _('Destination') => 'DESTINATION'));
345 $reports->addReportClass(_('General Ledger'), RC_GL);
346 $reports->addReport(RC_GL, 701, _('Chart of &Accounts'),
347 array( _('Show Balances') => 'YES_NO',
348 _('Comments') => 'TEXTBOX',
349 _('Orientation') => 'ORIENTATION',
350 _('Destination') => 'DESTINATION'));
351 $reports->addReport(RC_GL, 702, _('List of &Journal Entries'),
352 array( _('Start Date') => 'DATEBEGINM',
353 _('End Date') => 'DATEENDM',
354 _('Type') => 'SYS_TYPES',
355 _('Comments') => 'TEXTBOX',
356 _('Orientation') => 'ORIENTATION',
357 _('Destination') => 'DESTINATION'));
361 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
362 array( _('Start Date') => 'DATEBEGINM',
363 _('End Date') => 'DATEENDM',
364 _('From Account') => 'GL_ACCOUNTS',
365 _('To Account') => 'GL_ACCOUNTS',
366 _('Dimension')." 1" => 'DIMENSIONS1',
367 _('Dimension')." 2" => 'DIMENSIONS2',
368 _('Comments') => 'TEXTBOX',
369 _('Orientation') => 'ORIENTATION',
370 _('Destination') => 'DESTINATION'));
371 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
372 array( _('Year') => 'TRANS_YEARS',
373 _('Dimension')." 1" => 'DIMENSIONS1',
374 _('Dimension')." 2" => 'DIMENSIONS2',
375 _('Account Tags') => 'ACCOUNTTAGS',
376 _('Comments') => 'TEXTBOX',
377 _('Orientation') => 'ORIENTATION',
378 _('Destination') => 'DESTINATION'));
379 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
380 array( _('Start Date') => 'DATEBEGIN',
381 _('End Date') => 'DATEENDM',
382 _('Dimension')." 1" => 'DIMENSIONS1',
383 _('Dimension')." 2" => 'DIMENSIONS2',
384 _('Account Tags') => 'ACCOUNTTAGS',
385 _('Decimal values') => 'YES_NO',
386 _('Graphics') => 'GRAPHIC',
387 _('Comments') => 'TEXTBOX',
388 _('Orientation') => 'ORIENTATION',
389 _('Destination') => 'DESTINATION'));
390 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
391 array( _('Start Date') => 'DATEBEGINM',
392 _('End Date') => 'DATEENDM',
393 _('Compare to') => 'COMPARE',
394 _('Dimension')." 1" => 'DIMENSIONS1',
395 _('Dimension')." 2" => 'DIMENSIONS2',
396 _('Account Tags') => 'ACCOUNTTAGS',
397 _('Decimal values') => 'YES_NO',
398 _('Graphics') => 'GRAPHIC',
399 _('Comments') => 'TEXTBOX',
400 _('Orientation') => 'ORIENTATION',
401 _('Destination') => 'DESTINATION'));
402 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
403 array( _('Start Date') => 'DATEBEGINM',
404 _('End Date') => 'DATEENDM',
405 _('Zero values') => 'YES_NO',
406 _('Only balances') => 'YES_NO',
407 _('Dimension')." 1" => 'DIMENSIONS1',
408 _('Dimension')." 2" => 'DIMENSIONS2',
409 _('Comments') => 'TEXTBOX',
410 _('Orientation') => 'ORIENTATION',
411 _('Destination') => 'DESTINATION'));
415 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
416 array( _('Start Date') => 'DATEBEGINM',
417 _('End Date') => 'DATEENDM',
418 _('From Account') => 'GL_ACCOUNTS',
419 _('To Account') => 'GL_ACCOUNTS',
420 _('Dimension') => 'DIMENSIONS1',
421 _('Comments') => 'TEXTBOX',
422 _('Orientation') => 'ORIENTATION',
423 _('Destination') => 'DESTINATION'));
424 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
425 array( _('Year') => 'TRANS_YEARS',
426 _('Dimension') => 'DIMENSIONS1',
427 _('Account Tags') => 'ACCOUNTTAGS',
428 _('Comments') => 'TEXTBOX',
429 _('Orientation') => 'ORIENTATION',
430 _('Destination') => 'DESTINATION'));
431 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
432 array( _('Start Date') => 'DATEBEGIN',
433 _('End Date') => 'DATEENDM',
434 _('Dimension') => 'DIMENSIONS1',
435 _('Account Tags') => 'ACCOUNTTAGS',
436 _('Decimal values') => 'YES_NO',
437 _('Graphics') => 'GRAPHIC',
438 _('Comments') => 'TEXTBOX',
439 _('Orientation') => 'ORIENTATION',
440 _('Destination') => 'DESTINATION'));
441 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
442 array( _('Start Date') => 'DATEBEGINM',
443 _('End Date') => 'DATEENDM',
444 _('Compare to') => 'COMPARE',
445 _('Dimension') => 'DIMENSIONS1',
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, 708, _('Trial &Balance'),
453 array( _('Start Date') => 'DATEBEGINM',
454 _('End Date') => 'DATEENDM',
455 _('Zero values') => 'YES_NO',
456 _('Only balances') => 'YES_NO',
457 _('Dimension') => 'DIMENSIONS1',
458 _('Comments') => 'TEXTBOX',
459 _('Orientation') => 'ORIENTATION',
460 _('Destination') => 'DESTINATION'));
464 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
465 array( _('Start Date') => 'DATEBEGINM',
466 _('End Date') => 'DATEENDM',
467 _('From Account') => 'GL_ACCOUNTS',
468 _('To Account') => 'GL_ACCOUNTS',
469 _('Comments') => 'TEXTBOX',
470 _('Orientation') => 'ORIENTATION',
471 _('Destination') => 'DESTINATION'));
472 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
473 array( _('Year') => 'TRANS_YEARS',
474 _('Account Tags') => 'ACCOUNTTAGS',
475 _('Comments') => 'TEXTBOX',
476 _('Orientation') => 'ORIENTATION',
477 _('Destination') => 'DESTINATION'));
478 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
479 array( _('Start Date') => 'DATEBEGIN',
480 _('End Date') => 'DATEENDM',
481 _('Account Tags') => 'ACCOUNTTAGS',
482 _('Decimal values') => 'YES_NO',
483 _('Graphics') => 'GRAPHIC',
484 _('Comments') => 'TEXTBOX',
485 _('Orientation') => 'ORIENTATION',
486 _('Destination') => 'DESTINATION'));
487 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
488 array( _('Start Date') => 'DATEBEGINM',
489 _('End Date') => 'DATEENDM',
490 _('Compare to') => 'COMPARE',
491 _('Account Tags') => 'ACCOUNTTAGS',
492 _('Decimal values') => 'YES_NO',
493 _('Graphics') => 'GRAPHIC',
494 _('Comments') => 'TEXTBOX',
495 _('Orientation') => 'ORIENTATION',
496 _('Destination') => 'DESTINATION'));
497 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
498 array( _('Start Date') => 'DATEBEGINM',
499 _('End Date') => 'DATEENDM',
500 _('Zero values') => 'YES_NO',
501 _('Only balances') => 'YES_NO',
502 _('Comments') => 'TEXTBOX',
503 _('Orientation') => 'ORIENTATION',
504 _('Destination') => 'DESTINATION'));
506 $reports->addReport(RC_GL, 709, _('Ta&x Report'),
507 array( _('Start Date') => 'DATEBEGINTAX',
508 _('End Date') => 'DATEENDTAX',
509 _('Summary Only') => 'YES_NO',
510 _('Comments') => 'TEXTBOX',
511 _('Orientation') => 'ORIENTATION',
512 _('Destination') => 'DESTINATION'));
513 $reports->addReport(RC_GL, 710, _('Audit Trail'),
514 array( _('Start Date') => 'DATEBEGINM',
515 _('End Date') => 'DATEENDM',
516 _('Type') => 'SYS_TYPES_ALL',
517 _('User') => 'USERS',
518 _('Comments') => 'TEXTBOX',
519 _('Orientation') => 'ORIENTATION',
520 _('Destination') => 'DESTINATION'));
522 add_custom_reports($reports);
524 echo $reports->getDisplay();