PdcApplication.MoveStock
Declaration
MoveStock(strMaterialNumber as String, strNewLocation as String, intMutCodeId as Integer, intStocklineId as Integer) as Boolean
Description
Moves a stockline to a new location.
Notes
This function updates/creates records in the material table, material stockline table, and material stock history table (LM_MAT, LMV_MAT, and LMH_MAT).
Code example
This code adds 100 items to the stated materialnumber's stock position.
Dim blnSucces = PDC.App.MoveStock(strMatNr, strLocation, intCode, intLMVID)
If blnSucces Then
lbResult.Text = "Succesfully moved stockline"
Else
lbResult.Text = PDC.App.LastError
End If
Availability
Available since February 2020 (From version 5.4 and 5.5)