E-Invoice in client portal only

Using v5.10.57 Self-Hosted.

Is there a way to restrict the download of the E-invoice XML to the client portal only?
Currently, when I activate E-Invoice, it gets attached to the Email, and is also downloadable from the client portal. If I disable it, then it’s not available in the Email (as expected) nor is it downloadable from the client portal.

Hi,

Can you check if attach UBL is enabled on Settings > Email Settings.

Thanks for the prompt response @hillel!
If E-Invoice is enabled, I get the XML attached regardless of the UBL attachement setting.

Hmm… that may be a bug, I suggest asking in a discussion.