Skip to content

FIX distinguish RechazoPrevio states - #38

Open
braito4 wants to merge 1 commit into
garacil:mainfrom
braito4:fix/rechazo-previo-semantics
Open

FIX distinguish RechazoPrevio states#38
braito4 wants to merge 1 commit into
garacil:mainfrom
braito4:fix/rechazo-previo-semantics

Conversation

@braito4

@braito4 braito4 commented Jul 27, 2026

Copy link
Copy Markdown

Summary

Invoice::setAsPreviousRejection(true) previously emitted RechazoPrevio=X. AEAT distinguishes records that were submitted and rejected (S) from records that were never submitted (X).

This change maps:

  • true to S
  • null to X
  • false to an omitted field

createSubsanacion() now accepts the same three-state value.

Validation

Focused tests 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