Form

Forms are used to determine where information should be located on printouts. This table contains one row for each form.

PropertyValueDescription
DatabaseSystemThis table is in the system (vbsys) database.
SQL nameFormThe table name in the database.
API identifierformThe API identifier used in GraphQL.
Table no.92The table number in the data model.

The following fields exist in this table:

Bottom margin

The bottom margin for the form specified in thousandths of a millimetre.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainMarginInteger
SQL nameBmMrgThe database field name.
API identifierbottomMarginThe API identifier used in GraphQL.
Number2087 

Company group no.

The form is only available for this company group.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainCompany group no.Integer
SQL nameFrmGrThe database field name.
API identifiercompanyGroupNoThe API identifier used in GraphQL.
Number10518 
Table 1. Table relations
To tablePurposeFrom columnsTo columnsComments
Company groupCompanyGroup
  • Company group no.

Company no.

The form is only available for this company.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainCompany no.Integer
SQL nameFrmNoThe database field name.
API identifiercompanyNoThe API identifier used in GraphQL.
Number9006 
Table 2. Table relations
To tablePurposeFrom columnsTo columnsComments
CompanyCompany
  • Company no.

Data collection

The package number for the rows in different tables that belongs together in a package.

Rows in different tables that belongs together in a package are given the same value in this field. Rows from joined tables are also covered. On upgrade to newer versions, old rows may be deleted before new rows are imported, without conflicting with rows that the users have added.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainNo.Integer
Write AccessProgramOnly the program is allowed to modify the value in this field.
SQL nameDColThe database field name.
API identifierdataCollectionThe API identifier used in GraphQL.
Number8922 

Doc. types

The document types for which the form is relevant.

A look-up opens the dialog box where you can see the following check boxes and options:
Apply as default form

Order documents

Invoices/credit notes
Consignment notes
Labels
Packing slips
Pick lists
Order confirmations
Quotations
Purchase orders
Approval request
Inquiries
Production orders
Order prints

Miscellaneous

Visma XML
Do not send fax/e-mail for doc. delivery methods
Faxes and e-mails are not being sent. This setting overrides the order document settings for sending fax and e-mail.

Reports using list form

Open entries list for customers
Reminder/interest suggestion
Account statement for customers
Balance list for customers
Open entries list for suppliers
Payment suggestion
Account statement for suppliers
Balance list for suppliers
Account statement for general ledger
Balance list for general ledger
Profit and loss account and balance sheet
Account statement for capital assets
Balance list for capital assets
Price list
Purchase estimate
Page element printout
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainDoc. typesInteger
SQL nameDocTpThe database field name.
API identifierdocumentTypesThe API identifier used in GraphQL.
Number6166 

Form ID

Identifies the row in the data collection it belongs to.

For internal use by the program.

Rows in a data collection that need to be recognized on later upgrades, are assigned a unique value in this field, in addition to a common value in the Data collection field.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainNo.Integer
Write AccessProgramOnly the program is allowed to modify the value in this field.
SQL nameFormIdThe database field name.
API identifierformIdThe API identifier used in GraphQL.
Number8948 

Form no.

A unique number identifying the form.

Note:
If you press + in this field, the next available number is suggested. Gaps in the number series resulting from any deleted rows are not suggested. If you enter an existing number you will receive an error message. The number cannot be changed once it is entered.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainForm no.Integer
Primary keyYesForm type, Form no.
SQL nameFormNoThe database field name.
API identifierformNoThe API identifier used in GraphQL.
Number2027 

Form processing

Settings defining the behaviour of the form.

A look-up opens the dialog box where you can see the following check boxes and options:
Not in use
The form is not in use, and will not be available in the print dialog.

Graphical form editing

Show margins
The margins are visible on the form. This makes it easier to position the fields correctly.
Round coordinates
The values in the x, y,dx and dy fields in the Form element table are rounded.
Show grid lines
The grid lines are visible on the form. This makes it easier to position the fields correctly.

