API UpdateVATRate: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
Řádka 49: Řádka 49:
 
DECLARE @IsActive int
 
DECLARE @IsActive int
 
   
 
   
  SELECT @ID = ID
+
  SELECT @ID = [ID]
         @Name = Name
+
         @Name = [Name]
 
         @Value = 15
 
         @Value = 15
         @IsActive = IsActive
+
         @IsActive = [IsActive]
 
  FROM  [API_GetVATRates]  
 
  FROM  [API_GetVATRates]  
 
  WHERE  id = 10
 
  WHERE  id = 10

Verze z 2. 8. 2017, 08:33

Description

Method allows You to update VAT rate in system.

Exact name

API_UpdateVATRate

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ID int Internal system id
@Name nvarchar(50) Name
@Value decimal(18,2) Value
@IsActive int Is active


Example

DECLARE @ID int
DECLARE @Name nvarchar(50)
DECLARE @Value decimal(18,2)
DECLARE @IsActive int
 
 SELECT @ID = [ID]
        @Name = [Name]
        @Value = 15
        @IsActive = [IsActive]
 FROM   [API_GetVATRates] 
 WHERE  id = 10
 
 EXECUTE [API_UpdateVATRate] 
  @ID,
  @Name,
  @Value,
  @IsActive

Notices

None.