Bill Setup and Macros

From Microinvest

Jump to: navigation, search

A vanguard technology for defining the content, ordering and visual styles of issued checks (bills) is incorporated in the settings for printing checks. The printers accept and perform commands for modeling the content of the printed document. The commands themselves are based upon a pre-defined script, which dynamically places program data or sends certain commands to the printer.

Contents

Bill Structure

The documents for printing are divided into for main section:

  1. Heading section – “Header”
  2. Document details – “Details”
  3. Document total sum and taxes – “Totals”
  4. End of document – “Footer”

Each of these sections has a certain role in the document and has a different purpose.

Header Section

The header section is the beginning of the document (the printable check). Usually this section contains the name of the company, the address of the location, the name of the user (operator), etc. This is the section where the data for table, customer etc. is set. The logo of the document is also typically placed in this section. The data in the header section are printed a single time when creating the document.

Document Details

The most important section in a check is the document details. Here, the data about products and their prices, quantities and other parameters is printed. This section contains one or more rows with information, which are printed separately for each product. The program executes the entered script for every product from the document. Here, additional parameters about the name of the products, prices, tax groups etc. are available.

Document Totals

After all details of the products have been printed, it is necessary to do the totals of the document. The Totals section serves this purpose. The description of the sum totals, the owed taxes, types of payment etc. are placed in it. The section can contain several rows, which are printed with each different type of tax or payment.

Footer

The document footer is a section, which is printed after the financial information. Through it, the document is completed. In this section, the standard labels for check type, current time according to the computer clock, number of document, discounts, promotions etc. are placed. This is a suitable place for activating a printer knife (cuts the paper when the document is completed), activation of a bell (informs the operators that the document is printed) or placing a delay for printing (the operator has time to cut to remove the bill before the bill strip starts being printed with the next bill).

Templates

In the products of Microinvest there are pre-entered check (bill) templates. When performing a setup of the system, a given template for type of fiscal bill can be selected. The templates in their essence represent predefined scripts, which can be selected and modified. Once modified, the respective template is performed by the program with all modifications, entered by the user.

Printer Management

This technology allows for special commands to be sent to the printer. Examples of such commands are:

  • A change in the table of codes, with which the printer works. This is an elegant way to “cyrilify”the printer, for example;
  • Activation of the knife of the printer and cutting off of the paper;
  • Printing of the picture from the printer memory through the print of graphics command;
  • Activation of a sound signal from the printer for notifying the operators;
  • Other commands, which the printer supports according to the ESC 9/POS protocol.

The sending of special commands to the printer can be done by a <CHRXX> script, where XX is the hexadecimal value which should be sent to the printer.

Specific Features

There exist a number of specific features when defining the scripts, for example:

  1. When there is direct management of the printers (without a driver) all control symbols can be sent. When working with a driver, the driver itself does not accept part of the commands and they are either printed as unknown symbols or are not performed at all;
  2. If not script has been defined, the program performs an internal script for building the document;
  3. There are different macros and commands in the separate sections. An example for this is the section with the details, where the names of the products and their financial parameters are available. The same data is not accessible in the header section;
  4. It is possible to define one and the same printer with different scripts, In this case, one and the same printer will print entirely different bills, as the design is determined from the entered script for management of the printer.

Restrictions

The correct execution of the scripts also depends on the capabilities of the printer. There are devices, which do not accept a random change in the type of document. The following specifics must be taken into account:

  1. The fiscal devices print their logo on the document and this cannot be turned off or changed;
  2. With some devices, the type of document is determined by the manufacturer, the allocation of the requisites cannot be changed and the relevant scripts are not performed;
  3. When finishing the document there are restrictions as well, for example the type and quantity of the fiscal groups which are printed.

Recommended Devices

For proper and high-quality visualizing of the document created, it is recommendable to use a printer, which is completely compatible and executes an Epson ESC 9/POS protocol. The commands, which are supported by the printer, are described in its documentation and through their proper execution, it is possible to obtain a quite ordered and convenient printed document.

Useful Links

Personal tools