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