Jump to content

Recommended Posts

Posted

A bug was introduced in 4.9.0 that causes the autodebit cron job to ignore the autodebit setting on an individual client in favor of the client group or company setting.  This only occurs when the client setting is false and one of the others is true.  This issue can be resolved by modifying app/models/invoices.php Invoices::getClientSettingSubquery() and replacing:


        $this->Record->select()
            ->from([
                '((' . $sql1 . ') UNION (' . $sql2 . ') UNION (' . $sql3 . ') UNION (' . $sql4 . '))' => 'temp'
            ]);

With


        $this->Record->select()
            ->from([
                '((' . $sql1 . ') UNION (' . $sql2 . ') UNION (' . $sql3 . ') UNION (' . $sql4 . '))' => 'temp'
            ])
            ->group('temp.client_id');

 

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...