Document

This table is populated when an incoming document is processed and an order number is found on it.

PropertyValueDescription
DatabaseCompanyThis table is in the company databases.
SQL nameOrdDocNtThe table name in the database.
API identifierorderDocumentNoteThe API identifier used in GraphQL.
Table no.420The table number in the data model.

The following fields exist in this table:

Accounting document no.

The accounting document no. refers to the Accounting document table.

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.
DomainNo.Integer
SQL nameInAcDocNoThe database field name.
API identifierincomingAccountingDocumentNoThe API identifier used in GraphQL.
Number17918 
Table 1. Table relations
To tablePurposeFrom columnsTo columnsComments
Accounting documentIncomingAccountingDocument
  • Accounting document no.

Application icon

The icon identifying the program used to create the document.

A look-up opens the dialog box where you can see the following check boxes and options:
E-mail
Word
Excel
PDF
HTML
Image
Document center
Tiff
Other
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainApplication iconInteger
SQL nameIconThe database field name.
API identifierapplicationIconThe API identifier used in GraphQL.
Number14496 

Change date

The date when the document was last changed running the Edit document processing.

The date is validated using the regional settings in Windows.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainDateInteger
SQL nameFileChDtThe database field name.
API identifierchangeDateThe API identifier used in GraphQL.
Number3876 

Created by associate

The user who created the document.

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.
DomainAssociate no.Integer
SQL nameCrActNoThe database field name.
API identifiercreatedByAssociateNoThe API identifier used in GraphQL.
Number3050 
Table 2. Table relations
To tablePurposeFrom columnsTo columnsComments
AssociateCreatedByAssociate
  • Created by associate

Creation date

The date the document was created.

The date is validated using the regional settings in Windows.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainDateInteger
SQL nameFileCrDtThe database field name.
API identifiercreationDateThe API identifier used in GraphQL.
Number3875 

Description

The description of the document.

You can enter the Description while running the Create document processing.

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

Doc. gr.

The document group the document belongs to.

You can group documents such as offers, customer letters, internal memos, etc.

You can enter the Group while running the Create document processing.

Document group texts for different languages can be defined in the Text table. These texts has text type 71.
Note:
If you double-click or press * in this field, you can look up a Document group in the Text table.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainDocument groupInteger
SQL nameDocGrThe database field name.
API identifierdocumentGroupNoThe API identifier used in GraphQL.
Number5579 

Doc. no.

A unique number identifying the document.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainDoc. no.Integer
Primary keyYesDoc. no., Version no.
SQL nameDocNoThe database field name.
API identifierdocumentNoThe API identifier used in GraphQL.
Number3871 

File name

The path and file name for the document.

The path is defined in the Data path field in the Path table for the user who created the document. The file name is defined by the system. The file name series for the various document types are defined in the Company information table. Document name series can be changed by running the Change counters processing in the Company information table.

Tip:
If a value is added to the field double-clicking or pressing * displays the file. If no file is selected a Select file dialog will be opened.
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainFile nameText (260)
SQL nameFileNmThe database field name.
API identifierfileNameThe API identifier used in GraphQL.
Number3872 

Incoming

Indicates that the document an incoming document.

You can select Incoming while running the Create document processing.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainBooleanInteger
SQL nameIncThe database field name.
API identifierincomingThe API identifier used in GraphQL.
Number5578 

Incm. doc. no.

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.
DomainNo.Integer
SQL nameInDocNoThe database field name.
API identifierincomingDocumentNoThe API identifier used in GraphQL.
Number17916 
Table 3. Table relations
To tablePurposeFrom columnsTo columnsComments
Incoming documentIncomingDocument
  • Incm. doc. no.

Inf. 1

Additional document information.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainInf. @Text (40)
SQL nameInfThe database field name.
API identifierinformationThe API identifier used in GraphQL.
Number13076 

Main document no.

The parent document, if the documents are arranged in a hierarchy.

Documents within a similar area can be grouped and viewed together.

