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 $reports->addReport(RC_INVENTORY, 310, _('Inventory Purchasing - &Transaction Based'),
284 array( _('Start Date') => 'DATEBEGINM',
285 _('End Date') => 'DATEENDM',
286 _('Inventory Category') => 'CATEGORIES',
287 _('Location') => 'LOCATIONS',
288 _('Supplier') => 'SUPPLIERS_NO_FILTER',
289 _('Items') => 'ITEMS_P',
290 _('Comments') => 'TEXTBOX',
291 _('Orientation') => 'ORIENTATION',
292 _('Destination') => 'DESTINATION'));
293 if (get_company_pref('use_manufacturing'))
295 $reports->addReportClass(_('Manufacturing'), RC_MANUFACTURE);
296 $reports->addReport(RC_MANUFACTURE, 401, _('&Bill of Material Listing'),
297 array( _('From product') => 'ITEMS',
298 _('To product') => 'ITEMS',
299 _('Comments') => 'TEXTBOX',
300 _('Orientation') => 'ORIENTATION',
301 _('Destination') => 'DESTINATION'));
302 $reports->addReport(RC_MANUFACTURE, 402, _('Work Order &Listing'),
303 array( _('Items') => 'ITEMS_ALL',
304 _('Location') => 'LOCATIONS',
305 _('Outstanding Only') => 'YES_NO',
306 _('Show GL Rows') => 'YES_NO',
307 _('Comments') => 'TEXTBOX',
308 _('Orientation') => 'ORIENTATION',
309 _('Destination') => 'DESTINATION'));
310 $reports->addReport(RC_MANUFACTURE, 409, _('Print &Work Orders'),
311 array( _('From') => 'WORKORDER',
312 _('To') => 'WORKORDER',
313 _('Email Locations') => 'YES_NO',
314 _('Comments') => 'TEXTBOX',
315 _('Orientation') => 'ORIENTATION'));
317 if (get_company_pref('use_fixed_assets'))
319 $reports->addReportClass(_('Fixed Assets'), RC_FIXEDASSETS);
320 $reports->addReport(RC_FIXEDASSETS, 451, _('&Fixed Assets Valuation'),
321 array( _('End Date') => 'DATE',
322 _('Fixed Assets Class') => 'FCLASS',
323 _('Fixed Assets Location') => 'FLOCATIONS',
324 _('Summary Only') => 'YES_NO',
325 _('Comments') => 'TEXTBOX',
326 _('Orientation') => 'ORIENTATION',
327 _('Destination') => 'DESTINATION'));
329 $reports->addReportClass(_('Dimensions'), RC_DIMENSIONS);
332 $reports->addReport(RC_DIMENSIONS, 501, _('Dimension &Summary'),
333 array( _('From Dimension') => 'DIMENSION',
334 _('To Dimension') => 'DIMENSION',
335 _('Show Balance') => 'YES_NO',
336 _('Comments') => 'TEXTBOX',
337 _('Orientation') => 'ORIENTATION',
338 _('Destination') => 'DESTINATION'));
340 $reports->addReportClass(_('Banking'), RC_BANKING);
341 $reports->addReport(RC_BANKING, 601, _('Bank &Statement'),
342 array( _('Bank Accounts') => 'BANK_ACCOUNTS',
343 _('Start Date') => 'DATEBEGINM',
344 _('End Date') => 'DATEENDM',
345 _('Zero values') => 'YES_NO',
346 _('Comments') => 'TEXTBOX',
347 _('Orientation') => 'ORIENTATION',
348 _('Destination') => 'DESTINATION'));
349 $reports->addReport(RC_BANKING, 602, _('Bank Statement w/ &Reconcile'),
350 array( _('Bank Accounts') => 'BANK_ACCOUNTS',
351 _('Start Date') => 'DATEBEGINM',
352 _('End Date') => 'DATEENDM',
353 _('Comments') => 'TEXTBOX',
354 _('Destination') => 'DESTINATION'));
356 $reports->addReportClass(_('General Ledger'), RC_GL);
357 $reports->addReport(RC_GL, 701, _('Chart of &Accounts'),
358 array( _('Show Balances') => 'YES_NO',
359 _('Comments') => 'TEXTBOX',
360 _('Orientation') => 'ORIENTATION',
361 _('Destination') => 'DESTINATION'));
362 $reports->addReport(RC_GL, 702, _('List of &Journal Entries'),
363 array( _('Start Date') => 'DATEBEGINM',
364 _('End Date') => 'DATEENDM',
365 _('Type') => 'SYS_TYPES',
366 _('Comments') => 'TEXTBOX',
367 _('Orientation') => 'ORIENTATION',
368 _('Destination') => 'DESTINATION'));
372 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
373 array( _('Start Date') => 'DATEBEGINM',
374 _('End Date') => 'DATEENDM',
375 _('From Account') => 'GL_ACCOUNTS',
376 _('To Account') => 'GL_ACCOUNTS',
377 _('Dimension')." 1" => 'DIMENSIONS1',
378 _('Dimension')." 2" => 'DIMENSIONS2',
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')." 1" => 'DIMENSIONS1',
385 _('Dimension')." 2" => 'DIMENSIONS2',
386 _('Account Tags') => 'ACCOUNTTAGS',
387 _('Comments') => 'TEXTBOX',
388 _('Orientation') => 'ORIENTATION',
389 _('Destination') => 'DESTINATION'));
390 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
391 array( _('Start Date') => 'DATEBEGIN',
392 _('End Date') => 'DATEENDM',
393 _('Dimension')." 1" => 'DIMENSIONS1',
394 _('Dimension')." 2" => 'DIMENSIONS2',
395 _('Account Tags') => 'ACCOUNTTAGS',
396 _('Decimal values') => 'YES_NO',
397 _('Graphics') => 'GRAPHIC',
398 _('Comments') => 'TEXTBOX',
399 _('Orientation') => 'ORIENTATION',
400 _('Destination') => 'DESTINATION'));
401 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
402 array( _('Start Date') => 'DATEBEGINM',
403 _('End Date') => 'DATEENDM',
404 _('Compare to') => 'COMPARE',
405 _('Dimension')." 1" => 'DIMENSIONS1',
406 _('Dimension')." 2" => 'DIMENSIONS2',
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, 708, _('Trial &Balance'),
414 array( _('Start Date') => 'DATEBEGINM',
415 _('End Date') => 'DATEENDM',
416 _('Zero values') => 'YES_NO',
417 _('Only balances') => 'YES_NO',
418 _('Dimension')." 1" => 'DIMENSIONS1',
419 _('Dimension')." 2" => 'DIMENSIONS2',
420 _('Comments') => 'TEXTBOX',
421 _('Orientation') => 'ORIENTATION',
422 _('Destination') => 'DESTINATION'));
426 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
427 array( _('Start Date') => 'DATEBEGINM',
428 _('End Date') => 'DATEENDM',
429 _('From Account') => 'GL_ACCOUNTS',
430 _('To Account') => 'GL_ACCOUNTS',
431 _('Dimension') => 'DIMENSIONS1',
432 _('Comments') => 'TEXTBOX',
433 _('Orientation') => 'ORIENTATION',
434 _('Destination') => 'DESTINATION'));
435 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
436 array( _('Year') => 'TRANS_YEARS',
437 _('Dimension') => 'DIMENSIONS1',
438 _('Account Tags') => 'ACCOUNTTAGS',
439 _('Comments') => 'TEXTBOX',
440 _('Orientation') => 'ORIENTATION',
441 _('Destination') => 'DESTINATION'));
442 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
443 array( _('Start Date') => 'DATEBEGIN',
444 _('End Date') => 'DATEENDM',
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, 707, _('&Profit and Loss Statement'),
453 array( _('Start Date') => 'DATEBEGINM',
454 _('End Date') => 'DATEENDM',
455 _('Compare to') => 'COMPARE',
456 _('Dimension') => 'DIMENSIONS1',
457 _('Account Tags') => 'ACCOUNTTAGS',
458 _('Decimal values') => 'YES_NO',
459 _('Graphics') => 'GRAPHIC',
460 _('Comments') => 'TEXTBOX',
461 _('Orientation') => 'ORIENTATION',
462 _('Destination') => 'DESTINATION'));
463 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
464 array( _('Start Date') => 'DATEBEGINM',
465 _('End Date') => 'DATEENDM',
466 _('Zero values') => 'YES_NO',
467 _('Only balances') => 'YES_NO',
468 _('Dimension') => 'DIMENSIONS1',
469 _('Comments') => 'TEXTBOX',
470 _('Orientation') => 'ORIENTATION',
471 _('Destination') => 'DESTINATION'));
475 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
476 array( _('Start Date') => 'DATEBEGINM',
477 _('End Date') => 'DATEENDM',
478 _('From Account') => 'GL_ACCOUNTS',
479 _('To Account') => 'GL_ACCOUNTS',
480 _('Comments') => 'TEXTBOX',
481 _('Orientation') => 'ORIENTATION',
482 _('Destination') => 'DESTINATION'));
483 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
484 array( _('Year') => 'TRANS_YEARS',
485 _('Account Tags') => 'ACCOUNTTAGS',
486 _('Comments') => 'TEXTBOX',
487 _('Orientation') => 'ORIENTATION',
488 _('Destination') => 'DESTINATION'));
489 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
490 array( _('Start Date') => 'DATEBEGIN',
491 _('End Date') => 'DATEENDM',
492 _('Account Tags') => 'ACCOUNTTAGS',
493 _('Decimal values') => 'YES_NO',
494 _('Graphics') => 'GRAPHIC',
495 _('Comments') => 'TEXTBOX',
496 _('Orientation') => 'ORIENTATION',
497 _('Destination') => 'DESTINATION'));
498 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
499 array( _('Start Date') => 'DATEBEGINM',
500 _('End Date') => 'DATEENDM',
501 _('Compare to') => 'COMPARE',
502 _('Account Tags') => 'ACCOUNTTAGS',
503 _('Decimal values') => 'YES_NO',
504 _('Graphics') => 'GRAPHIC',
505 _('Comments') => 'TEXTBOX',
506 _('Orientation') => 'ORIENTATION',
507 _('Destination') => 'DESTINATION'));
508 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
509 array( _('Start Date') => 'DATEBEGINM',
510 _('End Date') => 'DATEENDM',
511 _('Zero values') => 'YES_NO',
512 _('Only balances') => 'YES_NO',
513 _('Comments') => 'TEXTBOX',
514 _('Orientation') => 'ORIENTATION',
515 _('Destination') => 'DESTINATION'));
517 $reports->addReport(RC_GL, 709, _('Ta&x Report'),
518 array( _('Start Date') => 'DATEBEGINTAX',
519 _('End Date') => 'DATEENDTAX',
520 _('Summary Only') => 'YES_NO',
521 _('Comments') => 'TEXTBOX',
522 _('Orientation') => 'ORIENTATION',
523 _('Destination') => 'DESTINATION'));
524 $reports->addReport(RC_GL, 710, _('Audit Trail'),
525 array( _('Start Date') => 'DATEBEGINM',
526 _('End Date') => 'DATEENDM',
527 _('Type') => 'SYS_TYPES_ALL',
528 _('User') => 'USERS',
529 _('Comments') => 'TEXTBOX',
530 _('Orientation') => 'ORIENTATION',
531 _('Destination') => 'DESTINATION'));
533 add_custom_reports($reports);
535 echo $reports->getDisplay();