Purchase estimate line

This table contains one row for each line on a purchase estimate.

PropertyValueDescription
DatabaseCompanyThis table is in the company databases.
SQL namePurcSLnThe table name in the database.
API identifierpurchaseSuggestionLineThe API identifier used in GraphQL.
Table no.167The table number in the data model.

The following fields exist in this table:

Del. alt. no.

The delivery alternative. The value is used to retrieve the supplier's product number and description when printing out inquiries and purchases.

The delivery alternative is set based on the highest priority for the product or a combination of product and supplier. The shortest lead time for a supplier or a combination of product and supplier is considered as the highest priority.

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 nameDelAltNoThe database field name.
API identifierdeliveryAlternativeNoThe API identifier used in GraphQL.
Number5087 
Table 1. Table relations
To tablePurposeFrom columnsTo columnsComments
Delivery alternativeDeliveryAlternative
  • Product no.
  • Del. alt. no.
This is a combined foreign key. Making a lookup in one of the fields may also fill in value in the others.

Inf. 1

Additional purchase estimate line information.

The field can be included in the order line as additional information and also be printed on a order document.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainInf. @Text (40)
SQL nameInfThe database field name.
API identifierinformation1The API identifier used in GraphQL.
Number6526 

Inf. 2

Additional purchase estimate line information.

The field can be included in the order line as additional information and also be printed on a order document.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainInf. @Text (40)
SQL nameInf2The database field name.
API identifierinformation2The API identifier used in GraphQL.
Number6527 

Latest arrival date

The date on which the stock balance becomes lower than the minimum level or when it becomes negative.

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 nameArDtThe database field name.
API identifierlatestArrivalDateThe API identifier used in GraphQL.
Number5560 

Latest arrival week

The week on which the stock balance becomes lower than the minimum level or when it becomes negative.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainWeekInteger
Memory fieldYesThe value in this field is only displayed in the program, it is not stored in the database.
API identifierlatestArrivalWeekThe API identifier used in GraphQL.
Number5658 

Latest delivery date

The latest delivery date of the product.

The value is calculated based on the Latest arrival date and Transport time fields. If the value in one of these fields is changed, the Latest delivery date field is recalculated.

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 nameDelDtThe database field name.
API identifierlatestDeliveryDateThe API identifier used in GraphQL.
Number5090 

Latest delivery week

The latest delivery week of the product.

The value is calculated based on the Latest arrival week and Transport time fields. If the value in one of these fields is changed, the Latest delivery week field is recalculated.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainWeekInteger
Memory fieldYesThe value in this field is only displayed in the program, it is not stored in the database.
API identifierlatestDeliveryWeekThe API identifier used in GraphQL.
Number5659 

Latest purchase date

The latest purchase date of the product.

The value is equal to the difference between the Latest delivery date and Lead time fields. If the value in one of these fields is changed, the Latest purchase date field is recalculated.

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 namePurcDtThe database field name.
API identifierlatestPurchaseDateThe API identifier used in GraphQL.
Number5089 

Latest purchase week

The latest purchase week of the product.

The value is equal to the difference between the Latest delivery week and Lead time fields. If the value in one of these fields is changed, the Latest purchase week field is recalculated.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainWeekInteger
Memory fieldYesThe value in this field is only displayed in the program, it is not stored in the database.
API identifierlatestPurchaseWeekThe API identifier used in GraphQL.
Number5660 

Lead time

The number of days needed for the supplier to deliver the product.

Note:
If you have selected Do not update time fields in the Calculate delivery date field in the Company information table, you cannot change this value. The value from the Stock balance table is used.

For sales order lines, the original value in the field is suggested based on the value in the Stock balance table.

For purchase order lines, the original value in the field is suggested based on the value in the Delivery alternative table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDaysInteger
SQL nameDelTmThe database field name.
API identifierleadTimeThe API identifier used in GraphQL.
Number5573 

Line no.

Each line in the table is given a consecutive number in the order in which they are entered.

Note:
The Line no. does not change when inserting new lines between existing ones. The Sort seq. no. specifies the order of the lines and is affected when new lines are inserted between existing lines.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainNo.Integer
Primary keyYesPurchase order no., Line no.
SQL nameLnNoThe database field name.
API identifierlineNoThe API identifier used in GraphQL.
Number5084 

Overridden del. date

The overridden delivery date of the purchase estimate.

An entry in this field triggers the following update:

  • Latest arrival date is set equal to Overridden del. date + Transport time
  • Latest delivery date is set equal to Overridden del. date
  • Latest purchase date is set equal to Overridden del. date - Lead time

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 nameOvDelDtThe database field name.
API identifieroverriddenDeliveryDateThe API identifier used in GraphQL.
Number6587 

