To Enable or Disable Invoice link in messages:
Go to the "Setup".
Click on the "Bill Settings"
Under the Feedback settings, you can enable or disable "Show Bill" as per your preference.
Click on "Save".
A guide on how you can hide or show invoice in the feedback link.