A test you can run to check that the setup below works.
How to run the test
Before you start
Customer and item commission groups and a sales group exist and are assigned to the customer and released product.
Commission posting rules exist.
Steps
Create a Commission calculation row with Item code Group, Customer code Group, the sales group, Before line discount, Revenue and a Commission percentage.
Invoice a sales order for that customer and item.
Invoice a second sales order for a customer that has no commission group.
Expected result
The first invoice posts a commission at the set percentage of revenue before line discount.
What should fail
The second invoice posts no commission because the combination doesn't match.