API CreateTransport: Porovnání verzí
Skočit na navigaci
Skočit na vyhledávání
Založena nová stránka s textem „==== Description ==== Method allows You to create new transport in system. ==== Exact name ==== <code>API_CreateTransport</code> ==== Type ==== Standard…“ |
Bez shrnutí editace |
||
| (Nejsou zobrazeny 2 mezilehlé verze od stejného uživatele.) | |||
| Řádek 16: | Řádek 16: | ||
!Relation | !Relation | ||
|- | |- | ||
|@ | |@TransportName | ||
|nvarchar( | |nvarchar(250) | ||
| | | | ||
| | |Transport name | ||
| | | | ||
|- | |- | ||
|@ | |@Description | ||
| | |nvarchar(200) | ||
| | | | ||
| | |Description | ||
| | | | ||
|- | |- | ||
|@ | |@Prohibit | ||
|int | |int | ||
| | | | ||
| | |Prohibit | ||
| | | | ||
|- | |||
|@CashPaymentAllowed | |||
|int | |||
| | |||
|Cash payment allowed | |||
| | |||
|- | |||
|@WireTransferPaymentAllowed | |||
|int | |||
| | |||
|Wire transfer payment allowed | |||
| | |||
|- | |||
|@HideOnEshop | |||
|bit | |||
| | |||
|Hide on eshop | |||
| | |||
|- | |||
|@BranchID | |||
|int | |||
| | |||
|ID of branch from branch list (see relation) | |||
|API_GetBranches.ID | |||
|} | |} | ||
==== Return ==== | |||
0 : OK | |||
100 : Item could not be created | |||
==== Example ==== | ==== Example ==== | ||
<syntaxhighlight lang="sql"> | <syntaxhighlight lang="sql"> | ||
EXEC [API_CreateTransport] @ | DECLARE @return_value int | ||
EXEC @return_value = [API_CreateTransport] @TransportName= 'Transport' ,@Description= 'Description' ,@Prohibit= 0 ,@CashPaymentAllowed= 1 ,@WireTransferPaymentAllowed= 1 ,@HideOnEshop= 0 ,@BranchID= -1 | |||
</syntaxhighlight> | </syntaxhighlight> | ||
==== Notices ==== | ==== Notices ==== | ||
None. | None. | ||
Aktuální verze z 9. 11. 2018, 14:46
Description
Method allows You to create new transport in system.
Exact name
API_CreateTransport
Type
Standard executable stored procedure.
Specification
| Parameter | Data type | Value range | Description | Relation |
|---|---|---|---|---|
| @TransportName | nvarchar(250) | Transport name | ||
| @Description | nvarchar(200) | Description | ||
| @Prohibit | int | Prohibit | ||
| @CashPaymentAllowed | int | Cash payment allowed | ||
| @WireTransferPaymentAllowed | int | Wire transfer payment allowed | ||
| @HideOnEshop | bit | Hide on eshop | ||
| @BranchID | int | ID of branch from branch list (see relation) | API_GetBranches.ID |
Return
0 : OK 100 : Item could not be created
Example
DECLARE @return_value int
EXEC @return_value = [API_CreateTransport] @TransportName= 'Transport' ,@Description= 'Description' ,@Prohibit= 0 ,@CashPaymentAllowed= 1 ,@WireTransferPaymentAllowed= 1 ,@HideOnEshop= 0 ,@BranchID= -1
Notices
None.