API UpdateTransport: Porovnání verzí
Z Podpora.nextis.cz
| Řádka 69: | Řádka 69: | ||
<syntaxhighlight lang="sql"> | <syntaxhighlight lang="sql"> | ||
DECLARE @ID int | DECLARE @ID int | ||
| − | DECLARE @TransportName | + | DECLARE @TransportName varchar(250) |
| − | DECLARE @Description | + | DECLARE @Description varchar(200) |
| − | DECLARE @Prohibit | + | DECLARE @Prohibit int |
| − | DECLARE @CashPaymentAllowed | + | DECLARE @CashPaymentAllowed int |
| − | DECLARE @WireTransferPaymentAllowed | + | DECLARE @WireTransferPaymentAllowed int |
| − | DECLARE @HideOnEshop | + | DECLARE @HideOnEshop bit |
| − | DECLARE @BranchID | + | DECLARE @BranchID int |
SELECT @ID = [ID], | SELECT @ID = [ID], | ||
Verze z 2. 8. 2017, 08:36
Description
Method allows You to update transport in system.
Exact name
API_UpdateTransport
Type
Standard executable stored procedure.
Specification
| Parameter | Data type | Value range | Description | Relation |
|---|---|---|---|---|
| @ID | int | Internal system id | ||
| @TransportName | varchar(250) | Transport name | ||
| @Description | varchar(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 |
Example
DECLARE @ID int
DECLARE @TransportName varchar(250)
DECLARE @Description varchar(200)
DECLARE @Prohibit int
DECLARE @CashPaymentAllowed int
DECLARE @WireTransferPaymentAllowed int
DECLARE @HideOnEshop bit
DECLARE @BranchID int
SELECT @ID = [ID],
@TransportName = 'Transport 2',
@Description = [Description],
@Prohibit = [Prohibit],
@CashPaymentAllowed = [CashPaymentAllowed],
@WireTransferPaymentAllowed = [WireTransferPaymentAllowed],
@HideOnEshop = [HideOnEshop],
@BranchID = [BranchID]
FROM [API_GetTransports]
WHERE ID = 3
EXECUTE [API_UpdateTransport]
@ID,
@TransportName,
@Description,
@Prohibit,
@CashPaymentAllowed,
@WireTransferPaymentAllowed,
@HideOnEshop,
@BranchID
Notices
None.