Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions addons/ar-arca-v4.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,10 @@ The VAT status is validated against the document type:

## Validation Rules

Validation rules check each struct against a set of assertions and report any
failures with a unique code and message.
[Read more about validation](/overview/validation).

<AccordionGroup>
<Accordion title="bill.Invoice">

Expand Down
29 changes: 13 additions & 16 deletions addons/br-nfe-v4.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,19 @@ Key: `br-nfe-v4`

## Scenarios

### bill/invoice
Scenarios attach notes and extensions to a document when its filters match.
[Read more about scenarios](/overview/scenarios).

<Accordion title="standard, credit-note, debit-note">

**Filters:**
- **Types:** `standard`, `credit-note`, `debit-note`

**Output:**
- **Extensions:** `br-nfe-model:55`
</Accordion>

<Accordion title="standard, credit-note, debit-note, #simplified">
<AccordionGroup>
<Accordion title="bill/invoice">

**Filters:**
- **Types:** `standard`, `credit-note`, `debit-note`
- **Tags:** `simplified`
| Tags | Type | Output |
| --- | --- | --- |
| - | `standard`<br />`credit-note`<br />`debit-note` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"br-nfe-model": "55"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `simplified` | `standard`<br />`credit-note`<br />`debit-note` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"br-nfe-model": "65"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |

**Output:**
- **Extensions:** `br-nfe-model:65`
</Accordion>
</AccordionGroup>

## Extensions
### Fiscal Document Model Code
Expand Down Expand Up @@ -136,6 +129,10 @@ Indicates a special tax regime that a party is subject to.

## Validation Rules

Validation rules check each struct against a set of assertions and report any
failures with a unique code and message.
[Read more about validation](/overview/validation).

<AccordionGroup>
<Accordion title="bill.Invoice">

Expand Down
4 changes: 4 additions & 0 deletions addons/br-nfse-v1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ Pattern: `^\d{6}$`

## Validation Rules

Validation rules check each struct against a set of assertions and report any
failures with a unique code and message.
[Read more about validation](/overview/validation).

<AccordionGroup>
<Accordion title="bill.Invoice">

Expand Down
4 changes: 4 additions & 0 deletions addons/co-dian-v2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,10 @@ For example:

## Validation Rules

Validation rules check each struct against a set of assertions and report any
failures with a unique code and message.
[Read more about validation](/overview/validation).

<AccordionGroup>
<Accordion title="bill.Invoice">

