If an intercompany sales order is delivered, invoice the sales order in the selling company. The invoice is issued to the buying legal entity.
For more information, see Create sales order invoices.
Steps
Go to Accounts receivable > Orders > All sales orders.
In the list, find and select the desired record.
On the action pane, on the invoice tab, in the generate group, click Invoice.
Click OK.
Click OK.