Open the Delivery Note PDF from a client invoice
Allow an authorised customer contact to open the linked PDF from the CRM client invoice page. The guide then takes you through the correct route, the checks to complete before making changes, the workflow in order, and the evidence to review afterwards.
Where to goClient Portal → Invoices → Open invoice → View DN PDF
What you’ll accomplish
Allow an authorised customer contact to open the linked PDF from the CRM client invoice page. This guide follows the supplied Delivery Note module’s live hooks, controller actions, model rules, views and stored side effects.
Follow these steps
- Sign in to the client portal and open the invoice, or use the exact invoice hash route authorised by the CRM.
- Select View DN PDF when the module button appears.
- Allow the PDF to open in a new tab.
- Check the delivery-note reference and source invoice.
- Close the document when finished.
Fields and options to review
- Invoice ID
- Exact non-empty invoice hash when supplied
- Logged-in client ID comparison
- Existing non-void delivery note
Rules the system enforces
- The customer hook adds the button only when it can resolve an authorised invoice and active note.
- The public invoice-PDF controller validates the exact invoice hash.
- Successful access logs `pdf_viewed_from_invoice`.
- The admin PDF URL is not used for client access.
How to confirm it worked
- An authorised customer can retrieve the invoice-linked delivery-note PDF without admin access.
Safety checks and troubleshooting
- Do not share a different customer’s invoice hash or PDF link.
Stay within the supported flowDo not force database values, expose secure tokens, bypass permission checks, replace a stored signature or invent a status or interface that the supplied code does not implement.
Continue with related guidance
Was this guide useful?Your response is stored only in this browser.
