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.

Method 1: Display Attribute in the JSON Extraction (DocBits config)
Go to Settings
Go to Document Types
Select Invoice/E-Doc

Open the "FATTURAPA" tab
Click on JSON

To create a draft, click the pen icon

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.
Save the draft

Make sure that your draft is the active one.

Method 2: Display Attribute in the XSL Output (HTML/PDF preview)
Go to Settings
Go to Document Types
Select Invoice/E-Doc

Open the "FATTURAPA" tab
Click on XLST

To create a draft, click the pen icon

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.
Save the draft

Make sure that your draft is the active one.

Last updated
Was this helpful?