API CreateProduct: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
Řádka 16: Řádka 16:
 
!Relation
 
!Relation
 
|-
 
|-
|ID
+
|@GroupID
|int
 
|
 
|Internal system id
 
|
 
|-
 
|GroupID
 
 
|int  
 
|int  
 
|
 
|
Řádka 28: Řádka 22:
 
|API_GetProductGroups.ID
 
|API_GetProductGroups.ID
 
|-
 
|-
|SupplierID
+
|@SupplierID
 
|int  
 
|int  
 
|
 
|
Řádka 34: Řádka 28:
 
|API_GetCustomers.ID
 
|API_GetCustomers.ID
 
|-
 
|-
|ProductCode
+
|@ProductCode
 
|nvarchar(40)  
 
|nvarchar(40)  
 
|
 
|
Řádka 40: Řádka 34:
 
|
 
|
 
|-
 
|-
|TypeID
+
|@TypeID
 
|int  
 
|int  
 
|
 
|
Řádka 47: Řádka 41:
 
|
 
|
 
|-
 
|-
|MinimumOrderableQuantity
+
|@MinimumOrderableQuantity
 
|decimal(18,2)  
 
|decimal(18,2)  
 
|
 
|
Řádka 53: Řádka 47:
 
|
 
|
 
|-
 
|-
|BasicPrice
+
|@BasicPrice
 
|decimal(18,6)  
 
|decimal(18,6)  
 
|
 
|
Řádka 59: Řádka 53:
 
|
 
|
 
|-
 
|-
|CreatedDate
+
|@CreatedDate
 
|datetime  
 
|datetime  
 
|
 
|
Řádka 65: Řádka 59:
 
|
 
|
 
|-
 
|-
|UpdatedDate
+
|@UpdatedDate
 
|datetime  
 
|datetime  
 
|
 
|
Řádka 71: Řádka 65:
 
|
 
|
 
|-
 
|-
|SupplierItemName
+
|@SupplierItemName
 
|nvarchar(150)  
 
|nvarchar(150)  
 
|
 
|
Řádka 77: Řádka 71:
 
|
 
|
 
|-
 
|-
|SupplierProductCode
+
|@SupplierProductCode
 
|nvarchar(40)  
 
|nvarchar(40)  
 
|
 
|
Řádka 83: Řádka 77:
 
|
 
|
 
|-
 
|-
|Prefix
+
|@Prefix
 
|nvarchar(3)  
 
|nvarchar(3)  
 
|
 
|
Řádka 89: Řádka 83:
 
|
 
|
 
|-
 
|-
|ManufacturerSupplier
+
|@ManufacturerSupplier
 
|nvarchar(50)  
 
|nvarchar(50)  
 
|
 
|
Řádka 95: Řádka 89:
 
|
 
|
 
|-
 
|-
|ForeignPrice
+
|@ForeignPrice
 
|decimal(19,6)  
 
|decimal(19,6)  
 
|
 
|
Řádka 101: Řádka 95:
 
|
 
|
 
|-
 
|-
|RetailPrice
+
|@RetailPrice
 
|decimal(18,6)  
 
|decimal(18,6)  
 
|
 
|
Řádka 110: Řádka 104:
 
==== 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_CreateProduct] @SupplierID= 2 ,@GroupID= 14 ,@SupplierProductCode= '1457429619BS' ,@ManufacturerSupplier= 'BOSCH2' ,@Prefix= '' ,@SupplierItemName= 'SupplierItemName' ,@MinimumOrderableQuantity= 1 ,@ForeignPrice= 110 ,@BasicPrice= 190
 
</syntaxhighlight>
 
</syntaxhighlight>
  
 
==== Notices ====
 
==== Notices ====
 
None.
 
None.

Verze z 7. 8. 2017, 09:17

Description

Method allows You to create new product in system.

Exact name

API_CreateProduct

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@GroupID int API_GetProductGroups.ID
@SupplierID int SupplierID API_GetCustomers.ID
@ProductCode nvarchar(40) Product code
@TypeID int TypeID.

1 - products

@MinimumOrderableQuantity decimal(18,2) Minimum orderable quantity
@BasicPrice decimal(18,6) Basic price
@CreatedDate datetime Created date
@UpdatedDate datetime Updated date
@SupplierItemName nvarchar(150) Supplier item name
@SupplierProductCode nvarchar(40) Supplier product code
@Prefix nvarchar(3) Prefix
@ManufacturerSupplier nvarchar(50) Manufacturer supplier
@ForeignPrice decimal(19,6) Foreign price
@RetailPrice decimal(18,6) Retail price

Example

EXEC [API_CreateProduct] @SupplierID= 2 ,@GroupID= 14 ,@SupplierProductCode= '1457429619BS' ,@ManufacturerSupplier= 'BOSCH2' ,@Prefix= '' ,@SupplierItemName= 'SupplierItemName' ,@MinimumOrderableQuantity= 1 ,@ForeignPrice= 110 ,@BasicPrice= 190

Notices

None.