Stock change

The Stock change table contains one row for each delivery date, per product/warehouse combination, with expected future stock changes and closing stock.

It can be used to find out whether and when you can make deliveries and replenish stock.

PropertyValueDescription
DatabaseCompanyThis table is in the company databases.
SQL nameDelTmBalThe table name in the database.
API identifierstockChangeThe API identifier used in GraphQL.
Table no.126The table number in the data model.

The following fields exist in this table:

Accumulated decrease outside lead time

The accumulated decrease outside lead time, up to and including the date in each line.

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 identifieraccumulatedDecreaseOutsideLeadTimeThe API identifier used in GraphQL.
Number6547 

Accumulated increase

The accumulated increase, up to and including the date in each line.

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 identifieraccumulatedIncreaseThe API identifier used in GraphQL.
Number6525 

Accumulated reservations outside lead time

The accumulated reservations outside lead time, up to and including the date in each line.

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 identifieraccumulatedReservationsOutsideLeadTimeThe API identifier used in GraphQL.
Number6554 

Closing stock

How many units are expected to be available on the date in question.

It is calculated as the sum of the following fields:
  • + Physical stock from the Stock balance table
  • + Accumulated reservations outside lead time up to and including the date in the row
  • - Decrease within lead time from the Stock balance table
  • - Reservations outside lead time from the Stock balance table
  • + Decrease within lead time from the Stock balance table
  • - Accumulated decrease outside lead time
  • = Closing stock

If the stock is negative, you do not have a sufficient quantity of units available on this date. When you enter the quantity in a decrease order line, the program issues a warning if the Closing stock is negative on the required delivery date.

PropertyValueDescription
Visible by defaultYesThis field is 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 identifierclosingStockThe API identifier used in GraphQL.
Number4725 

Confirmed by supplier

How much of the ordered quantity has been confirmed by the supplier.

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.
SQL nameConfThe database field name.
API identifierconfirmedBySupplierThe API identifier used in GraphQL.
Number6314 

Credit expected loss

How many units of the product have been withdrawn for transaction type 4 - Adjustment/internal issue.

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.
SQL nameCExpLossThe database field name.
API identifiercreditExpectedLossThe API identifier used in GraphQL.
Number4537 

Credit in hire order

How many units of the product have been withdrawn for transaction type 2 - Hire.

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.
SQL nameCInHireOThe database field name.
API identifiercreditInHireOrderThe API identifier used in GraphQL.
Number4533 

Credit in loan order

How many units of the product have been withdrawn for transaction type 3 - Loan.

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.
SQL nameCInLoanOThe database field name.
API identifiercreditInLoanOrderThe API identifier used in GraphQL.
Number4535 

Credit in order

How many units of the product have been withdrawn from an order.

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.
SQL nameCInOThe database field name.
API identifiercreditInOrderThe API identifier used in GraphQL.
Number4531 

Credit in order to prod.

How many units of the product have been withdrawn from an order to production.

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.
SQL nameCInProdOThe database field name.
API identifiercreditInOrderToProductionThe API identifier used in GraphQL.
Number4539 

Credit in production

How many units of the product have not been produced.

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.
SQL nameCInProdThe database field name.
API identifiercreditInProductionThe API identifier used in GraphQL.
Number4543 

Credit in purchase

How many units of the product have been withdrawn for transaction type 6 - Purchase.

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.
SQL nameCInPurcThe database field name.
API identifiercreditInPurchaseThe API identifier used in GraphQL.
Number4541 

Decrease

The outgoing quantity from the warehouse for all 8 transaction types.

PropertyValueDescription
Visible by defaultYesThis field is 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 identifierdecreaseThe API identifier used in GraphQL.
Number4547 

Decrease outside lead time

The difference between the Decrease and Decrease within lead time fields.

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.
SQL nameDecOutsThe database field name.
API identifierdecreaseOutsideLeadTimeThe API identifier used in GraphQL.
Number6552 

Decrease within lead time

The difference between the Decrease and Decrease outside lead time fields.

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 identifierdecreaseWithinLeadTimeThe API identifier used in GraphQL.
Number6559 

Delivery date

The date for when you expect a stock change for the product at the current warehouse.

The program uses the Delivery date in a prioritized order, the first two applying only to purchases
  1. Arrival/departure date in the Order line
  2. Arrival/departure date in the Order
  3. Confirmed delivery date in the Order line
  4. Confirmed delivery date in the Order
  5. Required delivery date in the Order line
  6. Required delivery date in the Order
  7. Trans. date in the Order line
  8. Order date in the Order

The date is validated using the regional settings in Windows.

PropertyValueDescription
Visible by defaultYesThis field is visible by default in the table display.
DomainDateInteger
Primary keyYesProduct no., Warehouse no., Delivery date
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameDelDtThe database field name.
API identifierdeliveryDateThe API identifier used in GraphQL.
Number2849 

Delivery week

The week number for when you expect a stock change for the product at the current warehouse.

The week number is based on the Delivery date field.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainWeekInteger
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 identifierdeliveryWeekThe API identifier used in GraphQL.
Number5641 

Expected loss

Hows much is entered for transaction type 4 - Adjustment/internal issue.

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.
SQL nameExpLossThe database field name.
API identifierexpectedLossThe API identifier used in GraphQL.
Number4536 

Expected stock value

The expected stock value on the relevant date so that you can see how it changes over time.

