Correct set accounting accounts for auto generated invoices on multicompany environment

On multicompany environment the create recurring invoices function will create all the invoices with accounting accounts belong to company currently selected by admin user.

This merge request solve that situation.
You don't need a new cursor for this purpose.