Post Sales Invoice in Sales Order when already posted prepayment invoices

Hi everyone,

After I posted the prepayment invoices to record the unearned revenue, I would like to post 100% sales invoice on sales order, but it’s not possible, system pop-up the error message “Gen Prod Posting Group must have a value in Sales Line:…Line No.=20000”. This Sales Order has only one sales line.

Do any expert have solution idea?

Thanks

Vuong

If you turn on the debugger, then it will stop exactly at the entry giving the issue.
That the line is called 20000 doesn’t mean it have more than one actual line. Its just a line number and there are 10000 between each number.