-$reports->addReportClass(_('Inventory'));
-$reports->addReport(_('Inventory'),301,_('Inventory &Valuation Report'),
- array( new ReportParam(_('Inventory Category'),'CATEGORIES'),
- new ReportParam(_('Location'),'LOCATIONS'),
- new ReportParam(_('Detailed Report'),'YES_NO'),
- new ReportParam(_('Comments'),'TEXTBOX'),
- new ReportParam(_('Destination'),'DESTINATION')));
-$reports->addReport(_('Inventory'),302,_('Inventory &Planning Report'),
- array( new ReportParam(_('Inventory Category'),'CATEGORIES'),
- new ReportParam(_('Location'),'LOCATIONS'),
- new ReportParam(_('Comments'),'TEXTBOX'),
- new ReportParam(_('Destination'),'DESTINATION')));
-$reports->addReport(_('Inventory'),303,_('Stock &Check Sheets'),
- array( new ReportParam(_('Inventory Category'),'CATEGORIES'),
- new ReportParam(_('Location'),'LOCATIONS'),
- new ReportParam(_('Show Pictures'),'YES_NO'),
- new ReportParam(_('Inventory Column'),'YES_NO'),
- new ReportParam(_('Comments'),'TEXTBOX'),
- new ReportParam(_('Destination'),'DESTINATION')));
-$reports->addReport(_('Inventory'),304,_('Inventory &Sales Report'),
- array( new ReportParam(_('Start Date'),'DATEBEGINM'),
- new ReportParam(_('End Date'),'DATEENDM'),
- new ReportParam(_('Inventory Category'),'CATEGORIES'),
- new ReportParam(_('Location'),'LOCATIONS'),
- new ReportParam(_('Detailed Report'),'YES_NO'),
- new ReportParam(_('Comments'),'TEXTBOX'),
- new ReportParam(_('Destination'),'DESTINATION')));
-
-$reports->addReportClass(_('Manufactoring'));
-$reports->addReport(_('Manufactoring'),401,_('&Bill of Material Listing'),
- array( new ReportParam(_('From component'),'ITEMS'),
- new ReportParam(_('To component'),'ITEMS'),
- new ReportParam(_('Comments'),'TEXTBOX'),
- new ReportParam(_('Destination'),'DESTINATION')));
- $reports->addReportClass(_('Dimensions'));
+$reports->addReportClass(_('Inventory'), RC_INVENTORY);
+$reports->addReport(RC_INVENTORY, 301, _('Inventory &Valuation Report'),
+ array( _('End Date') => 'DATE',
+ _('Inventory Category') => 'CATEGORIES',
+ _('Location') => 'LOCATIONS',
+ _('Summary Only') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_INVENTORY, 302, _('Inventory &Planning Report'),
+ array( _('Inventory Category') => 'CATEGORIES',
+ _('Location') => 'LOCATIONS',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_INVENTORY, 303, _('Stock &Check Sheets'),
+ array( _('Inventory Category') => 'CATEGORIES',
+ _('Location') => 'LOCATIONS',
+ _('Show Pictures') => 'YES_NO',
+ _('Inventory Column') => 'YES_NO',
+ _('Show Shortage') => 'YES_NO',
+ _('Suppress Zeros') => 'YES_NO',
+ _('Item Like') => 'TEXT',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_INVENTORY, 304, _('Inventory &Sales Report'),
+ array( _('Start Date') => 'DATEBEGINM',
+ _('End Date') => 'DATEENDM',
+ _('Inventory Category') => 'CATEGORIES',
+ _('Location') => 'LOCATIONS',
+ _('Customer') => 'CUSTOMERS_NO_FILTER',
+ _('Show Service Items') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_INVENTORY, 305, _('&GRN Valuation Report'),
+ array( _('Start Date') => 'DATEBEGINM',
+ _('End Date') => 'DATEENDM',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_INVENTORY, 306, _('Inventory P&urchasing Report'),
+ array( _('Start Date') => 'DATEBEGINM',
+ _('End Date') => 'DATEENDM',
+ _('Inventory Category') => 'CATEGORIES',
+ _('Location') => 'LOCATIONS',
+ _('Supplier') => 'SUPPLIERS_NO_FILTER',
+ _('Items') => 'ITEMS_P',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_INVENTORY, 307, _('Inventory &Movement Report'),
+ array( _('Start Date') => 'DATEBEGINM',
+ _('End Date') => 'DATEENDM',
+ _('Inventory Category') => 'CATEGORIES',
+ _('Location') => 'LOCATIONS',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_INVENTORY, 308, _('C&osted Inventory Movement Report'),
+ array( _('Start Date') => 'DATEBEGINM',
+ _('End Date') => 'DATEENDM',
+ _('Inventory Category') => 'CATEGORIES',
+ _('Location') => 'LOCATIONS',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_INVENTORY, 309,_('Item &Sales Summary Report'),
+ array( _('Start Date') => 'DATEBEGINM',
+ _('End Date') => 'DATEENDM',
+ _('Inventory Category') => 'CATEGORIES',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_INVENTORY, 310, _('Inventory Purchasing - &Transaction Based'),
+ array( _('Start Date') => 'DATEBEGINM',
+ _('End Date') => 'DATEENDM',
+ _('Inventory Category') => 'CATEGORIES',
+ _('Location') => 'LOCATIONS',
+ _('Supplier') => 'SUPPLIERS_NO_FILTER',
+ _('Items') => 'ITEMS_P',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+if (get_company_pref('use_manufacturing'))
+{
+ $reports->addReportClass(_('Manufacturing'), RC_MANUFACTURE);
+ $reports->addReport(RC_MANUFACTURE, 401, _('&Bill of Material Listing'),
+ array( _('From product') => 'ITEMS',
+ _('To product') => 'ITEMS',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+ $reports->addReport(RC_MANUFACTURE, 402, _('Work Order &Listing'),
+ array( _('Items') => 'ITEMS_ALL',
+ _('Location') => 'LOCATIONS',
+ _('Outstanding Only') => 'YES_NO',
+ _('Show GL Rows') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+ $reports->addReport(RC_MANUFACTURE, 409, _('Print &Work Orders'),
+ array( _('From') => 'WORKORDER',
+ _('To') => 'WORKORDER',
+ _('Email Locations') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
+}
+if (get_company_pref('use_fixed_assets'))
+{
+ $reports->addReportClass(_('Fixed Assets'), RC_FIXEDASSETS);
+ $reports->addReport(RC_FIXEDASSETS, 451, _('&Fixed Assets Valuation'),
+ array( _('End Date') => 'DATE',
+ _('Fixed Assets Class') => 'FCLASS',
+ _('Fixed Assets Location') => 'FLOCATIONS',
+ _('Summary Only') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+}
+$reports->addReportClass(_('Dimensions'), RC_DIMENSIONS);