> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Invoices

> Walk through Sample 3 in FlexiLayout Studio: build a FlexiLayout for a simple invoice with a table, capturing fields like Invoice Number and Total Amount.

<Warning>
  For the sake of simplicity, this sample uses a one-page document to describe the creation of a FlexiLayout for a simple invoice. Compared to the previous samples, this one includes a table.
</Warning>

This sample guides you through all the steps of FlexiLayout creation and, at the same time, teaches you some tricks you can use to describe the position of objects. Most importantly, it teaches you how to detect image objects that correspond to **Table** elements.

This sample refers to Sample 1 and Sample 2, which describe the creation of FlexiLayouts with blocks and elements of various types (except tables). Some of the basic operations are described there in greater detail.

The FlexiLayout Studio project with the test images and a ready-made FlexiLayout is located in `%public%\ABBYY\FlexiCapture\12.0\Samples\FLS\English\Invoice One-Page`.

The sample document is a simple but typical invoice. It differs from the previous examples in that it has a table field and some of its fields can be absent.

<Frame>
  <img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/sample3.gif?s=0beae42ab16ceb07467d9567d058f66d" alt="Screenshot of the sample one-page invoice document used in Sample 3 of ABBYY FlexiLayout Studio." width="595" height="842" data-path="images/flexi-capture/fls/sample3.gif" />
</Frame>

The following sections provide step-by-step instructions for creating a FlexiLayout.

The purpose of a FlexiLayout for this document is to ensure reliable detection of the following fields on all the test images (provided they occur on a document):

* **Invoice Number**
* **Invoice Date**
* **Delivery Address**
* **Total Quantity**
* **Total Amount**
* **Country**
* **Invoice Table** (only the following columns: **Reference**, **Designation**, **Quantity**, **Unit Price**, **Total**)

<Frame>
  <img src="https://mintcdn.com/abbyy/r-nfa7jujx5b9gKX/images/flexi-capture/fls/sample3_1.gif?s=03656bc1663284e115aedd1bed4b5567" alt="Screenshot of the sample invoice with the target capture fields marked, including Invoice Number, Invoice Date, Delivery Address, Total Quantity, Total Amount, Country, and the Invoice Table columns, in ABBYY FlexiLayout Studio." width="371" height="524" data-path="images/flexi-capture/fls/sample3_1.gif" />
</Frame>
