Automatically create credit notes