Sales Rep Commissions

When does NetSuite record the sales rep commissions liability? When the sale is shipped? Or, when the customer pays?