This value can also be set during Graphical editing. Go to the Form tab, select the Sheet group and click Grid lines. In the dialog box, select Display grid.

Document copies

Used on document copies
You will receive a message when you make changes to a form that has previously been used in an order document copy. If you save the changes to the form, you cannot run the order document copy. You can copy the form and make the changes.
Skip order lines
Only the order head and the totals are printed. One page is printed for each order.

VAT report

Truncate
Truncates the decimals in the VAT report. Applicable on the following VAT sum macros:
  • @TotalPaidVAT
  • @SumEUVATWithSumCostAmount
  • @SumReverseChargeVAT
  • @TotalReceivedVAT
Rounding
Used in Denmark.

See also: Configuring VAT forms

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainForm processingInteger
SQL nameFlThe database field name.
API identifierformProcessingThe API identifier used in GraphQL.
Number2256 

Form type

The type of form, which defines how the form is used.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainForm typeInteger
Primary keyYesForm type, Form no.
SQL nameFormTpThe database field name.
API identifierformTypeThe API identifier used in GraphQL.
Number2026 

Horizontal grid lines

The number of millimetres between the horizontal lines in any grid.

To set this value, go to the Form tab, select the Sheet group and click Grid lines while in form editing mode.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainMarginInteger
SQL nameHGrdThe database field name.
API identifierhorizontalGridLinesThe API identifier used in GraphQL.
Number2255 

Left margin

The left margin for the form specified in thousandths of a millimetre.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainMarginInteger
SQL nameLtMrgThe database field name.
API identifierleftMarginThe API identifier used in GraphQL.
Number2084 

Name

The name of the form.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainNameText (80)
SQL nameNmThe database field name.
API identifiernameThe API identifier used in GraphQL.
Number2083 

Print layout no.

The window no. of the window layout.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainNo.Integer
SQL nameOutpWinThe database field name.
API identifierprintLayoutNoThe API identifier used in GraphQL.
Number6167 
Table 3. Table relations
To tablePurposeFrom columnsTo columnsComments
WindowPrintLayout
  • Print layout no.

Right margin

The right margin for the form specified in thousandths of a millimetre.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainMarginInteger
SQL nameRtMrgThe database field name.
API identifierrightMarginThe API identifier used in GraphQL.
Number2086 

Skip total lines

The lines you want to skip in the form.

The available options in the Skip total lines dialog box is dependent on the value set in the Form type field.

A look-up opens the dialog box where you can see the following check boxes and options:

List

Previous balance
Balance
New balance
Total
General ledger
Reminder amount
Reminder fee
Interest amount
Interest fee
Truncation
To pay
Payment amount
Total payment amount
Difference
Capital assets
Total capital assets
Capital assets GL
Total capital assets GL

VAT report

Reminder

Reminder amount
Reminder fee
To pay

Interest note

@ % interest of @
Interest amount
Interest fee
Truncation
To pay

Payment giro

Order document

Sum accrued
@ % total discount of @
Exchange value
Special tax
Invoice fee
Non-taxable total
@ % VAT of @
@ % withholding tax of @
Truncation
Order total

Refund request

Delivery note

General note

Account statement

Balance according to general ledger
Withdrawals posted, but not occurring in bank
Deposits posted, but not occurring in bank
Withdrawals not posted, but occurring in bank
Deposits not posted, but occurring in bank
Sum (plus)
Sum (minus)
Corrected book balance
Bank balance according to account statement
Difference
Notice/conclusion
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainSkip total linesInteger
SQL nameExSmLnThe database field name.
API identifierskipSumLines1The API identifier used in GraphQL.
Number5060 

Skip total lines 2

The available options in the Skip total lines dialog box is dependent on the value set in the Form type field.

A look-up opens the dialog box where you can see the following check boxes and options:
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainSkip total lines 2Integer
SQL nameExSmLn2The database field name.
API identifierskipSumLines2The API identifier used in GraphQL.
Number18934 

