Split Lines in Autoinvoice
Is it possible, using a custom program, to split a line in ra_interface_lines?
I know it is possible to split the distributions and sales credits, but I want to split the line as I need to defer billing of the entire line until an external event happens. And yes, this will generate multiple AR invoices which is the desired outcome.
The business case is: Consolidate intercompany invoices generated over a period of days into a single invoice that represents a complete shipment performed by a different OU.
I have an operating unit (OU1) in another country that is constantly manufacturing and shipping internal sales orders. In a warehouse that is owned by another operating unit (OU2), the ISO's are received, consolidated by customer and then shipped across the border. I want to pause the OU1 lines in autoinvoice and then group them into a single invoice that represents the trip generated in OU2. In some cases, OU1 ships a quantity of 100, but OU2 only ships 20. So I want to split the OU1 autoinvoice line into two lines of 20 and 80 and