Who has any idea how the actual quantity field in a sales order is set

Who has any idea how the actual quantity field in a sales order is set

Actual quantity shows the current stock of the item.

where does this set come from

any js file and python

From Stock Ledger Entry