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

Subscription service based on FA
HRM CRM POS batch Themes

Re: Report modules has an error needs to be fixed.

Ok, this is an extension report, but I will have a look at it.

Joe

Re: Report modules has an error needs to be fixed.

also check the Cash flow Statement. Same issue, update that too,

Subscription service based on FA
HRM CRM POS batch Themes

Re: Report modules has an error needs to be fixed.

Hello @kvvaradha

This has been fixed And I have sent it to Janusz and asked him to upload it to the extension repo.

Thank you for finding this issue. And a Happy New Year to you and the rest of the members.

/Joe

5 (edited by apmuthu 12/31/2018 03:54:44 am)

Re: Report modules has an error needs to be fixed.

If the $dim is acquired within the code, must it be declared global?
As $dim is declared global, is it necessary to acquire it again (I have disabled re-acquiring it in my commit).

The official repo has not yet been refreshed.

Retaining the same version and build numbers of the official extensions as of now, my unofficial repo has been updated.

That's probably the final commit in FA related repos for now in this year. Happy New Year ahead to all FA Members and their families.

Re: Report modules has an error needs to be fixed.

Happy New year to all the active community members and main contributors .

@joe , @apmuthu,  Happy New year buddies

Subscription service based on FA
HRM CRM POS batch Themes