Single-document output and email

Understand e-Invoice output filenames and MIME types

Interpret the route-generated name and headers. 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: CRM staffPermission: Staff loginModule v1.0.0
Jump to steps
Where to goAdmin Area → invoice/credit note → e-Invoice → View/Download
Before you start
  • Use an authorised account and confirm the source CRM record or setting is correct.
  • Follow the exact route shown above; do not force database values to imitate a completed action.

What you’ll accomplish

Interpret the route-generated name and headers. These instructions follow the supplied module’s live hooks, controller, model, view and validation flow.

Follow these steps

  1. Generate XML and JSON test outputs.
  2. Verify invoice_{id}.xml/json or credit_note_{id}.xml/json for single-record output.
  3. Verify application/json for JSON and text/xml for XML.

Fields and options to review

Action scopeInterpret the route-generated name and headers.
Module version1.0.0
NavigationAdmin Area → invoice/credit note → e-Invoice → View/Download
EvidenceVerify the stored record, status, output, email, event or log produced by the code path.

Rules the system enforces

  • The controller contains a TODO to use formatted sales numbers for single output; version 1.0.0 uses record type and ID.
  • Download sends attachment/binary headers; View sends inline content disposition.

How to confirm it worked

  • The requested record, output or setting is created or updated through the supported module flow.
  • Any related status, count, email, audit/event, PDF/file or queue evidence agrees with the source action.
  • An error message is investigated rather than bypassed.

Security, privacy and operational checks

  • Apply least privilege and verify the correct customer, lead, sales document or recipient before processing.
  • Protect public tokens, recipient data, IP/browser evidence, templates and exported files according to organisational policy.
  • Test configuration changes with controlled records before production-wide use.
  • Retain or delete evidence only under an authorised retention process.