Calculate commissions window opens correctly

Order To Cash: Customer Ledger Version 9.55

For a reversed and closed sales invoice, with a commission and an applied payment, the Calculate commissions (AR505500) window no longer fails to open.