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