As a work around I first saved the Credit Memo the...
# suitescript
r
As a work around I first saved the Credit Memo then loaded it and applied the invoice...