Overridden del. week

The overridden delivery week of the purchase estimate.

The value is calculated based on the Overridden del. date field.

An entry in this field triggers the following update:

  • Latest arrival week is set equal to Overridden del. week + Transport time
  • Latest delivery week is set equal to Overridden del. week
  • Latest purchase week is set equal to Overridden del. week - Lead time

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainWeekInteger
Memory fieldYesThe value in this field is only displayed in the program, it is not stored in the database.
API identifieroverriddenDeliveryWeekThe API identifier used in GraphQL.
Number6592 

Product no.

The product for the line.

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.
DomainProduct no.Text (40)
SQL nameProdNoThe database field name.
API identifierproductNoThe API identifier used in GraphQL.
Number5085 
Table 2. Table relations
To tablePurposeFrom columnsTo columnsComments
ProductProduct
  • Product no.
Search productSearchProduct
  • Product no.
Stock balanceStockBalance
  • Product no.
  • Warehouse no.
This is a combined foreign key. Making a lookup in one of the fields may also fill in value in the others.
Delivery alternativeDeliveryAlternative
  • Product no.
  • Del. alt. no.
This is a combined foreign key. Making a lookup in one of the fields may also fill in value in the others.

Production

The purchase estimate line is included in a production order or a purchase order for a particular supplier.

The value is suggested from the Delivery alternative table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainBooleanInteger
SQL nameProdThe database field name.
API identifierproductionThe API identifier used in GraphQL.
Number5727 

Production time

The time it takes to produce the product. This value is used in calculation of delivery dates.

Note:
If you have selected Do not update time fields in the Calculate delivery date field in the Company information table, you cannot change this value. The value from the Stock balance table is used.

For production order lines, the original value in the field is suggested based on the value in the Delivery alternative table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDaysInteger
SQL nameProdTmThe database field name.
API identifierproductionTimeThe API identifier used in GraphQL.
Number11598 

Purchase order no.

A unique number identifying the purchase estimate.

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
Primary keyYesPurchase order no., Line no.
SQL namePurcSNoThe database field name.
API identifierpurchaseSuggestionNoThe API identifier used in GraphQL.
Number5083 
Table 3. Table relations
To tablePurposeFrom columnsTo columnsComments
Purchase estimatePurchaseSuggestion
  • Purchase order no.

Qty. before rounding

The quantity before rounding.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainQuantityDecimal
SQL nameNumBefRThe database field name.
API identifierquantityBeforeRoundingThe API identifier used in GraphQL.
Number6332 

Quantity

The number of units for the product/service.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainQuantityDecimal
SQL nameNumThe database field name.
API identifierquantityThe API identifier used in GraphQL.
Number5091 

Quantity per unit

The quantity per unit of the product.

Only used when the unit for a product differs from the product or supplier setting.

Different packaging sizes could be a reason to use this field. The value will be copied to the Order line table.

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

Sort seq. no.

The order of the lines.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainSort seq. no.Integer
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameSrtThe database field name.
API identifiersortSequenceNoThe API identifier used in GraphQL.
Number5092 

Sup. no.

The supplier of the product.

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.
DomainSup. no.Integer
SQL nameSupNoThe database field name.
API identifiersupplierNoThe API identifier used in GraphQL.
Number5088 
Table 4. Table relations
To tablePurposeFrom columnsTo columnsComments
AssociateSupplier
  • Sup. no.

Transport time

The number of days it takes to transport the product from the supplier to your warehouse or directly to the customer.

This value is suggested from the Delivery alternative table.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainDaysInteger
SQL nameTanspTmThe database field name.
API identifiertransportTimeThe API identifier used in GraphQL.
Number5572 

Unit

The unit for the product.

The default unit from the Delivery alternative table if it is entered, or the Default unit from the Product table.

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 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.
DomainUnitInteger
SQL nameUnThe database field name.
API identifierunitThe API identifier used in GraphQL.
Number5515 
Table 5. Table relations
To tablePurposeFrom columnsTo columnsComments
UnitUnit
  • Unit

Warehouse no.

The warehouse from which the goods are collected or to which the goods are delivered.

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.
DomainWarehouse no.Integer
SQL nameStcNoThe database field name.
API identifierwarehouseNoThe API identifier used in GraphQL.
Number5086 
Table 6. Table relations
To tablePurposeFrom columnsTo columnsComments
WarehouseWarehouse
  • Warehouse no.
Stock balanceStockBalance
  • Product no.
  • Warehouse no.
This is a combined foreign key. Making a lookup in one of the fields may also fill in value in the others.

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