When rendering an invoice on the frontend: The system checks the invoice's hide files setting If no per-invoice setting exists, the global default is used If hide files is enabled AND status is NOT "Paid", the file list is hidden from the public view Once invoice status changes to "Paid", files become immediately visible