SAFTCheck
Docs / inline-editor
feature.inline-editor

Inline editor — fix NIF, ATCUD and header dates in place

Edit the offending value next to the finding, re-validate immediately, no ERP round-trip needed.

What it does

The inline editor sits next to every fixable custom finding on the validation result page. Click Edit value, type the corrected value, click Apply — SAFTCheck patches the stored XML and re-validates, all without re-exporting from your ERP.

What's editable

FindingEditable elementInput type
nif.mod11 on HeaderHeader.TaxRegistrationNumber9-digit NIF
nif.mod11 on CustomerCustomerTaxID at the matched index9-digit NIF
nif.mod11 on SupplierSupplierTaxID at the matched index9-digit NIF
atcud.formatATCUD at the matched indexText — one-click UPPERCASE button
header.dates.future_endHeader.EndDateDate picker
header.dates.fiscal_year_mismatchHeader.FiscalYearYear
header.dates.created_before_endHeader.DateCreatedDate picker

The combined header.dates.range finding (StartDate must be earlier than EndDate) is not editable as one field — fix StartDate or EndDate individually instead.

How it stays safe

  • Whitelisted locations only. Each editable target maps to a named handler. Arbitrary XPath is never accepted.
  • Value sanitisation. The replacement is rejected if it is empty, longer than 255 chars, or contains < > & — XML metacharacters can never be smuggled into the document.
  • Byte-preserving replacement. The patch mutates the textual XML in place rather than round-tripping through the DOM, so encoding, indentation and the BOM-stripped state are preserved.
  • Re-validation. After every patch the file is re-validated end-to-end. If a patch breaks anything, you see it on the next page load.

How it's gated

Inline editing is part of the same unlock as the auto-fixed XML download and the PDF report:

  • Free / guest — sees the finding and a locked Unlock to edit — €7 CTA.
  • Single Fix (€7) — unlocks editing, auto-fix and PDF for that one validation token.
  • Pro (€19/month) and Agency (€49/month) — unlock all three across every validation, no per-file payment.

What it doesn't do

  • It does not invent values. SAFTCheck never guesses a NIF or an ATCUD validation code — you supply the correct one.
  • It does not edit transactional data (line items, totals, invoice references). Those must be corrected in the source ERP.
  • It does not auto-resolve XSD-level structural errors (missing elements, wrong order). The encoding family has the auto-fix; structural problems need a re-export.

After you edit

Once the file is clean, the Auto-fix and download and Download PDF report buttons at the top of the result page give you the corrected XML and a copy of the report you can hand to your accountant or attach to your AT submission.

Related

  • NIF Mod-11 — algorithm behind the NIF check.
  • ATCUD format — the rule the editor patches when you correct an ATCUD.
  • Header dates — the StartDate/EndDate/FiscalYear/DateCreated invariants.

Other rules

Usamos um cookie de sessão para autenticação e um cookie de idioma. Sem rastreadores de terceiros. Veja a nossa Política de Privacidade.