Topic: Report modules has an error needs to be fixed.
When i check Annual Balance Breakdown - Detailed and Annual Expense Breakdown - Detailed with dimension two enabled.Both through PARAM_4 undefined error. Than i checked the reports_custom.php for both. and i found that the dimension things are missing there.
here is it.
Annual Balance Breakdown - Detailed
global $reports, $dim;
$dim = get_company_pref('use_dimension');
if($dim == 2 ) {
$reports->addReport(RC_GL,"_annual_balance_breakdown",_('Annual &Balance Breakdown - Detailed'),
array( _('Report Period') => 'DATEENDM',
_('Dimension') => 'DIMENSIONS1',
_('Dimension 2') => 'DIMENSIONS2',
_('Comments') => 'TEXTBOX',
_('Destination') => 'DESTINATION'));
} elseif($dim == 1) {
$reports->addReport(RC_GL,"_annual_balance_breakdown",_('Annual &Balance Breakdown - Detailed'),
array( _('Report Period') => 'DATEENDM',
_('Dimension') => 'DIMENSIONS1',
_('Comments') => 'TEXTBOX',
_('Destination') => 'DESTINATION'));
} else {
$reports->addReport(RC_GL,"_annual_balance_breakdown",_('Annual &Balance Breakdown - Detailed'),
array( _('Report Period') => 'DATEENDM',
_('Comments') => 'TEXTBOX',
_('Destination') => 'DESTINATION'));
}
Annual Expense Breakdown - Detailed
global $reports, $dim;
$dim = get_company_pref('use_dimension');
if($dim == 2 ) {
$reports->addReport(RC_GL,"_annual_expense_breakdown",_('Annual &Expense Breakdown - Detailed'),
array( _('Report Period') => 'DATEENDM',
_('Dimension') => 'DIMENSIONS1',
_('Dimension 2') => 'DIMENSIONS2',
_('Comments') => 'TEXTBOX',
_('Destination') => 'DESTINATION'));
} elseif($dim == 1) {
$reports->addReport(RC_GL,"_annual_expense_breakdown",_('Annual &Expense Breakdown - Detailed'),
array( _('Report Period') => 'DATEENDM',
_('Dimension') => 'DIMENSIONS1',
_('Comments') => 'TEXTBOX',
_('Destination') => 'DESTINATION'));
} else {
$reports->addReport(RC_GL,"_annual_expense_breakdown",_('Annual &Expense Breakdown - Detailed'),
array( _('Report Period') => 'DATEENDM',
_('Comments') => 'TEXTBOX',
_('Destination') => 'DESTINATION'));
}
@joe - check this and update it on repository
HRM CRM POS batch Themes