Cannot cancel Invoice

Solved it.!

Replaced done(function(){... with then(function(){...