<< Click to Display Table of Contents >> Object LWCRM.Product |
![]() ![]() ![]() |
Syntax
strBookEAN = Call LWCRM.Product.ISBNToBookEAN( strISBN )
Parameters
strISBN
Een 10-cijferige ISBN code
Voorbeeld
strBookEAN = LWCRM.Product.ISBNToBookEAN( "90-5940-116-6" )
strBookEAN = LWCRM.Product.ISBNToBookEAN( "0764516981" )
Syntax
strWarehouseId = LWCRM.Product.PreferredWarehouse( strProductId )
Parameters
strProductId
De productid (= products.productid) waarvoor het voorkeurmagazijn moet worden opgezocht
Voorbeeld
strWarehouseId = LWCRM.Product.PreferredWarehouse( "00231" )
Het is mogelijk voor alle voorraad-producten het besteladvies te laten herberekenen door de productid niet door te geven.
Syntax
Call LWCRM.Product.RecalculateOrderingAdvice( [strProductId] )
Parameters
strProductId
De interne ID (products.productid) van het product.
Syntax
sngPrice = LWCRM.Product.RetrieveRetailPrice( strUserid, intObjectType, strItemId, strProductId, sngQuantity )
Parameters
strUserId
De ID van de huidige gebruiker, welke kan worden bepaald middels LWCRM.User.UserId
intObjectType
Geeft aan of de berekening voor een Contactpersoon (=1) of Bedrijf (=2) moet worden uitgevoerd.
strItemId
De Contactpersoon ID (contacts.contactid) of Bedrijfs ID (accounts.accountid) waarvoor de prijs opgezocht moet worden.
sngQuantity
Aantal producten waarmee rekening moet worden gehouden met de bepaling van de verkoopprijs.
Voorbeeld
sngPrice = LWCRM.Product.PreferredWarehouse( LWCRM.User.UserId, 1, "00011", "02910", 75 )
Syntax
blnStockItem = LWCRM.Product.StockItem( strProductId )
Parameters
strProductId
De interne ID (products.productid) van het product waarvan moet worden bepaald of dit een voorraadhoudend product is.
Voorbeeld
blnStockItem = LWCRM.Product.StockItem( "00029" )
Syntax
blnValid = LWCRM.Product.ValidISBN( strISBN )
Parameters
strISBN
Een 10-cijferige ISBN code.
Voorbeeld
If Not LWCRM.Product.ValidISBN( "90-5940-116-6" ) Then ...
If Not LWCRM.Product.ValidISBN( "0764516981" ) Then ...