6e766691ac633252595a461c53a412ec027a8cf9
[fa-stable.git] / reporting / reports_main.php
1 <?php
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 ***********************************************************************/
12 $path_to_root="..";
13 $page_security = 'SA_OPEN';
14 include_once($path_to_root . "/includes/session.inc");
15
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");
20 $js = "";
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();
25
26 add_js_file('reports.js');
27
28 page(_($help_context = "Reports and Analysis"), false, false, "", $js);
29
30 $reports = new BoxReports;
31
32 $dim = get_company_pref('use_dimension');
33
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',
99                         _('To') => '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'
106 ));
107 $reports->addReport(RC_CUSTOMER, 113, _('Print &Credit Notes'),
108         array(  _('From') => 'CREDIT',
109                         _('To') => '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',
131                         _('To') => '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'));
150
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',
195                         _('To') => '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'));
207
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'))
294 {
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                                 _('Comments') => 'TEXTBOX',
307                                 _('Orientation') => 'ORIENTATION',
308                                 _('Destination') => 'DESTINATION'));
309         $reports->addReport(RC_MANUFACTURE, 409, _('Print &Work Orders'),
310                 array(  _('From') => 'WORKORDER',
311                                 _('To') => 'WORKORDER',
312                                 _('Email Locations') => 'YES_NO',
313                                 _('Comments') => 'TEXTBOX',
314                                 _('Orientation') => 'ORIENTATION'));
315 }
316 if (get_company_pref('use_fixed_assets'))
317 {
318         $reports->addReportClass(_('Fixed Assets'), RC_FIXEDASSETS);
319         $reports->addReport(RC_FIXEDASSETS, 451, _('&Fixed Assets Valuation'),
320                 array(  _('End Date') => 'DATE',
321                                 _('Fixed Assets Class') => 'FCLASS',
322                                 _('Fixed Assets Location') => 'FLOCATIONS',
323                                 _('Summary Only') => 'YES_NO',
324                                 _('Comments') => 'TEXTBOX',
325                                 _('Orientation') => 'ORIENTATION',
326                                 _('Destination') => 'DESTINATION'));
327 }                               
328 $reports->addReportClass(_('Dimensions'), RC_DIMENSIONS);
329 if ($dim > 0)
330 {
331         $reports->addReport(RC_DIMENSIONS, 501, _('Dimension &Summary'),
332         array(  _('From Dimension') => 'DIMENSION',
333                         _('To Dimension') => 'DIMENSION',
334                         _('Show Balance') => 'YES_NO',
335                         _('Comments') => 'TEXTBOX',
336                         _('Orientation') => 'ORIENTATION',
337                         _('Destination') => 'DESTINATION'));
338 }
339 $reports->addReportClass(_('Banking'), RC_BANKING);
340         $reports->addReport(RC_BANKING,  601, _('Bank &Statement'),
341         array(  _('Bank Accounts') => 'BANK_ACCOUNTS',
342                         _('Start Date') => 'DATEBEGINM',
343                         _('End Date') => 'DATEENDM',
344                         _('Zero values') => 'YES_NO',
345                         _('Comments') => 'TEXTBOX',
346                         _('Orientation') => 'ORIENTATION',
347                         _('Destination') => 'DESTINATION'));
348         $reports->addReport(RC_BANKING,  602, _('Bank Statement w/ &Reconcile'),
349         array(  _('Bank Accounts') => 'BANK_ACCOUNTS',
350                         _('Start Date') => 'DATEBEGINM',
351                         _('End Date') => 'DATEENDM',
352                         _('Comments') => 'TEXTBOX',
353                         _('Destination') => 'DESTINATION'));
354
355 $reports->addReportClass(_('General Ledger'), RC_GL);
356 $reports->addReport(RC_GL, 701, _('Chart of &Accounts'),
357         array(  _('Show Balances') => 'YES_NO',
358                         _('Comments') => 'TEXTBOX',
359                         _('Orientation') => 'ORIENTATION',
360                         _('Destination') => 'DESTINATION'));
361 $reports->addReport(RC_GL, 702, _('List of &Journal Entries'),
362         array(  _('Start Date') => 'DATEBEGINM',
363                         _('End Date') => 'DATEENDM',
364                         _('Type') => 'SYS_TYPES',
365                         _('Comments') => 'TEXTBOX',
366                         _('Orientation') => 'ORIENTATION',
367                         _('Destination') => 'DESTINATION'));
368
369 if ($dim == 2)
370 {
371         $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
372         array(  _('Start Date') => 'DATEBEGINM',
373                         _('End Date') => 'DATEENDM',
374                         _('From Account') => 'GL_ACCOUNTS',
375                         _('To Account') => 'GL_ACCOUNTS',
376                         _('Dimension')." 1" =>  'DIMENSIONS1',
377                         _('Dimension')." 2" =>  'DIMENSIONS2',
378                         _('Comments') => 'TEXTBOX',
379                         _('Orientation') => 'ORIENTATION',
380                         _('Destination') => 'DESTINATION'));
381         $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
382         array(  _('Year') => 'TRANS_YEARS',
383                         _('Dimension')." 1" =>  'DIMENSIONS1',
384                         _('Dimension')." 2" =>  'DIMENSIONS2',
385                         _('Account Tags') =>  'ACCOUNTTAGS',
386                         _('Comments') => 'TEXTBOX',
387                         _('Orientation') => 'ORIENTATION',
388                         _('Destination') => 'DESTINATION'));
389         $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
390         array(  _('Start Date') => 'DATEBEGIN',
391                         _('End Date') => 'DATEENDM',
392                         _('Dimension')." 1" => 'DIMENSIONS1',
393                         _('Dimension')." 2" => 'DIMENSIONS2',
394                         _('Account Tags') =>  'ACCOUNTTAGS',
395                         _('Decimal values') => 'YES_NO',
396                         _('Graphics') => 'GRAPHIC',
397                         _('Comments') => 'TEXTBOX',
398                         _('Orientation') => 'ORIENTATION',
399                         _('Destination') => 'DESTINATION'));
400         $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
401         array(  _('Start Date') => 'DATEBEGINM',
402                         _('End Date') => 'DATEENDM',
403                         _('Compare to') => 'COMPARE',
404                         _('Dimension')." 1" =>  'DIMENSIONS1',
405                         _('Dimension')." 2" =>  'DIMENSIONS2',
406                         _('Account Tags') =>  'ACCOUNTTAGS',
407                         _('Decimal values') => 'YES_NO',
408                         _('Graphics') => 'GRAPHIC',
409                         _('Comments') => 'TEXTBOX',
410                         _('Orientation') => 'ORIENTATION',
411                         _('Destination') => 'DESTINATION'));
412         $reports->addReport(RC_GL, 708, _('Trial &Balance'),
413         array(  _('Start Date') => 'DATEBEGINM',
414                         _('End Date') => 'DATEENDM',
415                         _('Zero values') => 'YES_NO',
416                         _('Only balances') => 'YES_NO',
417                         _('Dimension')." 1" =>  'DIMENSIONS1',
418                         _('Dimension')." 2" =>  'DIMENSIONS2',
419                         _('Comments') => 'TEXTBOX',
420                         _('Orientation') => 'ORIENTATION',
421                         _('Destination') => 'DESTINATION'));
422 }
423 elseif ($dim == 1)
424 {
425         $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
426         array(  _('Start Date') => 'DATEBEGINM',
427                         _('End Date') => 'DATEENDM',
428                         _('From Account') => 'GL_ACCOUNTS',
429                         _('To Account') => 'GL_ACCOUNTS',
430                         _('Dimension') =>  'DIMENSIONS1',
431                         _('Comments') => 'TEXTBOX',
432                         _('Orientation') => 'ORIENTATION',
433                         _('Destination') => 'DESTINATION'));
434         $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
435         array(  _('Year') => 'TRANS_YEARS',
436                         _('Dimension') =>  'DIMENSIONS1',
437                         _('Account Tags') =>  'ACCOUNTTAGS',
438                         _('Comments') => 'TEXTBOX',
439                         _('Orientation') => 'ORIENTATION',
440                         _('Destination') => 'DESTINATION'));
441         $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
442         array(  _('Start Date') => 'DATEBEGIN',
443                         _('End Date') => 'DATEENDM',
444                         _('Dimension') => 'DIMENSIONS1',
445                         _('Account Tags') =>  'ACCOUNTTAGS',
446                         _('Decimal values') => 'YES_NO',
447                         _('Graphics') => 'GRAPHIC',
448                         _('Comments') => 'TEXTBOX',
449                         _('Orientation') => 'ORIENTATION',
450                         _('Destination') => 'DESTINATION'));
451         $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
452         array(  _('Start Date') => 'DATEBEGINM',
453                         _('End Date') => 'DATEENDM',
454                         _('Compare to') => 'COMPARE',
455                         _('Dimension') => 'DIMENSIONS1',
456                         _('Account Tags') =>  'ACCOUNTTAGS',
457                         _('Decimal values') => 'YES_NO',
458                         _('Graphics') => 'GRAPHIC',
459                         _('Comments') => 'TEXTBOX',
460                         _('Orientation') => 'ORIENTATION',
461                         _('Destination') => 'DESTINATION'));
462         $reports->addReport(RC_GL, 708, _('Trial &Balance'),
463         array(  _('Start Date') => 'DATEBEGINM',
464                         _('End Date') => 'DATEENDM',
465                         _('Zero values') => 'YES_NO',
466                         _('Only balances') => 'YES_NO',
467                         _('Dimension') => 'DIMENSIONS1',
468                         _('Comments') => 'TEXTBOX',
469                         _('Orientation') => 'ORIENTATION',
470                         _('Destination') => 'DESTINATION'));
471 }
472 else
473 {
474         $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
475         array(  _('Start Date') => 'DATEBEGINM',
476                         _('End Date') => 'DATEENDM',
477                         _('From Account') => 'GL_ACCOUNTS',
478                         _('To Account') => 'GL_ACCOUNTS',
479                         _('Comments') => 'TEXTBOX',
480                         _('Orientation') => 'ORIENTATION',
481                         _('Destination') => 'DESTINATION'));
482         $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
483         array(  _('Year') => 'TRANS_YEARS',
484                         _('Account Tags') =>  'ACCOUNTTAGS',
485                         _('Comments') => 'TEXTBOX',
486                         _('Orientation') => 'ORIENTATION',
487                         _('Destination') => 'DESTINATION'));
488         $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
489         array(  _('Start Date') => 'DATEBEGIN',
490                         _('End Date') => 'DATEENDM',
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, 707, _('&Profit and Loss Statement'),
498         array(  _('Start Date') => 'DATEBEGINM',
499                         _('End Date') => 'DATEENDM',
500                         _('Compare to') => 'COMPARE',
501                         _('Account Tags') =>  'ACCOUNTTAGS',
502                         _('Decimal values') => 'YES_NO',
503                         _('Graphics') => 'GRAPHIC',
504                         _('Comments') => 'TEXTBOX',
505                         _('Orientation') => 'ORIENTATION',
506                         _('Destination') => 'DESTINATION'));
507         $reports->addReport(RC_GL, 708, _('Trial &Balance'),
508         array(  _('Start Date') => 'DATEBEGINM',
509                         _('End Date') => 'DATEENDM',
510                         _('Zero values') => 'YES_NO',
511                         _('Only balances') => 'YES_NO',
512                         _('Comments') => 'TEXTBOX',
513                         _('Orientation') => 'ORIENTATION',
514                         _('Destination') => 'DESTINATION'));
515 }
516 $reports->addReport(RC_GL, 709, _('Ta&x Report'),
517         array(  _('Start Date') => 'DATEBEGINTAX',
518                         _('End Date') => 'DATEENDTAX',
519                         _('Summary Only') => 'YES_NO',
520                         _('Comments') => 'TEXTBOX',
521                         _('Orientation') => 'ORIENTATION',
522                         _('Destination') => 'DESTINATION'));
523 $reports->addReport(RC_GL, 710, _('Audit Trail'),
524         array(  _('Start Date') => 'DATEBEGINM',
525                         _('End Date') => 'DATEENDM',
526                         _('Type') => 'SYS_TYPES_ALL',
527                         _('User') => 'USERS',
528                         _('Comments') => 'TEXTBOX',
529                         _('Orientation') => 'ORIENTATION',
530                         _('Destination') => 'DESTINATION'));
531
532 add_custom_reports($reports);
533
534 echo $reports->getDisplay();
535
536 end_page();