Now I got it, you have 2 Options to resolve this:
* you have to Change the Code at the class method, SalesInvoiceJournalPostBase.checkSourceLine(), instead of salesLine.CustGroup, you have to use the invoiceaccount's custgroup.
or
* update the invoiceaccount's custgroup to your Salestable and SalesLine.