PdcApplication.MoveStock

From External Bemet Wiki
Jump to navigation Jump to search

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)