You could use a combination of script/workflow and...
# accounting
k
You could use a combination of script/workflow and CSV imports on the credit memo to trigger a transform record action.