Skip to content

FIX validate invoices before AEAT submission - #40

Open
braito4 wants to merge 1 commit into
garacil:mainfrom
braito4:fix/validate-invoice-before-submission
Open

FIX validate invoices before AEAT submission#40
braito4 wants to merge 1 commit into
garacil:mainfrom
braito4:fix/validate-invoice-before-submission

Conversation

@braito4

@braito4 braito4 commented Jul 27, 2026

Copy link
Copy Markdown

Summary

Strengthens local invoice validation before generating or sending an AEAT payload.

Checks include:

  • complete and non-empty invoice identification
  • supported invoice type
  • issuer and description length limits
  • recipient requirements, including forbidding recipients on F2/R5
  • recipient and breakdown count limits
  • mandatory chain configuration
  • SHA-256 fingerprint format

Validation

Focused valid and invalid invoice cases pass on PHP 8.3, 8.4 and 8.5; syntax and git diff --check pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant