API GetPrices: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
 
(Nejsou zobrazeny 3 mezilehlé verze od 2 dalších uživatelů.)
Řádka 1: Řádka 1:
API_GetPrices (@CustomerID int, @ProductIDs table)
+
'''API_GetPrices'''
  
Example
+
@CustomerID int - API_GetCustomers.ID,
 +
@UseEshopDiscount - Use Eshop Discount (0-OFF, 1-ON)
 +
@ProductIDs table - API_GetProductGroups.ID
  
DECLARE @ID dbo.''IDSLIST'' 
+
''Example:''
  
INSERT INTO @ID 
+
DECLARE @ID dbo.''IDSLIST'' 
 +
INSERT INTO @ID 
 +
SELECT TOP 1000 id 
 +
FROM   api_getproductgroups  
 +
WHERE  tecdocbrandname = 'WALKER' 
 +
 +
EXEC '''Api_getprices''' 
 +
@CustomerID = 2,
 +
@UseEshopDiscount = 1, 
 +
@ProductIDs = @ID 
  
SELECT TOP 1000 id 
+
==== Notice ====
 
+
Price calculation function uses own data type called IDsList (<code>dbo.IDsList</code>)
FROM   api_getproductgroups  
 
 
 
WHERE  tecdocbrandname = 'WALKER' 
 
 
 
EXEC '''Api_getprices''' 
 
 
 
@CustomerID = 2, 
 
 
 
@ProductIDs = @ID 
 

Aktuální verze z 15. 11. 2018, 12:20

API_GetPrices

@CustomerID int - API_GetCustomers.ID,
@UseEshopDiscount - Use Eshop Discount (0-OFF, 1-ON) 
@ProductIDs table - API_GetProductGroups.ID

Example:

DECLARE @ID dbo.IDSLIST  
INSERT INTO @ID 
SELECT TOP 1000 id 
FROM   api_getproductgroups  
WHERE  tecdocbrandname = 'WALKER' 

EXEC Api_getprices 
@CustomerID = 2,
@UseEshopDiscount = 1, 
@ProductIDs = @ID 

Notice

Price calculation function uses own data type called IDsList (dbo.IDsList)