# Faktura

## Display attribute on every line item

If you want to display a specific attribute (like the Purchase Order number) on every line item, follow the steps below. The approach will differ depending on whether you need the attribute in the JSON extraction or in the XSL output.

<figure><img src="/files/FQ3v2BDVm9mS3KMD68yI" alt=""><figcaption></figcaption></figure>

### Method 1: Display Attribute in the JSON Extraction (DocBits config)

1. Go to **Settings**
2. Go to **Document Types**
3. Select **Invoice/E-Doc**

<figure><img src="/files/FHhpGZEvXkPQ1HVWZgpq" alt=""><figcaption></figcaption></figure>

4. Open the **"FATTURAPA"** tab
5. Click on **JSON**

<figure><img src="/files/7VSqhlUpfapkCLQ0IBkY" alt=""><figcaption></figcaption></figure>

6. To create a draft, click the **pen** icon

<figure><img src="/files/VEEzglAtWX613ZropJ2i" alt=""><figcaption></figcaption></figure>

7. Inside the `"tables"` array, add the specific column you want to display by providing a name and path:

```
{ 
"name": "PURCHASE_ORDER",    
"path":"path_to_source" 
}
```

**NOTE:** E-documents will always have the origin set to **Great Britain**, so the amounts will be saved in international format, using a **dot (.)** as the decimal separator.

8. Save the draft

<figure><img src="/files/hlM0jOf101QPV2SNSYks" alt=""><figcaption></figcaption></figure>

9. Make sure that your draft is the **active** one.

<figure><img src="/files/cDymS94urvLMSFFcuz93" alt=""><figcaption></figcaption></figure>

### Method 2: Display Attribute in the XSL Output (HTML/PDF preview)

1. Go to **Settings**
2. Go to **Document Types**
3. Select **Invoice/E-Doc**

<figure><img src="/files/FHhpGZEvXkPQ1HVWZgpq" alt=""><figcaption></figcaption></figure>

4. Open the **"FATTURAPA"** tab
5. **Click on XLST**

<figure><img src="/files/NHgtw6SYLGcPxgjSP1tv" alt=""><figcaption></figcaption></figure>

6. To create a draft, click the **pen** icon

<figure><img src="/files/VEEzglAtWX613ZropJ2i" alt=""><figcaption></figcaption></figure>

7. In the `<xsl:for-each select="path">` block that generates the table rows, add a snippet like this where you want the attribute to appear (e.g., in its own column):

```
<tr>
    <!-- Other columns ... -->

    <td>
        <!-- PO number -->
        <xsl:variable name="variable_name" select="value" />
        <xsl:value-of 
            select="path_to_attribute" 
        />
    </td>
</tr>
```

**NOTE:** E-documents will always have the origin set to **Great Britain**, so the amounts will be saved in international format, using a **dot (.)** as the decimal separator.

8. Save the draft

<figure><img src="/files/hlM0jOf101QPV2SNSYks" alt=""><figcaption></figcaption></figure>

9. Make sure that your draft is the **active** one.

<figure><img src="/files/cDymS94urvLMSFFcuz93" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.docbits.com/administration-and-setup/settings/global-settings/document-types/edi/faktura.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
