-$reports->addReportClass(_('Customer'));
-$reports->addReport(_('Customer'),101,_('Customer &Balances'),
- array( new ReportParam(_('Start Date'),'DATEBEGIN'),
- new ReportParam(_('End Date'),'DATEENDM'),
- new ReportParam(_('Customer'),'CUSTOMERS_NO_FILTER'),
- new ReportParam(_('Currency Filter'),'CURRENCY'),
- new ReportParam(_('Comments'),'TEXTBOX'),
- new ReportParam(_('Destination'),'DESTINATION')));
-$reports->addReport(_('Customer'),102,_('&Aged Customer Analysis'),
- array( new ReportParam(_('End Date'),'DATE'),
- new ReportParam(_('Customer'),'CUSTOMERS_NO_FILTER'),
- new ReportParam(_('Currency Filter'),'CURRENCY'),
- new ReportParam(_('Summary Only'),'YES_NO'),
- new ReportParam(_('Graphics'),'GRAPHIC'),
- new ReportParam(_('Comments'),'TEXTBOX'),
- new ReportParam(_('Destination'),'DESTINATION')));
-$reports->addReport(_('Customer'),103,_('Customer &Detail Listing'),
- array( new ReportParam(_('Activity Since'),'DATEBEGIN'),
- new ReportParam(_('Sales Areas'),'AREAS'),
- new ReportParam(_('Sales Folk'),'SALESMEN'),
- new ReportParam(_('Activity Greater Than'),'TEXT'),
- new ReportParam(_('Activity Less Than'),'TEXT'),
- new ReportParam(_('Comments'),'TEXTBOX'),
- new ReportParam(_('Destination'),'DESTINATION')));
-$reports->addReport(_('Customer'),104,_('&Price Listing'),
- array( new ReportParam(_('Currency Filter'),'CURRENCY'),
- new ReportParam(_('Inventory Category'),'CATEGORIES'),
- new ReportParam(_('Sales Types'),'SALESTYPES'),
- new ReportParam(_('Show Pictures'),'YES_NO'),
- new ReportParam(_('Show GP %'),'YES_NO'),
- new ReportParam(_('Comments'),'TEXTBOX'),
- new ReportParam(_('Destination'),'DESTINATION')));
-$reports->addReport(_('Customer'),105,_('&Order Status Listing'),
- array( new ReportParam(_('Start Date'),'DATEBEGINM'),
- new ReportParam(_('End Date'),'DATEENDM'),
- new ReportParam(_('Inventory Category'),'CATEGORIES'),
- new ReportParam(_('Stock Location'),'LOCATIONS'),
- new ReportParam(_('Back Orders Only'),'YES_NO'),
- new ReportParam(_('Comments'),'TEXTBOX'),
- new ReportParam(_('Destination'),'DESTINATION')));
-$reports->addReport(_('Customer'),106,_('&Salesman Listing'),
- array( new ReportParam(_('Start Date'),'DATEBEGINM'),
- new ReportParam(_('End Date'),'DATEENDM'),
- new ReportParam(_('Summary Only'),'YES_NO'),
- new ReportParam(_('Comments'),'TEXTBOX'),
- new ReportParam(_('Destination'),'DESTINATION')));
-$reports->addReport(_('Customer'),107,_('Print &Invoices/Credit Notes'),
- array( new ReportParam(_('From'),'INVOICE'),
- new ReportParam(_('To'),'INVOICE'),
- new ReportParam(_('Currency Filter'),'CURRENCY'),
- new ReportParam(_('Bank Account'),'BANK_ACCOUNTS'),
- new ReportParam(_('email Customers'),'YES_NO'),
- new ReportParam(_('Payment Link'),'PAYMENT_LINK'),
- new ReportParam(_('Comments'),'TEXTBOX')));
-$reports->addReport(_('Customer'),110,_('Print &Deliveries'),
- array( new ReportParam(_('From'),'DELIVERY'),
- new ReportParam(_('To'),'DELIVERY'),
- new ReportParam(_('email Customers'),'YES_NO'),
- new ReportParam(_('Comments'),'TEXTBOX')));
-$reports->addReport(_('Customer'),108,_('Print &Statements'),
- array( new ReportParam(_('Customer'),'CUSTOMERS_NO_FILTER'),
- new ReportParam(_('Currency Filter'),'CURRENCY'),
- new ReportParam(_('Bank Account'),'BANK_ACCOUNTS'),
- new ReportParam(_('Email Customers'),'YES_NO'),
- new ReportParam(_('Comments'),'TEXTBOX')));
-$reports->addReport(_('Customer'),109,_('&Print Sales Orders'),
- array( new ReportParam(_('From'),'ORDERS'),
- new ReportParam(_('To'),'ORDERS'),
- new ReportParam(_('Currency Filter'),'CURRENCY'),
- new ReportParam(_('Bank Account'),'BANK_ACCOUNTS'),
- new ReportParam(_('Email Customers'),'YES_NO'),
- new ReportParam(_('Print as Quote'),'YES_NO'),
- new ReportParam(_('Comments'),'TEXTBOX')));
-$reports->addReport(_('Customer'),111,_('&Print Sales Quotations'),
- array( new ReportParam(_('From'),'QUOTATIONS'),
- new ReportParam(_('To'),'QUOTATIONS'),
- new ReportParam(_('Currency Filter'),'CURRENCY'),
- new ReportParam(_('Bank Account'),'BANK_ACCOUNTS'),
- new ReportParam(_('Email Customers'),'YES_NO'),
- new ReportParam(_('Comments'),'TEXTBOX')));
+$reports->addReportClass(_('Customer'), RC_CUSTOMER);
+$reports->addReport(RC_CUSTOMER, 101, _('Customer &Balances'),
+ array( _('Start Date') => 'DATEBEGIN',
+ _('End Date') => 'DATEENDM',
+ _('Customer') => 'CUSTOMERS_NO_FILTER',
+ _('Show Balance') => 'YES_NO',
+ _('Currency Filter') => 'CURRENCY',
+ _('Suppress Zeros') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_CUSTOMER, 102, _('&Aged Customer Analysis'),
+ array( _('End Date') => 'DATE',
+ _('Customer') => 'CUSTOMERS_NO_FILTER',
+ _('Currency Filter') => 'CURRENCY',
+ _('Show Also Allocated') => 'YES_NO',
+ _('Summary Only') => 'YES_NO',
+ _('Suppress Zeros') => 'YES_NO',
+ _('Graphics') => 'GRAPHIC',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_CUSTOMER, 115, _('Customer Trial Balance'),
+ array( _('Start Date') => 'DATEBEGIN',
+ _('End Date') => 'DATEENDM',
+ _('Customer') => 'CUSTOMERS_NO_FILTER',
+ _('Sales Areas') => 'AREAS',
+ _('Sales Folk') => 'SALESMEN',
+ _('Currency Filter') => 'CURRENCY',
+ _('Suppress Zeros') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_CUSTOMER, 103, _('Customer &Detail Listing'),
+ array( _('Activity Since') => 'DATEBEGIN',
+ _('Sales Areas') => 'AREAS',
+ _('Sales Folk') => 'SALESMEN',
+ _('Activity Greater Than') => 'TEXT',
+ _('Activity Less Than') => 'TEXT',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_CUSTOMER, 114, _('Sales &Summary Report'),
+ array( _('Start Date') => 'DATEBEGINTAX',
+ _('End Date') => 'DATEENDTAX',
+ _('Tax Id Only') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_CUSTOMER, 104, _('&Price Listing'),
+ array( _('Currency Filter') => 'CURRENCY',
+ _('Inventory Category') => 'CATEGORIES',
+ _('Sales Types') => 'SALESTYPES',
+ _('Show Pictures') => 'YES_NO',
+ _('Show GP %') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_CUSTOMER, 105, _('&Order Status Listing'),
+ array( _('Start Date') => 'DATEBEGINM',
+ _('End Date') => 'DATEENDM',
+ _('Inventory Category') => 'CATEGORIES',
+ _('Stock Location') => 'LOCATIONS',
+ _('Back Orders Only') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_CUSTOMER, 106, _('&Salesman Listing'),
+ array( _('Start Date') => 'DATEBEGINM',
+ _('End Date') => 'DATEENDM',
+ _('Summary Only') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION',
+ _('Destination') => 'DESTINATION'));
+$reports->addReport(RC_CUSTOMER, 107, _('Print &Invoices'),
+ array( _('From') => 'INVOICE',
+ _('To') => 'INVOICE',
+ _('Currency Filter') => 'CURRENCY',
+ _('email Customers') => 'YES_NO',
+ _('Payment Link') => 'PAYMENT_LINK',
+ _('Comments') => 'TEXTBOX',
+ _('Customer') => 'CUSTOMERS_NO_FILTER',
+ _('Orientation') => 'ORIENTATION'
+));
+$reports->addReport(RC_CUSTOMER, 113, _('Print &Credit Notes'),
+ array( _('From') => 'CREDIT',
+ _('To') => 'CREDIT',
+ _('Currency Filter') => 'CURRENCY',
+ _('email Customers') => 'YES_NO',
+ _('Payment Link') => 'PAYMENT_LINK',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
+$reports->addReport(RC_CUSTOMER, 110, _('Print &Deliveries'),
+ array( _('From') => 'DELIVERY',
+ _('To') => 'DELIVERY',
+ _('email Customers') => 'YES_NO',
+ _('Print as Packing Slip') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
+$reports->addReport(RC_CUSTOMER, 108, _('Print &Statements'),
+ array( _('Customer') => 'CUSTOMERS_NO_FILTER',
+ _('Currency Filter') => 'CURRENCY',
+ _('Show Also Allocated') => 'YES_NO',
+ _('Email Customers') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
+$reports->addReport(RC_CUSTOMER, 109, _('&Print Sales Orders'),
+ array( _('From') => 'ORDERS',
+ _('To') => 'ORDERS',
+ _('Currency Filter') => 'CURRENCY',
+ _('Email Customers') => 'YES_NO',
+ _('Print as Quote') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
+$reports->addReport(RC_CUSTOMER, 111, _('&Print Sales Quotations'),
+ array( _('From') => 'QUOTATIONS',
+ _('To') => 'QUOTATIONS',
+ _('Currency Filter') => 'CURRENCY',
+ _('Email Customers') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));
+$reports->addReport(RC_CUSTOMER, 112, _('Print Receipts'),
+ array( _('From') => 'RECEIPT',
+ _('To') => 'RECEIPT',
+ _('Currency Filter') => 'CURRENCY',
+ _('Email Customers') => 'YES_NO',
+ _('Comments') => 'TEXTBOX',
+ _('Orientation') => 'ORIENTATION'));