Documentation for POS Intellect 5.3. Documentation for other versions of Intellect is available too.

Previous page Creating a parser  Configuring parser in the POS-Intellect software Next page

To check working of the created template use the ParserTest.exe utility.


Template is checked as follows:

  1. Copy fragment of parser to the Templates field.
  2. Put fragment of receipt text to the Data field.
  3. Click the Check button.
  4. If template is correct, than names of fields which will be loaded to database and their values will display in the Result field. Otherwise, the template is failed.

    Note.

    Unnecessary spaces in begin of strings, signs of string end, etc. can be errors. Template from example in the figure:

    «(?P<check_id>[%number%]{6})      pos 06 »

    from the figure in the Creation a parser section is transformed the following way:

    «(?P<check_id>[%number%]{6})\s*pos 06».

    Spaces are changed to "\s" to avoid errors of spaces number.

  5. If data in the Result field are correct, replace template to parser settings of the POS-terminal object using functions of copying and pasting text (see the Configuring parser in the POS-Intellect software section).

Note.

For examples from figures, replace the template to the Receipt prolog section. Other receipt sections are adding in the same way.

  • No labels