Invoice integration and note creation

Use View DN PDF from the invoice More menu

Follow this guide to open the generated delivery-note PDF from the invoice’s existing actions menu. 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.

Audience: Invoice and delivery staffPermission: Delivery Note: ViewModule v1.0.0
Jump to steps
Where to goAdmin Area → Invoices → Open invoice → More → View DN PDF

What you’ll accomplish

Open the generated delivery-note PDF from the invoice’s existing actions menu. This guide follows the supplied Delivery Note module’s live hooks, controller actions, model rules, views and stored side effects.

Follow these steps

  1. Go to an invoice with a non-void note.
  2. Go to the More actions menu.
  3. Select View DN PDF.
  4. Allow the document to open in a new tab.
  5. Verify the reference and invoice details before printing or sharing.

Fields and options to review

  • Menu entry appears only when note metadata includes a PDF URL
  • New-tab target uses `noopener`
  • Admin PDF route uses note ID

Rules the system enforces

  • The module inserts the entry without replacing core invoice actions.
  • No entry is added when there is no active note.
  • PDF generation is permission-protected through the admin controller.

How to confirm it worked

  • The authorised staff member receives the current generated PDF for the linked note.

Safety checks and troubleshooting

  • Use the secure client/public path for recipient access rather than sharing an admin URL.
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.