When creating invoice from sale order , how to get lines of sale order and merge them in one invoice from code ?
Thanks.