How to split sales order lines based on the supply order type in back to back
We have a back-to-back cycle, for example if an order is placed for 100 of an item in org 1 and only 50 of the item is available in org 1 and 20 in org 2
1- The 50 in org 1 will be reserved with supply type on-hand
2- A transfer order for the 20 in org 2 will be created with supply type transfer
3- A PR will be created for the remaining 30
Now if this happens the sales order line will have different supply types in this line like in screenshots below
How can we make the sales order line automatically split to multiple lines based on the supply type like in screenshots below