An example is considering the first document sent regarding a specific subject as main the document. For the subsequent received and sent documents with the same subject, a reference to the first document is put in the Main document no. field.

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.
DomainDoc. no.Integer
SQL nameMainDocThe database field name.
API identifiermainDocumentNoThe API identifier used in GraphQL.
Number10578 
Table 4. Table relations
To tablePurposeFrom columnsTo columnsComments
DocumentMainDocument
  • Main document no.

Order match status

Displays the different statuses for the order match process.

This field is used for order match functionality.

A look-up in this field gives you the following list of possible values:
1 - Completed by automatic match
2 - In progress
3 - Order no. not found
4 - Outside tolerance level
The invoice amount is outside the configured tolerance limits.
5 - Completed manually
6 - Rejected
7 - Mandatory value missing
Required data is missing or invalid.
8 - Pending
The purchase order is already being processed by another invoice.
9 - Incomplete product mapping
10 - Currency mismatch
Invoice currency differs from purchase order currency.
11 - Freight/fee product not defined
12 - Order match on totals
The invoice was successfully matched.
13 - Order match on totals completed manually
Invoice receive has been completed and processing is finished.
14 - Order match on totals completed automatically
Invoice receive has been completed automatically and processing is finished.
15 - Order match on totals with order booking
16 - Order match on totals with order booking completed manually
17 - Order match on totals with order booking completed automatically
PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainOrder match statusInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameOrdMaStThe database field name.
API identifierorderMatchStatusThe API identifier used in GraphQL.
Number17792 

Order no.

The supplier purchase order number according to the received supplier invoice document.

This field is used for order match functionality.

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.
DomainOrder no.Integer
SQL nameOrdNoThe database field name.
API identifierorderNoThe API identifier used in GraphQL.
Number17791 
Table 5. Table relations
To tablePurposeFrom columnsTo columnsComments
OrderOrder
  • Order no.

Prog. no.

The program used to create the document.

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.
DomainProg. no.Integer
SQL nameProgNoThe database field name.
API identifierprogramNoThe API identifier used in GraphQL.
Number3873 
Table 6. Table relations
To tablePurposeFrom columnsTo columnsComments
ProgramProgram
  • Prog. no.

Run no.

A sequence number for documents created from the same template.

To activate this, a starting number different from 0 has to be assigned to the Run no. field in the Template table.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainNo.Integer
SQL nameRunNoThe database field name.
API identifierrunNoThe API identifier used in GraphQL.
Number14495 

Scan doc. no.

The ID of the scanned document.

Is used in connection with Visma Document Center.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainNo.Integer
SQL namePLDNoThe database field name.
API identifierscanDocumentNoThe API identifier used in GraphQL.
Number11181 

Scan status

The status of the scanned document.

Is used in connection with Visma Document Center.

A look-up in this field gives you the following list of possible values:
1 - Scanned document
2 - Document on flow
4 - Document finished
PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainScan statusInteger
SQL namePLDFlowThe database field name.
API identifierscanStatusThe API identifier used in GraphQL.
Number11182 

Template line no.

The template used to create the document.

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 nameTemplLnNoThe database field name.
API identifiertemplateLineNoThe API identifier used in GraphQL.
Number13077 
Table 7. Table relations
To tablePurposeFrom columnsTo columnsComments
TemplateTemplate
  • Template line no.

Template type no.

The template type used to create the document.

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.
DomainTemplate type no.Integer
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameTemplTpNoThe database field name.
API identifiertemplateTypeNoThe API identifier used in GraphQL.
Number14494 
Table 8. Table relations
To tablePurposeFrom columnsTo columnsComments
Template typeTemplateType
  • Template type no.

Version no.

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.
DomainNo.Integer
Primary keyYesDoc. no., Version no.
SQL nameVerNoThe database field name.
API identifierversionNoThe API identifier used in GraphQL.
Number6727 

Visma ID

The ID of the scanned document.

Is used in connection with Visma Document Center.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainNo.Integer
SQL nameWfIdThe database field name.
API identifiervismaIdThe API identifier used in GraphQL.
Number11180 

XML data

Contains the supplier invoice XML document.

This field is used for order match functionality.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainFile in BLOBUnlimited text
SQL nameXmlDThe database field name.
API identifierxmlDataThe API identifier used in GraphQL.
Number17794 

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