PdcBaseMaterial: Difference between revisions
Jump to navigation
Jump to search
Created page with "== Declaration == baMaterial as pdcBaseMaterial == Description == == Methods == == Properties == PdcMaterial.NettPurchPriceUnit<br> [[PdcMaterial.GrossPurchPriceUni..." |
No edit summary |
||
Line 1: | Line 1: | ||
== Methods == | |||
[[pdcBaseMaterial.Load]]<br> | |||
[[pdcBaseMaterial.Save]]<br> | |||
== Properties == | |||
[[pdcBaseMaterial.NettPurchPriceUnit]]<br> | |||
[[pdcBaseMaterial.GrossPurchPriceUnit]]<br> | |||
== Description == | |||
Interface object for a clockline | |||
== Notes == | |||
Represents the ClockLine object. | |||
With this object a script can manipulate a single clock line. | |||
Pay attention: The sequence of populating the properties is important. | |||
See the helpfile for the properties. | |||
== Code example == | |||
The following example code creates a new clock line: | |||
<source lang="vb"> | |||
Dim objClockLine | |||
Set objClockLine = Pdc.ProductRegistration.ClockLines.New | |||
objClockLine.PersonelNo = "1000" | |||
objClockLine.ClockAccount = "LUNCH" | |||
objClockLine.StartClocking = Cdate(Date) | |||
objClockLine.EndClocking = Cdate(Date) | |||
objClockLine.WorkedTime = 2.5 | |||
objClockLine.Save | |||
Set objClockLine = nothing | |||
</source> | |||
== Declaration == | == Declaration == | ||
baMaterial as [[pdcBaseMaterial]] | baMaterial as [[pdcBaseMaterial]] | ||
Line 6: | Line 40: | ||
== Methods == | == Methods == | ||
== Notes == | == Notes == |
Revision as of 09:10, 10 January 2018
Methods
pdcBaseMaterial.Load
pdcBaseMaterial.Save
Properties
pdcBaseMaterial.NettPurchPriceUnit
pdcBaseMaterial.GrossPurchPriceUnit
Description
Interface object for a clockline
Notes
Represents the ClockLine object. With this object a script can manipulate a single clock line. Pay attention: The sequence of populating the properties is important. See the helpfile for the properties.
Code example
The following example code creates a new clock line:
Dim objClockLine
Set objClockLine = Pdc.ProductRegistration.ClockLines.New
objClockLine.PersonelNo = "1000"
objClockLine.ClockAccount = "LUNCH"
objClockLine.StartClocking = Cdate(Date)
objClockLine.EndClocking = Cdate(Date)
objClockLine.WorkedTime = 2.5
objClockLine.Save
Set objClockLine = nothing
Declaration
baMaterial as pdcBaseMaterial
Description
Methods
Notes
This property represents the material file in Plan-de-CAMpagne.
Code example
This code example opens material "ABC123", changes the nett purchase price unit to 50 and saves.
dim objBaseMat
dim strMatNo
strMatNo = "ABC123"
set objBaseMat = pdc.MasterData.Material
if objBaseMat.Load(strMatNo) then
ObjBaseMat.NettPurchPriceUnit = 50
if not objBaseMat.Save(true) then
msgbox pdc.LastError
end if
else
msgbox pdc.LastError
end if
Availability
Available since Januari 2017 (From version 5.3)