There were different scenarios when creating a sales order with item or without item.
- In scenario 1 when using a customer location, sales account was set from posting class or customer location.
- In scenario 2 when using a posting class, sales account was set from posting class or customer location.
- In scenario 3 when using a warehouse, sales account was set from posting class or customer location.
- In scenario 4 when using a reason code, sales account was set from posting class or customer location.
Now the sales order lines have been fixed to match the right sales accounts.