PdcMaterialFile.MergeStockLines: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Line 12: Line 12:
Merge two lines into one.
Merge two lines into one.


<source lang="vb.net">
<source lang="vbnet">
Sub MergeStocklines
Sub MergeStocklines
dim oldID as Integer = 123
dim oldID as Integer = 123

Revision as of 11:49, 24 September 2020

Declaration

MergeStockLines(oldID as Integer, newID as Integer, quantity as double, code as integer)

Description

This function merges two stocklines into one. The amount of the old stockline is merged into the new stockline.

Notes

All checks are done by standard PdC.

Code example

Merge two lines into one.

Sub MergeStocklines
dim oldID as Integer = 123
dim newID as Integer = 456
dim Quantity as double = 1
dim code as Integer = 12
  PDC.App.MasterData.MaterialFile.MergeStockLines(oldID, newID, quantity, code)
End Sub

Availability

Available since August 2020 (5.6)