PdcBaseMaterial: Difference between revisions

From External Bemet Wiki
Jump to navigation Jump to search
Created page with "== Declaration == baMaterial as pdcBaseMaterial == Description == == Methods == == Properties == PdcMaterial.NettPurchPriceUnit<br> [[PdcMaterial.GrossPurchPriceUni..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Declaration ==
baMaterial as [[pdcBaseMaterial]]
== Description ==
== Methods ==
== Methods ==
[[pdcBaseMaterial.Load]]<br>
[[pdcBaseMaterial.Save]]<br>


== Properties ==
== Properties ==
[[PdcMaterial.NettPurchPriceUnit]]<br>
[[pdcBaseMaterial.FixedStockPriceUnit]]<br>
[[PdcMaterial.GrossPurchPriceUnit]]<br>
[[pdcBaseMaterial.GrossPurchPriceUnit]]<br>
[[pdcBaseMaterial.IsFixedStockPrice]]<br>
[[pdcBaseMaterial.NettPurchPriceUnit]]<br>
 
== Description ==
Interface for the basematerial object


== Notes ==
== Notes ==
This property represents the material file in Plan-de-CAMpagne.
Represents the Basematerial object.
With this object an extension manipulate a single base material.


== Code example ==
== Code example ==

Latest revision as of 09:18, 10 January 2018

Methods

pdcBaseMaterial.Load
pdcBaseMaterial.Save

Properties

pdcBaseMaterial.FixedStockPriceUnit
pdcBaseMaterial.GrossPurchPriceUnit
pdcBaseMaterial.IsFixedStockPrice
pdcBaseMaterial.NettPurchPriceUnit

Description

Interface for the basematerial object

Notes

Represents the Basematerial object. With this object an extension manipulate a single base material.

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)