1. Conditions and Purpose of the Feature

  1. Why This Feature Is Needed

  2. Availability Condition



2. Letterhead and Seller Details

  1. Seller

  2. Choosing a Letterhead



3. Data Sufficiency and Possible Errors

  1. Required Data

  2. Consequences of Insufficient Data

  3. Result of Successful Generation



4. Invoice Validation and Verification of Readiness for ZUGFeRD PDF creation


The ValidateZugferd operation retrieves invoices for a given seller within a provided date range, performs validation checks on each invoice, and returns an HTML table summarizing those checks.

Parameters

ParameterTypeRequired?Description

sellerId

Long

Yes

Name id of company to be used as seller during validation process.

from

String

No

Start date in yyyy-MM-dd format. If omitted along with to, the last 7 days are used.

to

String

No

If only to is provided (without from), an error is thrown. If omitted, the current date is used.

Date-Handling Logic

If both from and to are missing, the date range defaults to the last seven days (from now - 7 days to now).
If from is provided but to is missing, to defaults to the current date.
If to is provided but from is missing, the operation throws an error (it does not allow a “to-only” date).

The service returns an HTML-formatted string containing:

A heading stating "Invoice Validation Results".
A message showing which date range was used.
A table summarizing validation checks, with these columns:

How to Invoke

Nuxeo Automation Scripting or Chains: Pass the parameters (from, to, sellerId) into the ValidateZugferd operation.

Use the CaseBrowser administrative endpoint (you need to be logged in as Administrator) - $dmsAddress/casebrowser/admin/operation/ValidateZugferd?sellerId=$sellerId&from=$fromDate&to=$toDate

Avoid using large time periods as it might be time consuming (~0.1-0.5s per invoice)