PdcApplication.MoveStock

From External Bemet Wiki
Revision as of 12:00, 7 February 2020 by TC (talk | contribs) (Created page with "== Declaration == MoveStock(strMaterialNumber as String, strNewLocation as String, intMutCodeId as Integer, intStocklineId as Integer) as Boolean == Description == Moves a st...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 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)