It seems that the "Get shipment lines" functionality on the sales invoice line does not work when the sell-to customer and bill-to customer are different. On the sales order the sell-to is Customer A, and Bill-to is customer B. The order lines are shipped but not yet invoiced. When we now create a draft sales invoice to customer A with customer B as bill-to, the get shipment lines doe not show any lines.
When setting the Bill-to to default, and removing the filter in the Get Shipment lines page, it show the lines, but you can of course not add them to the sales invoice because of this error:
The Bill-to Customer No. on the Sales Header yyyyyy and the Sales Shipment Header xxxxx must be the same.
Are we doing something wrong, or is this a bug in BC?
PS: i know we can post the invoice directly from the sales order, and that works. But in this use case we wanted to combine several orders on 1 invoice....