If you can't select the 'Unallocate' option, find out why you can't unallocate a transaction.
The customer discount is unallocated and the transaction type changes to a customer credit (SC).