TaxDocument
Updated
A tax document is a country-blind e-invoice envelope. The country pack fills it; the host connector later signs and posts. There is no send button on this card.
| Kind | Document |
| Module | Tax |
| Menu | Tax → Documents → Tax documents |
Fields#
| Field | Caption | Points at |
|---|---|---|
ID |
Number | number sequence |
LegalEntity |
Legal entity | LegalEntity |
Authority |
Authority | TaxAuthority |
SourceDocumentType |
Source type | string |
SourceDocumentId |
Source | guid |
EInvoiceKind |
Kind | string |
InvoiceType |
Document class | string |
Uuid |
UUID | guid |
ExternalId |
External id | string |
PreviousInvoiceHash |
Previous hash | string |
InvoiceHash |
Invoice hash | string |
InvoiceCounter |
Chain counter | integer |
Payload |
Payload | large text |
RejectionReason |
Rejection reason | string |
SourceDocumentType, SourceDocumentId, EInvoiceKind, and Uuid are required. Kind is the generic class (invoice / credit note / debit note). Document class is the country refinement and may be empty. Hash and counter fields stay empty for a regime that does not chain.
Commands and states#
There are no document commands on this card. The country package creates the envelope when the source document is posted. An outcome job moves Issued to Cleared, Reported, or Rejected.
| State | Read-only | What it means |
|---|---|---|
| Draft | no | Envelope exists, not yet issued. |
| Issued | no | Payload is ready. |
| Cleared | yes | A clearance flow accepted it. |
| Reported | yes | A reporting flow accepted it. |
| Rejected | no | The channel or authority refused it. |
Draft is the initial state. Declared transitions: Draft to Issued; Issued to Cleared, Reported, or Rejected; Rejected back to Issued.
Registers#
None. TaxDocumentTransactions writes no movement.