PdcMaterialFile.MergeStockLines: Difference between revisions
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
== Declaration == | == Declaration == | ||
MergeStockLines(oldID as Integer, newID as Integer, quantity as double, code as integer) | MergeStockLines(oldID as Integer, newID as Integer, quantity as double, code as integer) as Boolean | ||
== Description == | == Description == | ||
This function merges two stocklines into one. The amount of the old stockline is merged into the new stockline. | |||
== Notes == | == Notes == | ||
All checks are done by standard PdC. | |||
== Code example == | == Code example == | ||
Merge two lines into one. | |||
PDC.App.MasterData.MaterialFile.MergeStockLines(oldID, newID, | <source lang="vbnet"> | ||
Sub MergeStocklines | |||
dim oldID as Integer = 123 | |||
dim newID as Integer = 456 | |||
dim Quantity as double = 1 | |||
dim code as Integer = 12 | |||
if not PDC.App.MasterData.MaterialFile.MergeStockLines(oldID, newID, quantity, code) then | |||
msgbox(pdc.app.lasterror) | |||
end if | |||
End Sub | |||
</source> | |||
== Availability == | == Availability == | ||
Available since August 2020 (5.6) | Available since August 2020 (5.6) |
Latest revision as of 10:23, 29 September 2020
Declaration
MergeStockLines(oldID as Integer, newID as Integer, quantity as double, code as integer) as Boolean
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
if not PDC.App.MasterData.MaterialFile.MergeStockLines(oldID, newID, quantity, code) then
msgbox(pdc.app.lasterror)
end if
End Sub
Availability
Available since August 2020 (5.6)