Topic: Aged Customer Analysis Report Selection Criteria

Hi,
I'm hoping someone can point me in the right direction.
The above report defaults to Show Also Allocated = Yes and Summary Only = No.

I would like to change those selections so the default selections are Show Also Allocated = No and Summary Only = Yes.

Can someone tell me the report and the code lines to change to get the desired result.

Many thanks in advance

TJ

Re: Aged Customer Analysis Report Selection Criteria

Find this file
/reporting/includes/reports_classes.inc

there find this:

if ($ctrl == '') 
{
    if (($id == 102 || $id == 202) && $cnt == 3) // set default Show Also Allocated to Yes in aged reports 2014-09-19 Joe Hunt
                    $_POST['PARAM_'.$cnt] = 1;
                
    if (isset($_COOKIE['select'][$id][$cnt])) // saved parameters 2010-10-06 Joe Hunt
                    $_POST['PARAM_'.$cnt] = $_COOKIE['select'][$id][$cnt];
                $ctrl = $this->get_ctrl('PARAM_'.$cnt, $type);
}

change the first part like this:

    if (( $id == 202 && $cnt == 3) || ($id == 102 && $cnt == 4 )) 
                    $_POST['PARAM_'.$cnt] = 1;