Earlier, in some circumstances, a wrong invoice/credit note was sent to AutoInvoice. This has now been fixed.