Expand Down
4 changes: 4 additions & 0 deletions addons/de-xrechnung-v3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ For more information on XRechnung, visit [www.xrechnung.de](https://www.xrechnun

## Validation Rules

Validation rules check each struct against a set of assertions and report any
failures with a unique code and message.
[Read more about validation](/overview/validation).

<AccordionGroup>
<Accordion title="bill.Invoice">

Expand Down
103 changes: 21 additions & 82 deletions addons/es-facturae-v3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,91 +17,26 @@ options. See the [Extensions](#extensions) section for possible values.

## Scenarios

### bill/invoice
Scenarios attach notes and extensions to a document when its filters match.
[Read more about scenarios](/overview/scenarios).

<Accordion title="standard, corrective, credit-note, debit-note">

**Filters:**
- **Types:** `standard`, `corrective`, `credit-note`, `debit-note`

**Output:**
- **Extensions:** `es-facturae-doc-type:FC`
</Accordion>

<Accordion title="#simplified">

**Filters:**
- **Tags:** `simplified`

**Output:**
- **Extensions:** `es-facturae-doc-type:FA`
</Accordion>

<Accordion title="#self-billed">

**Filters:**
- **Tags:** `self-billed`

**Output:**
- **Extensions:** `es-facturae-doc-type:AF`
</Accordion>

<Accordion title="standard">

**Filters:**
- **Types:** `standard`

**Output:**
- **Extensions:** `es-facturae-invoice-class:OO`
</Accordion>

<Accordion title="corrective, credit-note, debit-note">

**Filters:**
- **Types:** `corrective`, `credit-note`, `debit-note`

**Output:**
- **Extensions:** `es-facturae-invoice-class:OR`
</Accordion>

<Accordion title="#summary">

**Filters:**
- **Tags:** `summary`

**Output:**
- **Extensions:** `es-facturae-invoice-class:OC`
</Accordion>

<Accordion title="standard, #copy">

**Filters:**
- **Types:** `standard`
- **Tags:** `copy`

**Output:**
- **Extensions:** `es-facturae-invoice-class:CO`
</Accordion>

<Accordion title="corrective, #copy">

**Filters:**
- **Types:** `corrective`
- **Tags:** `copy`

**Output:**
- **Extensions:** `es-facturae-invoice-class:CR`
</Accordion>

<Accordion title="standard, #copy, #summary">

**Filters:**
- **Types:** `standard`
- **Tags:** `copy`, `summary`
<AccordionGroup>
<Accordion title="bill/invoice">

| Tags | Type | Output |
| --- | --- | --- |
| - | `standard`<br />`corrective`<br />`credit-note`<br />`debit-note` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-facturae-doc-type": "FC"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `simplified` | - | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-facturae-doc-type": "FA"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `self-billed` | - | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-facturae-doc-type": "AF"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| - | `standard` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-facturae-invoice-class": "OO"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| - | `corrective`<br />`credit-note`<br />`debit-note` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-facturae-invoice-class": "OR"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `summary` | - | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-facturae-invoice-class": "OC"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `copy` | `standard` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-facturae-invoice-class": "CO"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `copy` | `corrective` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-facturae-invoice-class": "CR"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `copy`<br />`summary` | `standard` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-facturae-invoice-class": "CC"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |

**Output:**
- **Extensions:** `es-facturae-invoice-class:CC`
</Accordion>
</AccordionGroup>

## Extensions
### FacturaE: Document Type
Expand Down Expand Up @@ -161,6 +96,10 @@ FacturaE requires a specific and single code that explains why the previous invo

## Validation Rules

Validation rules check each struct against a set of assertions and report any
failures with a unique code and message.
[Read more about validation](/overview/validation).

<AccordionGroup>
<Accordion title="bill.Invoice">

Expand Down
51 changes: 15 additions & 36 deletions addons/es-sii-v1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,21 @@ options. See the [Extensions](#extensions) section for possible values.

## Scenarios

### bill/invoice
Scenarios attach notes and extensions to a document when its filters match.
[Read more about scenarios](/overview/scenarios).

<Accordion title="Standard Invoice">

**Filters:**
- **Types:** `standard`

**Output:**
- **Extensions:** `es-sii-doc-type:F1`
</Accordion>

<Accordion title="Simplified Invoice">

**Filters:**
- **Types:** `standard`
- **Tags:** `simplified`

**Output:**
- **Extensions:** `es-sii-doc-type:F2`
</Accordion>

<Accordion title="Replacement Invoice">

**Filters:**
- **Types:** `standard`
- **Tags:** `replacement`

**Output:**
- **Extensions:** `es-sii-doc-type:F3`
</Accordion>

<Accordion title="Simplified Corrective Invoice">
<AccordionGroup>
<Accordion title="bill/invoice">

**Filters:**
- **Types:** `corrective`, `credit-note`, `debit-note`
- **Tags:** `simplified`
| Tags | Type | Output |
| --- | --- | --- |
| - | `standard` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-sii-doc-type": "F1"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `simplified` | `standard` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-sii-doc-type": "F2"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `replacement` | `standard` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-sii-doc-type": "F3"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `simplified` | `corrective`<br />`credit-note`<br />`debit-note` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-sii-doc-type": "R5"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |

**Output:**
- **Extensions:** `es-sii-doc-type:R5`
</Accordion>
</AccordionGroup>

## Extensions
### Invoice Type
Expand Down Expand Up @@ -337,6 +312,10 @@ Doesn't map directly to any field. Used internally to structure the breakdown da

## Validation Rules

Validation rules check each struct against a set of assertions and report any
failures with a unique code and message.
[Read more about validation](/overview/validation).

<AccordionGroup>
<Accordion title="bill.Invoice">

Expand Down
4 changes: 4 additions & 0 deletions addons/es-tbai-v1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ data.

## Validation Rules

Validation rules check each struct against a set of assertions and report any
failures with a unique code and message.
[Read more about validation](/overview/validation).

<AccordionGroup>
<Accordion title="bill.Invoice">

Expand Down
51 changes: 15 additions & 36 deletions addons/es-verifactu-v1.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,46 +20,21 @@ options. See the [Extensions](#extensions) section for possible values.

## Scenarios

### bill/invoice
Scenarios attach notes and extensions to a document when its filters match.
[Read more about scenarios](/overview/scenarios).

<Accordion title="Standard Invoice">

**Filters:**
- **Types:** `standard`

**Output:**
- **Extensions:** `es-verifactu-doc-type:F1`
</Accordion>

<Accordion title="Simplified Invoice">

**Filters:**
- **Types:** `standard`
- **Tags:** `simplified`

**Output:**
- **Extensions:** `es-verifactu-doc-type:F2`
</Accordion>

<Accordion title="Replacement Invoice">

**Filters:**
- **Types:** `standard`
- **Tags:** `replacement`

**Output:**
- **Extensions:** `es-verifactu-doc-type:F3`
</Accordion>

<Accordion title="Simplified Corrective Invoice">
<AccordionGroup>
<Accordion title="bill/invoice">

**Filters:**
- **Types:** `corrective`, `credit-note`, `debit-note`
- **Tags:** `simplified`
| Tags | Type | Output |
| --- | --- | --- |
| - | `standard` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-verifactu-doc-type": "F1"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `simplified` | `standard` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-verifactu-doc-type": "F2"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `replacement` | `standard` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-verifactu-doc-type": "F3"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |
| `simplified` | `corrective`<br />`credit-note`<br />`debit-note` | <code class="code-block">&#123;<br/>&nbsp;&nbsp;"ext": &#123;<br/>&nbsp;&nbsp;&nbsp;&nbsp;"es-verifactu-doc-type": "R5"<br/>&nbsp;&nbsp;&#125;<br/>&#125;</code> |

**Output:**
- **Extensions:** `es-verifactu-doc-type:R5`
</Accordion>
</AccordionGroup>

## Extensions
### Invoice Type Code
Expand Down Expand Up @@ -315,6 +290,10 @@ extension will be set to `T`.

## Validation Rules

Validation rules check each struct against a set of assertions and report any
failures with a unique code and message.
[Read more about validation](/overview/validation).

<AccordionGroup>
<Accordion title="bill.Invoice">

Expand Down
Loading
Loading