API UpdateTransport: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
Řádka 18: Řádka 18:
 
|@ID
 
|@ID
 
|int
 
|int
 +
|
 
|Internal system id
 
|Internal system id
 
|
 
|
Řádka 23: Řádka 24:
 
|@TransportName
 
|@TransportName
 
|varchar(250)
 
|varchar(250)
 +
|
 
|Transport name
 
|Transport name
 
|
 
|
Řádka 28: Řádka 30:
 
|@Description
 
|@Description
 
|varchar(200)
 
|varchar(200)
 +
|
 
|Description
 
|Description
 
|
 
|
Řádka 33: Řádka 36:
 
|@Prohibit
 
|@Prohibit
 
|int
 
|int
 +
|
 
|Prohibit
 
|Prohibit
 
|
 
|
Řádka 38: Řádka 42:
 
|@CashPaymentAllowed
 
|@CashPaymentAllowed
 
|int
 
|int
 +
|
 
|Cash payment allowed
 
|Cash payment allowed
 
|
 
|
Řádka 43: Řádka 48:
 
|@WireTransferPaymentAllowed
 
|@WireTransferPaymentAllowed
 
|int
 
|int
 +
|
 
|Wire transfer payment allowed
 
|Wire transfer payment allowed
 
|
 
|
Řádka 48: Řádka 54:
 
|@HideOnEshop
 
|@HideOnEshop
 
|bit
 
|bit
 +
|
 
|Hide on eshop
 
|Hide on eshop
 
|
 
|
Řádka 53: Řádka 60:
 
|@BranchID
 
|@BranchID
 
|int
 
|int
 +
|
 
|ID of branch from branch list (see relation)
 
|ID of branch from branch list (see relation)
 
|API_GetBranches.ID
 
|API_GetBranches.ID

Verze z 2. 8. 2017, 09:24

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
 DECLARE @Description
 DECLARE @Prohibit
 DECLARE @CashPaymentAllowed
 DECLARE @WireTransferPaymentAllowed
 DECLARE @HideOnEshop
 DECLARE @BranchID
 
 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.