The field is calculated as the product of the Average cost price from the Stock balance table and the Closing stock.

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 identifierexpectedStockValueThe API identifier used in GraphQL.
Number5893 

In hire order

How many units of the product are on hire.

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.
SQL nameInHireOThe database field name.
API identifierinHireOrderThe API identifier used in GraphQL.
Number4532 

In loan order

How many units of the product are on loan.

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.
SQL nameInLoanOThe database field name.
API identifierinLoanOrderThe API identifier used in GraphQL.
Number4534 

In order

How many units of the product are in an order.

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.
SQL nameInOThe database field name.
API identifierinOrderThe API identifier used in GraphQL.
Number4530 

In order to prod.

How many units of the product are ready for production.

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.
SQL nameInProdOThe database field name.
API identifierinOrderToProductionThe API identifier used in GraphQL.
Number4538 

In production

How many units of the product are in production.

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.
SQL nameInProdThe database field name.
API identifierinProductionThe API identifier used in GraphQL.
Number4542 

In purchase

How many units of the product are in a purchase.

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.
SQL nameInPurcThe database field name.
API identifierinPurchaseThe API identifier used in GraphQL.
Number4540 

In stock transfer from

How many units of the product to be transferred from another warehouse.

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.
SQL nameCInTrfOThe database field name.
API identifierinStockTransferFromThe API identifier used in GraphQL.
Number4545 

In stock transfer to

How many units of the product to be transferred to another warehouse.

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.
SQL nameInTrfOThe database field name.
API identifierinStockTransferToThe API identifier used in GraphQL.
Number4544 

Increase

The incoming quantity into the warehouse for all 8 transaction types.

PropertyValueDescription
Visible by defaultYesThis field is 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 identifierincreaseThe API identifier used in GraphQL.
Number4546 

Net expected loss

The difference between the Credit expected loss and Expected loss fields.

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 identifiernetExpectedLossThe API identifier used in GraphQL.
Number2856 

Net in hire order

The difference between the Credit in hire order and In hire order fields.

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 identifiernetInHireOrderThe API identifier used in GraphQL.
Number2852 

Net in loan order

The difference between the Credit in loan order and In loan order fields.

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 identifiernetInLoanOrderThe API identifier used in GraphQL.
Number2854 

Net in order

The difference between the Credit in order and In order fields.

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 identifiernetInOrderThe API identifier used in GraphQL.
Number2851 

Net in order to prod.

The difference between the Credit in order to prod. and In order to prod. fields.

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 identifiernetInOrderToProductionThe API identifier used in GraphQL.
Number2857 

Net in production

The difference between the In production and Credit in production fields.

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 identifiernetInProductionThe API identifier used in GraphQL.
Number2859 

Net in purchase

The difference between the In purchase and Credit in purchase fields.

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 identifiernetInPurchaseThe API identifier used in GraphQL.
Number2858 

Net in stock transfer

The difference between the In stock transfer to and In stock transfer from fields.

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 identifiernetInStockTransferThe API identifier used in GraphQL.
Number2860 

Net stock change

The total Net stock change for all 8 transaction types.

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 identifiernetStockChangeThe API identifier used in GraphQL.
Number2850 

Physical stock balance closing balance

The physical stock balance closing balance calculated on the basis of the Physical stock value in the Stock balance table.

This field does not take into account the balance within and outside the lead time.

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.
SQL nameClosBalThe database field name.
API identifierphysicalStockBalanceCbThe API identifier used in GraphQL.
Number13874 

Physical stock balance opening balance

The physical stock balance opening balance calculated on the basis of increases and decreases.

This field does not take into account the balance within and outside the lead time.

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.
SQL nameIncBalThe database field name.
API identifierphysicalStockBalanceObThe API identifier used in GraphQL.
Number10961 

Product no.

The product no. that the stock change applies to.

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)
Primary keyYesProduct no., Warehouse no., Delivery date
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameProdNoThe database field name.
API identifierproductNoThe API identifier used in GraphQL.
Number2847 
Table 1. Table relations
To tablePurposeFrom columnsTo columnsComments
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.
ProductProduct
  • Product no.

Realised year/week

The year and week number based on delivery date.

Tip:
This column can be used to generate break line totals per week and per year.

PropertyValueDescription
Visible by defaultNoThis field is not visible by default in the table display.
DomainRealised year/weekInteger
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameYrWkThe database field name.
API identifierrealisedYearAndWeekThe API identifier used in GraphQL.
Number5894 

Reservations outside lead time

This field shows the difference between the Increase outside lead time, Decrease outside lead time and Reservations within lead time fields.

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.
SQL nameRsvOutsThe database field name.
API identifierreservationsOutsideLeadTimeThe API identifier used in GraphQL.
Number6553 

Sent from supplier

How much of the ordered quantity has been sent from the supplier.

The field is updated on the basis of the same date in the purchase order lines as the unrealised stock changes.

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.
SQL nameSentThe database field name.
API identifiersentFromSupplierThe API identifier used in GraphQL.
Number6315 

Warehouse no.

Which warehouse no. the stock change relates to.

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
Primary keyYesProduct no., Warehouse no., Delivery date
Write AccessNoneYou are not allowed to modify the value in this field.
SQL nameStcNoThe database field name.
API identifierwarehouseNoThe API identifier used in GraphQL.
Number2848 
Table 2. Table relations
To tablePurposeFrom columnsTo columnsComments
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.
WarehouseWarehouse
  • Warehouse no.

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