API CreateStock: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
 
(Není zobrazena jedna mezilehlá verze od stejného uživatele.)
Řádka 35: Řádka 35:
 
|-
 
|-
 
|@EshopName
 
|@EshopName
|nchar(30)
+
|nvarchar(30)
 
|
 
|
 
|Eshop name
 
|Eshop name
Řádka 52: Řádka 52:
 
|
 
|
 
|}
 
|}
 +
 +
==== Return ====
 +
0 : OK
 +
100 : Item could not be created
  
 
==== Example ====
 
==== Example ====
 
<syntaxhighlight lang="sql">
 
<syntaxhighlight lang="sql">
EXEC [API_CreateStock] @WorkshopID = 1 ,@Name = 'Name' ,@Description = 'Description' ,@EshopName = 'Eshop name' ,@BranchID = 1 ,@IsVisibleOnEshop = 1  
+
DECLARE @return_value int
 +
EXEC @return_value = [API_CreateStock] @WorkshopID = 1 ,@Name = 'Name' ,@Description = 'Description' ,@EshopName = 'Eshop name' ,@BranchID = 1 ,@IsVisibleOnEshop = 1  
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
==== Notices ====
 
==== Notices ====
 
None.
 
None.

Aktuální verze z 9. 11. 2018, 16:44

Description

Method allows You to create new stock in system.

Exact name

API_CreateStock

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@WorkshopID int ID of workshop from workshop list (see relation) API_GetWorkshops.ID
@Name nvarchar(50) Name
@Description nvarchar(500) Description
@EshopName nvarchar(30) Eshop name
@BranchID int ID of branch from branch list (see relation) API_GetBranches.ID
@IsVisibleOnEshop int Is visible on eshop

Return

0 : OK
100 : Item could not be created

Example

 DECLARE @return_value int
 EXEC @return_value = [API_CreateStock] @WorkshopID = 1 ,@Name = 'Name' ,@Description = 'Description' ,@EshopName = 'Eshop name' ,@BranchID = 1 ,@IsVisibleOnEshop = 1

Notices

None.