PdcMasterData.Material: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:


== Description ==
== Description ==
 
Returns the basematerial object.  
== Methods ==
 
== Properties ==
[[PdcMaterial.NettPurchPriceUnit]]<br>
[[PdcMaterial.GrossPurchPriceUnit]]<br>


== Notes ==
== Notes ==
This property represents the material file in Plan-de-CAMpagne.
Represents the basematerial object.
With this object an extension can manage several properties of a material in the materialfile.


== Code example ==
== Code example ==
Line 33: Line 29:
</source>
</source>


== Availability ==
== Availability ==  
Available since Januari 2017 (From version 5.3)
Available since Januari 2017 (From version 5.3)

Revision as of 09:07, 10 January 2018

Declaration

Material as pdcBaseMaterial

Description

Returns the basematerial object.

Notes

Represents the basematerial object. With this object an extension can manage several properties of a material in the materialfile.

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)