Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Required Data

    • Patricia must contain enough information about the invoice (line items, prices, parties’ details, tax data, etc.).
    • The specific list of mandatory fields may vary but typically includes the seller’s information, buyer’s information, and details of goods/services.
  2. Consequences of Insufficient Data

    • If some critically important data is missing, the system may:
      • Return an error (if generation is impossible without these data), or
      • Create an invalid invoice (if the system allows partial completion, but the final document will not conform to the ZUGFeRD standard).
  3. Result of Successful Generation

    • Upon successful completion of the operation, a PDF file with the suffix _ZUGFeRD.pdf is created in the current case.
    • This makes it easier to locate and identify ZUGFeRD-compliant invoices within the DMS.


...

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:

  • Invoice ID
  • Scope
  • BT Code
  • Description
  • DB Field
  • Value
  • Result

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)


...