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',
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 _('Destination') => 'DESTINATION'));
411 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
412 array( _('Start Date') => 'DATEBEGIN',
413 _('End Date') => 'DATEENDM',
414 _('Dimension')." 1" => 'DIMENSIONS1',
415 _('Dimension')." 2" => 'DIMENSIONS2',
416 _('Account Tags') => 'ACCOUNTTAGS',
417 _('Decimal values') => 'YES_NO',
418 _('Graphics') => 'GRAPHIC',
419 _('Comments') => 'TEXTBOX',
420 _('Orientation') => 'ORIENTATION',
421 _('Destination') => 'DESTINATION'));
422 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
423 array( _('Start Date') => 'DATEBEGINM',
424 _('End Date') => 'DATEENDM',
425 _('Compare to') => 'COMPARE',
426 _('Dimension')." 1" => 'DIMENSIONS1',
427 _('Dimension')." 2" => 'DIMENSIONS2',
428 _('Account Tags') => 'ACCOUNTTAGS',
429 _('Decimal values') => 'YES_NO',
430 _('Graphics') => 'GRAPHIC',
431 _('Comments') => 'TEXTBOX',
432 _('Orientation') => 'ORIENTATION',
433 _('Destination') => 'DESTINATION'));
434 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
435 array( _('Start Date') => 'DATEBEGINM',
436 _('End Date') => 'DATEENDM',
437 _('Zero values') => 'YES_NO',
438 _('Only balances') => 'YES_NO',
439 _('Dimension')." 1" => 'DIMENSIONS1',
440 _('Dimension')." 2" => 'DIMENSIONS2',
441 _('Comments') => 'TEXTBOX',
442 _('Orientation') => 'ORIENTATION',
443 _('Destination') => 'DESTINATION'));
447 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
448 array( _('Start Date') => 'DATEBEGINM',
449 _('End Date') => 'DATEENDM',
450 _('From Account') => 'GL_ACCOUNTS',
451 _('To Account') => 'GL_ACCOUNTS',
452 _('Dimension') => 'DIMENSIONS1',
453 _('Comments') => 'TEXTBOX',
454 _('Orientation') => 'ORIENTATION',
455 _('Destination') => 'DESTINATION'));
456 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
457 array( _('Year') => 'TRANS_YEARS',
458 _('Dimension') => 'DIMENSIONS1',
459 _('Account Tags') => 'ACCOUNTTAGS',
460 _('Comments') => 'TEXTBOX',
461 _('Orientation') => 'ORIENTATION',
462 _('Destination') => 'DESTINATION'));
463 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
464 array( _('Start Date') => 'DATEBEGIN',
465 _('End Date') => 'DATEENDM',
466 _('Dimension') => 'DIMENSIONS1',
467 _('Account Tags') => 'ACCOUNTTAGS',
468 _('Decimal values') => 'YES_NO',
469 _('Graphics') => 'GRAPHIC',
470 _('Comments') => 'TEXTBOX',
471 _('Orientation') => 'ORIENTATION',
472 _('Destination') => 'DESTINATION'));
473 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
474 array( _('Start Date') => 'DATEBEGINM',
475 _('End Date') => 'DATEENDM',
476 _('Compare to') => 'COMPARE',
477 _('Dimension') => 'DIMENSIONS1',
478 _('Account Tags') => 'ACCOUNTTAGS',
479 _('Decimal values') => 'YES_NO',
480 _('Graphics') => 'GRAPHIC',
481 _('Comments') => 'TEXTBOX',
482 _('Orientation') => 'ORIENTATION',
483 _('Destination') => 'DESTINATION'));
484 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
485 array( _('Start Date') => 'DATEBEGINM',
486 _('End Date') => 'DATEENDM',
487 _('Zero values') => 'YES_NO',
488 _('Only balances') => 'YES_NO',
489 _('Dimension') => 'DIMENSIONS1',
490 _('Comments') => 'TEXTBOX',
491 _('Orientation') => 'ORIENTATION',
492 _('Destination') => 'DESTINATION'));
496 $reports->addReport(RC_GL, 704, _('GL Account &Transactions'),
497 array( _('Start Date') => 'DATEBEGINM',
498 _('End Date') => 'DATEENDM',
499 _('From Account') => 'GL_ACCOUNTS',
500 _('To Account') => 'GL_ACCOUNTS',
501 _('Comments') => 'TEXTBOX',
502 _('Orientation') => 'ORIENTATION',
503 _('Destination') => 'DESTINATION'));
504 $reports->addReport(RC_GL, 705, _('Annual &Expense Breakdown'),
505 array( _('Year') => 'TRANS_YEARS',
506 _('Account Tags') => 'ACCOUNTTAGS',
507 _('Comments') => 'TEXTBOX',
508 _('Orientation') => 'ORIENTATION',
509 _('Destination') => 'DESTINATION'));
510 $reports->addReport(RC_GL, 706, _('&Balance Sheet'),
511 array( _('Start Date') => 'DATEBEGIN',
512 _('End Date') => 'DATEENDM',
513 _('Account Tags') => 'ACCOUNTTAGS',
514 _('Decimal values') => 'YES_NO',
515 _('Graphics') => 'GRAPHIC',
516 _('Comments') => 'TEXTBOX',
517 _('Orientation') => 'ORIENTATION',
518 _('Destination') => 'DESTINATION'));
519 $reports->addReport(RC_GL, 707, _('&Profit and Loss Statement'),
520 array( _('Start Date') => 'DATEBEGINM',
521 _('End Date') => 'DATEENDM',
522 _('Compare to') => 'COMPARE',
523 _('Account Tags') => 'ACCOUNTTAGS',
524 _('Decimal values') => 'YES_NO',
525 _('Graphics') => 'GRAPHIC',
526 _('Comments') => 'TEXTBOX',
527 _('Orientation') => 'ORIENTATION',
528 _('Destination') => 'DESTINATION'));
529 $reports->addReport(RC_GL, 708, _('Trial &Balance'),
530 array( _('Start Date') => 'DATEBEGINM',
531 _('End Date') => 'DATEENDM',
532 _('Zero values') => 'YES_NO',
533 _('Only balances') => 'YES_NO',
534 _('Comments') => 'TEXTBOX',
535 _('Orientation') => 'ORIENTATION',
536 _('Destination') => 'DESTINATION'));
538 $reports->addReport(RC_GL, 709, _('Ta&x Report'),
539 array( _('Start Date') => 'DATEBEGINTAX',
540 _('End Date') => 'DATEENDTAX',
541 _('Summary Only') => 'YES_NO',
542 _('Comments') => 'TEXTBOX',
543 _('Orientation') => 'ORIENTATION',
544 _('Destination') => 'DESTINATION'));
545 $reports->addReport(RC_GL, 710, _('Audit Trail'),
546 array( _('Start Date') => 'DATEBEGINM',
547 _('End Date') => 'DATEENDM',
548 _('Type') => 'SYS_TYPES_ALL',
549 _('User') => 'USERS',
550 _('Comments') => 'TEXTBOX',
551 _('Orientation') => 'ORIENTATION',
552 _('Destination') => 'DESTINATION'));
554 add_custom_reports($reports);
556 echo $reports->getDisplay();