API CreateStock: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
(Založena nová stránka s textem „==== Description ==== Method allows You to create new stock in system. ==== Exact name ==== <code>API_CreateStock</code> ==== Type ==== Standard executab…“)
 
Řádka 21: Řádka 21:
 
|ID of workshop from workshop list (see relation)
 
|ID of workshop from workshop list (see relation)
 
|API_GetWorkshops.ID
 
|API_GetWorkshops.ID
 +
|-
 +
|@Name
 +
|nvarchar(50)
 +
|
 +
|Name
 +
|
 +
|-
 +
|@Description
 +
|nvarchar(500)
 +
|
 +
|Description
 +
|
 +
|-
 +
|@EshopName
 +
|nchar(30)
 +
|
 +
|Eshop name
 +
|
 +
|-
 +
|@BranchID
 +
|int
 +
|
 +
|ID of branch from branch list (see relation)
 +
|API_GetBranches.ID
 +
|-
 +
|@IsVisibleOnEshop
 +
|int
 +
|
 +
|Is visible on eshop
 +
|
 
|}
 
|}
  
 
==== Example ====
 
==== Example ====
 
<syntaxhighlight lang="sql">
 
<syntaxhighlight lang="sql">
EXEC [API_CreateBranch] @WorkshopID = 1 ,@Name = 'Name' ,@Street = 'Street' ,@City = 'City' ,@ZIPCode = 'ZIPCode' ,@Country = 'Country' ,@Region = 'Region' ,@State ='Česká republika' ,@StateID = 15797 ,@Phone = '+420 556 621 300' ,@Fax = '+420 596 790 789' ,@MobilePhone = '+420 556 621 301' ,@Email = 'info@nextis.cz' ,@Web = 'www.nextis.cz'
+
EXEC [API_CreateStock] @WorkshopID = 1 ,@Name = 'Name' ,@Description = 'Description' ,@EshopName = 'Eshop name' ,@BranchID = 1 ,@IsVisibleOnEshop = 1
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
==== Notices ====
 
==== Notices ====
 
None.
 
None.

Verze z 31. 7. 2017, 11:13

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 nchar(30) Eshop name
@BranchID int ID of branch from branch list (see relation) API_GetBranches.ID
@IsVisibleOnEshop int Is visible on eshop

Example

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

Notices

None.