Top margin

The top margin for the form specified in thousandths of a millimetre.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainMarginInteger
SQL nameTpMrgThe database field name.
API identifiertopMarginThe API identifier used in GraphQL.
Number2085 

Vertical grid lines

The number of millimetres between the vertical lines in any grid.

To set this value, go to the Form tab, select the Sheet group and click Grid lines while in form editing mode.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainMarginInteger
SQL nameVGrdThe database field name.
API identifierverticalGridLinesThe API identifier used in GraphQL.
Number2254 

Control columns

Control columns include information about who has changed the record last and when, and which process that is currently editing the record.

Changed by provenance

The provenance for the record change.

A look-up in this field gives you the following list of possible values:

0 - None

1 - UI

10 - External API

20 - GAiA

21 - AI Connect

100 - Internal service

101 - Task automation

102 - AutoInvoice download

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainProvenanceInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChPvnThe database field name.
API identifierchangedByProvenanceThe API identifier used in GraphQL.
NumberA unique column number. 

Changed by user

The name of the user that changed the record.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainUser nameText (24)
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChUsrThe database field name.
API identifierchangedByUserThe API identifier used in GraphQL.
NumberA unique column number. 

Changed date

The date when the record was changed.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDateInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChDtThe database field name.
API identifierchangedDateThe API identifier used in GraphQL.
NumberA unique column number. 

Changed time

The time when the record was changed.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainTimeInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChTmThe database field name.
API identifierchangedTimeThe API identifier used in GraphQL.
NumberA unique column number. 

Changed time stamp

The date and time when the record was changed.

The field is updated with the UTC time.

This value can be used by external systems to replicate changed data. The column is indexed. 

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDate/timeDateTime
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChTsThe database field name.
API identifierchangedTimestampThe API identifier used in GraphQL.
NumberA unique column number. 

Created by provenance

The provenance for the record creation.

A look-up in this field gives you the following list of possible values:

0 - None

1 - UI

10 - External API

20 - GAiA

21 - AI Connect

100 - Internal service

101 - Task automation

102 - AutoInvoice download

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainProvenanceInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCrePvnThe database field name.
API identifiercreatedByProvenanceThe API identifier used in GraphQL.
NumberA unique column number. 

Created by user

The name of the user that created the record.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainUser nameText (24)
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreUsrThe database field name.
API identifiercreatedByUserThe API identifier used in GraphQL.
NumberA unique column number. 

Created date

The date when the record was created.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDateInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreDtThe database field name.
API identifiercreatedDateThe API identifier used in GraphQL.
NumberA unique column number. 

Created time

The time when the record was created.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainTimeInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreTmThe database field name.
API identifiercreatedTimeThe API identifier used in GraphQL.
NumberA unique column number. 

Created time stamp

The date and time when the record was created.

The field is updated with the UTC time.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDate/timeDateTime
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameCreTsThe database field name.
API identifiercreatedTimestampThe API identifier used in GraphQL.
NumberA unique column number. 

Edit status

The current status of the record.

A look-up in this field gives you the following list of possible values:

0 - Unchanged: The record is read, but not changed.

1 - Inserted: The record is new.

2 - Changed: The record is changed.

3 - Deleted: The record is deleted.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainEdit statusInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameLckStThe database field name.
API identifiereditStatusThe API identifier used in GraphQL.
NumberA unique column number. 

Process no

The Process no. from the Active company process table which is currently using or has control of this record.

Note:
If you double-click or press * in this field, you can look up a value in the related table.
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainProcess no.Integer
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameChPrcThe database field name.
API identifierlockedByProcessNoThe API identifier used in GraphQL.
NumberA unique column number. 
Table 4. Table relations
To table Purpose From columns To columns Comments
Active company process CompanyProcess Process no. Process no.