Introduction to the Form Register
Hansa has a built-in forms editor, which allows the design of all documents used in the program. In the System module, select 'Forms' from the Registers menu or click [Forms] in the Master Control panel to show a list of all available Forms.Editing Objects
To edit an object, double-click on it with the mouse. This will open a dialogue box, where you can perform certain editing functions. These are described for each object type: Text, Lines and Frames, Fields and Pictures. For all object types the fields Left, Top, Right and Bottom indicate the location in pixels of the four sides of the object. The Justification options allow you to justify the text as you wish. Style refers to a Styles setting, where you can set font, font size and font style.Editing Objects - Text Objects
To add a new text element to the Form, click the [Text] button and then draw the object where you want the text to appear.When you release the mouse button, the following dialogue box will appear:
To edit a text object once it has been created, double-click it to open the 'Text' dialogue box.
Editing Objects - Lines and Frames
Use these tool buttons to draw lines and frames on the Form. Click either button and then draw the object. When you release the mouse button, a dialogue box will appear where you can indicate the width in pixels of the line or frame, and the pages on which it is to be printed.Editing Objects - Fields
A field is an area on the Form where information from Hansa's database is to be printed. The following example from an Invoice Form explains how:To add a field, click the [Field] button, and mark the position of the field. A dialogue box opens:
Document Types are described on the page covering the 'Properties' Operations menu function.
Notes and Comments
Usually each field that you place in a Form corresponds to a field in the original record. For example, the Customer No field in the illustration above will print the contents of the Customer Number field in each Invoice. An exception is the "Note" field. If you include the "Note" field in your Form design, this will print the first note or comment that you attach to the original record using the Attachments feature.
Editing Objects - Pictures
Use the [Picture] button to include a picture in your design. As with other tools, click the button and draw a frame for the picture on the Form. A dialogue box then appears. In the Picture Name field, enter the file name of the picture as it is on your hard disk. Use 'Paste Special' to ensure that the file name is spelt correctly. The picture must be stored in the same directory or folder as the Hansa database and application. In multi-user systems, the picture should be on both the server and the clients. In the Windows environment, files of BMP format are supported. For Macintosh users, EPS and PICT formats are supported. If the Form is one that will be faxed through a fax server, bear in mind that any pictures will be omitted.Adding and Editing Objects in Form Templates - Page Sums
This page describes adding page sums to a Form Template.---
A page sum will print a running total for a particular Matrix or row field on each page.
To add a page sum to a Form Template, click the [Page Sum] button at the top of the Form Template window:
The Form Template register in Standard ERP:
Operations Menu
Operations Menu - Form Templates - Remove Page Setup
Please refer to the Page Setup page for details about this function.---
The Form Template register in Standard ERP:
Operations Menu - Properties
This menu command opens the 'Form Template Properties' dialogue box. Here you can record the basic specification of the Form Template you are creating or editing.Language | Default Code Page |
Estonian, Latvian, Lithuanian | CP1257 |
Polish, Hungarian, Slovak, Slovenian, Serbian | CP1250 |
Russian, Ukrainian, Byelorussian | KOI8-R |
Others | CP1252 |
In a multi-language installation of Standard ERP, it is recommended that you specify a PDF Code Page in every Form Template that you will use to create pdf files. Otherwise, Persons who use the Estonian and Russian interfaces, for example, will create pdf files from the same Form Template using different code pages.
In this chapter:
Operations Menu - PC Printer
If a dot matrix printer is used, use this dialogue box to define the page size.Operations Menu - Copies
Use this function to define the number of copies to be printed each time the Form is used, their respective headings and the printer tray from which each copy is to be printed. If you want the headings to be printed, be sure to include the Copy Type field in your Form design.Operations Menu - Send to Back
If you wish certain objects on the Form to appear behind other objects, select them and select this function.Operations Menu - View All, First Only, Middle Only, Last Only, Single Page Only
These functions are described on the Single- and Multi-Page Forms page.Operations Menu - Form Template - Row Styles
This page describes the 'Row Styles' function on the Operations menu in the Form Template record window.---
In some records (Opportunities, Project Budgets, Quotations, Sales Orders, Sales Invoices and Stock Movement Invoices), the matrix can contain rows of different types. Examples are the rows containing the Items, "Header" rows, "Subtotal" rows, rows connecting Invoices to Prepayments, and rows in Credit Notes connecting them to Invoices.
When you design the Form Templates that will be used to print these records, you can specify that the rows of various types will be printed with different Styles and Line Heights. For example, you may want "Subtotal" rows to be printed in a larger font and with a larger line spacing.
To set the Styles and Line Heights for the different row types, select the 'Row Styles' function from the Operations menu. If you use this feature, you should still set Line Heights and Styles in the fields themselves.
You don't need to specify a Style and Line Height for every row type: leave both fields empty to use the Styles and Line Heights that are specified in the fields.
If you only want to change the Line Height for a particular row type, do not leave the Style empty. Instead, specify the same Style that is in the fields. Leaving the Style empty will mean that the changed Line Height won't be used.
Usually a "normal" row will be printed using the Item Line Style and Line Height. If a row does not have an Item Number or a Sum, it will be printed using the Description Line Style and Line Height.
Row Styles are only used when printing Opportunities, Project Budgets, Quotations, Sales Orders, Sales Invoices and Stock Movement Invoices. Entering Row Styles in the Form Templates that will be used to print other records and documents will have no effect.
Press the [OK] button to assign the changes to the Form Template. Note that the changes won't be saved permanently until you save the Form Template itself.
---
The Form Template register in Standard ERP:
Single- and Multi-Page Forms
When designing Forms, you should consider what is to happen when the printing of a document requires more than one page. Two options are available:The number of pages printed will vary from record to record, depending on the number of rows that the record has. An Invoice with one Item will be printed on a single page (i.e. using those objects whose Single box is not checked). An Invoice with 100 Items (i.e. 100 rows) will be printed over several pages. You should specify the maximum number of rows that can be printed on each page by selecting 'Properties' from the Operations menu. This opens the 'Form Properties' window, which has four fields under the overall heading of Matrix Rows On:
Invoice rows | Pages | Type of Page |
Up to 5 | 1 | Single |
5-12 | 2 | First and Last |
13-19 | 3 | First, Middle and Last |
19-25 | 4 | First, 2 x Middle, Last |
Conditional Printing of Elements (Print Conditions)
This page describes using Print Conditions to determine whether information will be printed in forms.---
When you add any element (e.g. a text element, line, frame, field or picture) to a Form Template, you can specify that it will only be printed if a particular condition is met. The condition will be that a specified field in the record being printed contains or does not contain a particular value. To do this, first create a record in the Print Conditions setting in the System module in which you have defined the condition, and then assign the Print Condition to the Form Template element.
The Print Condition record contains the following fields:
where "h" signifies that the Position in the illogical Print Condition is "Header" and "r" signifies that the Position is "Current Row" or "Any Row".
Option | Position | Record being printed | Field that is tested |
Comment/Description | Header | Agreement | Comment ('Del. Terms' card) |
Contract | Comment ('Del. Terms' card) | ||
Payment | Comment | ||
Row | All with matrix with Description field | Description | |
Payment | Text | ||
Receipt | Comment (flip H) | ||
Recipe | Specification | ||
Total Net | Header | All with Subtotal field | Subtotal |
Hotel Reservation | Agreed Price | ||
Returned Goods to Supplier | TOTAL | ||
Total Gross | Header | All with TOTAL field except Returned Goods to Supplier | TOTAL |
Asset | Purch. Value | ||
Credit Agreement | Total Sum | ||
Payment | Withdrawn | ||
Receipt | Deposited | ||
Rental Reservation | Periodic Price ('Periodic Charges' card) | ||
Reservation Quotation | Total for Agent | ||
Service Order | Our Sales Price | ||
Row Sum | Row | All with matrix with Sum field | Sum |
Purchase Invoice | Amount | ||
Location | Header | All with Location field | Location |
Stock Movement | From Location | ||
Reservation Quotation | Room Location | ||
Row | All with matrix with Location field | Location | |
Item Code | Row | All with matrix with Item field | Item |
Item Group | Row | All with matrix with Item field | Item Group to which the Item belongs |
Tag/Object | Header | All with Tag/Object or Tags/Objects field | Tag/Object or Tags/Objects |
Row | All with matrix with Tag/Object or Tags/Objects field | Tag/Object or Tags/Objects | |
Discount | Header | Rental Reservations | % ('Periodic Charges' card) |
Row | All with matrix with % field | % | |
Language | Header | All with Language field | Language |
Reason | Header | Invoice | Credit Reason |
Returned Goods to Supplier | Reason | ||
Row | Bar Tab | Void Reason | |
Country | Header | Delivery | Country ('Del. Address' card) |
Invoice | Country ('Inv. Address' card) | ||
Order | Country ('Inv. Address' card) | ||
Tag Number | Header | POS Invoice | Tag Number (used with Planet Tax in UAE) |
Payment Term | Header | All with Payment Terms field | Payment Terms |
Payment Mode | Header | All with Payment Mode field | Payment Mode |
Row | Bar Tab | Payment Mode (this field is only in rows representing payments) | |
Invoice | Payment Mode (this field is only in rows representing Cash and Credit Card Payments) | ||
Payment | P. Mode (flip C) | ||
POS Invoice | Payment Mode (this field is only in rows representing payments) | ||
Receipt | P. Mode (flip C) |
The Form Template register in Standard ERP:
Printing Text in Different Languages
This page describes printing text in various Languages on a form---
When you print a form, the text printed by each field in the form will be in a particular Language. Usually this will be the Language specified in the record being printed, the Language in the current user's Person record or the Language in the Company Info setting. For example, when printing an Invoice in which the Language is Swedish, the "Delivery Mode Text", "Delivery Term Text" and "Payment Terms" fields will print the Swedish translations of the Delivery Mode, Delivery Term and Payment Term respectively, assuming you have entered Swedish translations in the relevant records.
Some fields allow you to specify a Language when you add them to your Form Template designs. These fields will print text in that Language, which may not be the Language in the record being printed. By adding these fields more than once with different Languages to a particular Form Template, you can have a particular text string printed in different Languages on the same document. For example, in a store with an international clientele, you may wish to have Item Names printed in different Languages on each Invoice.
You can use this feature with the following fields in particular forms, as follows:
When designing the Form Templates that will be used when printing Invoices, POS Invoices and Bar Tabs, you will add a "Description 1" field to print the name of each Item. If you do not specify a language for the "Description 1" field, it will print the Item Descriptions as entered in each row in an Invoice or POS Invoice (i.e. the correct translations for the Language of the Invoice or POS Invoice that are already visible on screen as mentioned in the previous paragraph). If you changed the Item Description in a particular row, the "Description 1" field will print the changed Description. When printing a Bar Tab, the "Description 1" field will print the correct translations for the Language of the Bar Tab, fetching them at the time of printing (i.e. what is printed may not match what was shown on screen).
If you do specify a Language for the "Description 1" field, it will print the following for each Item:
An example is shown in the illustration below:
Printing Forms
Once a Form has been designed, you should inform Hansa when it is to be printed. This is done by attaching the Form to an item in the 'Documents' list in the appropriate module. This is only necessary if you have given your Form a new Form Code using the 'Properties' Operations menu function.For example, when printing an Invoice, Hansa, by default, will use a Form with the Form Code of "INVOICE". A template Form with this Code is supplied with Hansa. If you have used this template as a basis for designing your own invoice form and haven't changed the Form Code, the new design will be used automatically. However, if you have changed the Form Code to, for example, "INVOICE1", you should inform Hansa that this is now the Form to be used for printing Invoices.
To do this, follow these steps:
The 'Define Document' function is available for many of the documents printed by Hansa, allowing a high level of flexibility in the production of printed output from Hansa.
Related Items
The Printers setting in the System module is used to inform Hansa of the different printers available in your network. Once this has been done, the 'Define Document' function can be used to specify which printer is to be used when printing a particular Form.The Styles setting, also in the System module, is used to define the various type styles, fonts, etc available for use when designing Forms.
Standard Fields
There are a number of standard fields that you can include in the Form Templates that will be used by almost every form. These fields are:Field in Form Template | Prints |
These fields print information from the Company Info setting: | |
Chief Accountant | Chief Accountant |
Copy Type | When you design a Form Template, you can use the 'Copies' function on the Operations menu to specify that more than one copy will be printed, and that each copy will be marked with specified text (e.g. "Office Copy", "Customer Copy", etc). This field will print the specified text |
Date | The date when the Form was printed |
Document for Training Purposes | Prints the phrase “Document for training purposes Only”. This field will only be printed from sample databases |
Invalid Invoice | Prints the phrase "Document not valid as an invoice" (prints blank in Sales Cash Notes, Sales Credit Notes, Sales Interest Invoices, Sales Internal Invoices, Sales Invoices, Sales Proforma Invoices and Project Invoices) |
Manager / CEO | CEO |
Own Address | Company Name and Address. This information will be printed on separate lines, so you should specify a Line Height for this field |
Own Address 2 | Address. This information will be printed on separate lines, so you should specify a Line Height for this field |
Own ANA Code | ANA Code |
Own Bank 1 | Bank 1 |
Own Bank 2 | Bank 2 |
Own Bank Code | Bank Code. This information will only be printed if there is a record in the Banks setting in the Purchase Ledger for the Bank Code specified in the Company Info setting |
Own Bank Customer ID | Bank Customer ID |
Own Business Name | Business Name |
Own Commercial Registration Number | Commercial Reg.No. |
Own Country Code | ISO Code from the record in the Countries setting for the Country or, if blank, the Country |
Own E-mail | |
Own Fax Number | Fax |
Own GLN | GLN (this field is only visible if the VAT Law in the Company Info setting is set to "Norwegian") |
Own Home Community | Home Community |
Own Line of Business | Line of Business |
Own Name | Company Name |
Own Registration Number | Reg. No. |
Own Share Capital | Share Capital |
Own Telephone Number | Telephone. If you enter "N" as the Field Argument, the Telephone Number will be printed without spaces or other non-numeric characters. |
Own VAT Reg. Number | VAT Reg. No. |
Own WWW Address | WWW Address |
Page Number | Page number |
Period | The period from the Form's specification window |
Product Name | The name of the product you are using (i.e. Standard ERP) |
Short Underline | _______________ |
Time | The time when the Form was printed |
These fields print information from the record in the Banks setting in the Purchase Ledger for the Bank Code specified in the Company Info setting: | |
Own Bank Account (IBAN) | Account (IBAN) |
Own Bank Address | Address. This information will be printed on separate lines, so you should specify a Line Height for this field |
Own Bank Address 1 | First line of the Address |
Own Bank Address 2 | Second line of the Address |
Own Bank Address 3 | Third line of the Address |
Own Bank Address 4 | Fourth line of the Address |
Own Bank Address 5 | Fifth line of the Address |
Own Bank BIC (SWIFT) | BIC (SWIFT) |
Own Bank Corr. Acc. | Expense Account |
Own Bank Clearing | Clearing |
Own Bank Name | Name |
Own Bank Sorting | Sort Key |
In this chapter: