Unit

This table contains one row for each unit. You can enter descriptions of the various units in which you buy and sell products.

You can also define how many items the unit consists of, e.g. to convert from boxes to units in the order lines. For fields that are also present in the Product table, the value in the Unit table overrides the corresponding field in the Product table and suggested on the order line if it is not overridden by the field in the Barcode table.

PropertyValueDescription
DatabaseCompanyThis table is in the company databases.
SQL nameUnitThe table name in the database.
API identifierunitThe API identifier used in GraphQL.
Table no.173The table number in the data model.

The following fields exist in this table:

Area

The area of the unit used to specify the stock for the product.

The value overrides the corresponding field in the Product table, and is suggested on the order line if it is not overridden by the field in the Barcode table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameAreaUThe database field name.
API identifierareaThe API identifier used in GraphQL.
Number5919 

Density

The density of the unit used to specify the stock for the product.

The value overrides the corresponding field in the Product table, and is suggested on the order line if it is not overridden by the field in the Barcode table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameDensUThe database field name.
API identifierdensityThe API identifier used in GraphQL.
Number6263 

Description

The description of the unit.

If texts on printouts are used, they need to be defined in the Text table. The numbers are replaced by text in the language of the customer or supplier.

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

EDI unit

The code used for the units in EDI and with Visma.net AutoInvoice.

If the value of the EDI unit occurs several times in the Unit table then always the first occurrence registered in the table is going to be retrieved on EDI import. It should not necessarily be the lowest number. In an EDI export the correct EDI unit is exported because there is a reference to the particular unit.

Note:
In electronic invoicing and order exchange with Visma.net AutoInvoice unit code is mandatory. If unit code is not set, the default value will be ZZ.

See also Unit code under InvoiceLine - Invoice line information for more information.

For example KGM for kilos, LTR for litres, PCE for units or MTK for m2.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainString of length 3Text (3)
SQL nameEDIUnThe database field name.
API identifierediUnitThe API identifier used in GraphQL.
Number3068 

Factor 3

Instead of entering a quantity directly in the Order line table, you can have it calculated as the difference between the To and From fields or as the product of them and the Factor 3 field.

When the quantity is calculated as the difference between the To and From fields, it can be expressed as a quantity, time or date, depending on the quantity format selected in the Proc. method 1 field in the Order line table. If the Factor 3 field does not have any value in the Order line table, the value in this field will be imported.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameFactor3The database field name.
API identifierfactor3The API identifier used in GraphQL.
Number15257 

Gross weight

The value is calculated based on the values in the Net weight and Tare fields.

The value overrides the corresponding field in the Product table, and is suggested on the order line if it is not overridden by the field in the Barcode table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
Write AccessNoneYou are not allowed to modify the value in this field.
Memory fieldYesThe value in this field is only displayed in the program, it is not stored in the database.
API identifiergrossWeightThe API identifier used in GraphQL.
Number5915 

Height

The height of the unit used to specify the stock for the product.

The value overrides the corresponding field in the Product table, and is suggested on the order line if it is not overridden by the field in the Barcode table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameHgtUThe database field name.
API identifierheightThe API identifier used in GraphQL.
Number5918 

Length

The length of the unit used to specify the stock for the product.

The value overrides the corresponding field in the Product table, and is suggested on the order line if it is not overridden by the field in the Barcode table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameLgtUThe database field name.
API identifierlengthThe API identifier used in GraphQL.
Number5916 

Net weight

The net weight of the unit used to specify the stock for the product.

The value overrides the corresponding field in the Product table, and is suggested on the order line if it is not overridden by the field in the Barcode table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameNWgtUThe database field name.
API identifiernetWeightThe API identifier used in GraphQL.
Number5913 

Price qty.

The number of units the price is valid for.

If the Price qty. field is blank in the Order line table, it is updated with the value in this field. There is no control when you enter a value in this field, but the price quantity is not imported from the Barcode or Unit table if the product has been placed in stock.

Note:
You cannot change the value in thePrice qty. field for a product that has a stock balance. This would affect the cost price calculation.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL namePrNoThe database field name.
API identifierpriceQuantityThe API identifier used in GraphQL.
Number15256 

Quantity per unit

The quantity per unit of the unit used to specify the stock for the product.

The value overrides the corresponding field in the Product table, and is suggested on the order line if it is not overridden by the field in the Barcode table.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainQuantityDecimal
SQL nameStUnRtThe database field name.
API identifierquantityPerUnitThe API identifier used in GraphQL.
Number5591 

Stock measure

The type of measurement for the unit.

The value overrides the corresponding field in the Product table, and is suggested on the order line if it is not overridden by the field in the Barcode table.

A look-up in this field gives you the following list of possible values:
1 - Quantity in base unit
2 - Length
3 - Area
4 - Volume
5 - Net weight
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainStock measureInteger
SQL nameMeasureThe database field name.
API identifierstockMeasureThe API identifier used in GraphQL.
Number5957 

Tare

The packaging weight of the unit used to specify the stock for the product.

The value overrides the corresponding field in the Product table, and is suggested on the order line if it is not overridden by the field in the Barcode table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameTareUThe database field name.
API identifiertareThe API identifier used in GraphQL.
Number5914 

Unit

A unique number identifying the Unit.

Unit texts for different languages can be defined in the Text table. These texts has text type 16.
Note:
If you double-click or press * in this field, you can look up a Unit in the Text table.
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.
DomainUnitInteger
Primary keyYesUnit
SQL nameUnThe database field name.
API identifierunitThe API identifier used in GraphQL.
Number5589 

Volume

The volume of the unit used to specify the stock for the product.

The value overrides the corresponding field in the Product table, and is suggested on the order line if it is not overridden by the field in the Barcode table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameVolUThe database field name.
API identifiervolumeThe API identifier used in GraphQL.
Number5920 

Width

The width of the unit used to specify the stock for the product.

The value overrides the corresponding field in the Product table, and is suggested on the order line if it is not overridden by the field in the Barcode table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameWdtUThe database field name.
API identifierwidthThe API identifier used in GraphQL.
Number5917 

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 1. Table relations
To table Purpose From columns To columns Comments
Active company process CompanyProcess Process no. Process no.