PdcApplication.MoveStock: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == MoveStock(strMaterialNumber as String, strNewLocation as String, intMutCodeId as Integer, intStocklineId as Integer) as Boolean == Description == Moves a st..." |
|||
Line 10: | Line 10: | ||
== Code example == | == Code example == | ||
This code | This code moves a stockline and shows the result. | ||
<source lang="vb"> | <source lang="vb"> |
Latest revision as of 12:01, 7 February 2020
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 moves a stockline and shows the result.
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)