Skip to main content
Skip table of contents

Advanced Line Items job example

Using the EzeScan configuration used in the basic/simple Line Items job covered in the previous section; we have taken additional steps to streamline the process.

  • Firstly we will use the EzeScan Discovery module to automate the capture of the fields on the invoice plus lookup the supplier name from a database using the ABN number.

  • Secondly we will create Line Items templates for the particular supplier so that the operator will not have to "drag lines" around the grid processing window as occurred in the previous example. New templates are added as invoices are processed from different suppliers and in time a "collection" of supplier templates will be available for quick processing of your invoices.

It is assumed that you have the skills to create the Job and KFI as well as an understanding how the Discovery module functions; along with ability to use regular expressions (Regex's).

About the job

This advanced job will process an invoice with Discovery recognition and lookup tables, creating 3 different types of output files. As fields are populated with no user input processing will flow quickly to the next field until the Line Items grid input is reached

  1. PDF File for scanned/imported each invoice

  2. Header File (CSV "combined" format) for all invoices captured

  3. Line Items File (CSV format) for each invoice

Setting up the Job

The EzeScan Job imports 3 sample invoices

  • The job creates a PDF file for each invoice in the default output folder

    • Naming convention of files is Invoice # <<F6>> from <<F2>> dated <<F4>>

Setting up the KFI

The EzeScan KFI has 10 fields:

  1. Tax Invoice <<F1>>

  2. ABN <<F2>>

  3. Supplier (Search or Lookup Using ABN) <<F3>>

    • Performs an SQL query from a "lookup set" called abnlookup to locate the supplier name using the ABN…

      • Select Supplier_Name from abnlookup where ABN='<<F2>>'

  4. Order Number <<F4>>

    • Uses Discovery to locate the order number on the invoice

  5. Invoice Date <<F5>>

    • Uses Discovery to locate the invoice date

  6. Invoice Number <<F6>>

    • Uses Discovery to locate the invoice number

  7. Gross Total <<F7>>

    • Uses Discovery to locate the invoice gross amount

  8. Tax Total <<F8>>

    • Uses Discovery to locate the invoice tax amount

  9. Sub (Net) Total <<F9>>

    • Uses Discovery to locate the invoice net amount

  10. Line Items <<F10>>will create a new template based on the Supplier Name field <<F3>>

Set fields 1-9 to automatically process (1st check box on  Automation tab)_

KFI Output tab -

  • Combined output file On

  • Custom Format On

    • Quote Values On

    • In the File Format pane click Data. In the fields to check select all except Line Items. (Line Items data will be output in a separate CSV file)

    • Click Add Columns (Data and Header rows are automatically populated)

  • Custom Name - Header file for invoices processed <<S3(DD-MM-YYYY)>>

  • Type CSV

  • Extension CSV

  • Click OK to Save

 

There is no Upload associated to this set-up.

  • Files are exported to the default output folder set in the Job: C:\ProgramData\Outback Imaging\EzeScan\Output\<<JOB>>

 

Field 9 Line Items set-up - in KFI

After creating all KFI fields (above) the Line Items field needs to be configured

To enable Grid processing set Format tab Data Settings to Grid

A Grid Settings tab appears after the Format tab. Click the tab then Grid Settings button

 

Output tab

  • Output Headers On

  • enable Grid to Separate Output File set format CSV

  • File Name set to Line Items Inv# <<F5>> from <<F2>> dated <<F4>>.CSV

  • Quote Output On

 

View tab

  • Untick all options

The EzeScan KFI output file creates 2 x CSV files in the default output folder

  1. Output tab - Header file for invoices processed <<S3(DD-MM-YYYY)>>.csv

    • Combined output file

  2. Line Items field - Grid Settings tab Line Items Inv# <<F4>> from <<F3>> dated <<F5>>.csv

    • Grid to separate output file

There is no Upload associated to this set-up.

  • Files are exported to the default output folder set in the Job: C:\ProgramData\Outback Imaging\EzeScan\Output\<<JOB>>

Line Items set-up - in KFI

After creating the 9 (above) KFI fields the Line Items field <<F10>> needs to be configured

Advanced Setting button

Clicking the Advanced Settings button will present the screen below. Ticking the 2 boxes and adding the Supplier Name field number shown will allow you to create "Supplier based templates" so when a template is processed, EzeScan will use the supplier name to bring up a previously used supplier template. If there is no existing template then you will have the ability to create one.

Running the job

There are 3 sample invoices in the default job folder.

  1. Click import

  2. Select files & Open

  3. Press F4 to profile and the EzeScan Discovery module and pre-set SQL query (on field <<F3>>) will automatically process each of the fields

  1. After the Sub (Net) Amount field is processed the Line Items function will automatically open the Grid processing for Line Items window

  1. In this example the first attempt to locate the line items grid identified the incorrect area as shown above.

    • It is fairly easy to address; click on the Define option and drag your cursor over the required grid area

    • EzeScan will then re-calculate the grid and present the line items as shown in Figure 34

Additional work may be required as outlined below

  1. EzeScan will attempt to identify the invoice grid but may need some manipulation

    1. The header is identified which display in the Results section at bottom of window

    2. The line items are identified which display in the Results section at bottom of window

    3. Some lines may not be picked up. They are easily added by right mouse clicking between the lines and selecting Insert row. The new rows will appear in the Results section as they are added

    4. Some columns may not be in the correct place. They are easily moved by clicking on the line and dragging it to the appropriate location. New column lines may also be added by right mouse clicking on the required location and selecting Insert Column.

    5. The Output column names always default as shown. These may be edited in the advanced settings.

    6. Click the Create button to create the new template

  2. You may need to make slight adjustments to the details in the Results section, such as spelling etc. The fields are generally highlighted in   yellow  

  3. Once all of the items are looking good click on the OK button and you will return to the Profiling window.

  4. Click Submit to complete the process.

There are 3 output files created by the process:

Header File (CSV) - viewed in Notepad

Header File (CSV) - viewed in MS Excel

  1. Opening the CSV file using MS Excel may actually change the formatting of the values such as dates & currency. Take extreme care if doing this - do not make any changes and/or save the file when closing it.

Line Items File (CSV) - viewed in Notepad

Line Items File (CSV) - viewed in MS Excel

  1. Opening the CSV file using MS Excel may actually change the formatting of the values such as dates & currency. Take extreme care if doing this - do not make any changes and/or save the file when closing it.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.