API UpdateVATRate: Porovnání verzí
Skočit na navigaci
Skočit na vyhledávání
Bez shrnutí editace |
Bez shrnutí editace |
||
| (Nejsou zobrazeny 2 mezilehlé verze od stejného uživatele.) | |||
| Řádek 1: | Řádek 1: | ||
==== Description ==== | ==== Description ==== | ||
Method allows You to update | Method allows You to update VAT rate in system. | ||
==== Exact name ==== | ==== Exact name ==== | ||
<code> | <code>API_UpdateVATRate</code> | ||
==== Type ==== | ==== Type ==== | ||
| Řádek 20: | Řádek 20: | ||
| | | | ||
|Internal system id | |Internal system id | ||
| | | | ||
|- | |- | ||
| Řádek 48: | Řádek 41: | ||
|} | |} | ||
==== Return ==== | |||
0 : OK | |||
100 : Item could not be updated | |||
==== Example ==== | ==== Example ==== | ||
<syntaxhighlight lang="sql"> | <syntaxhighlight lang="sql"> | ||
DECLARE @return_value int | |||
DECLARE @ID int | |||
DECLARE @Name nvarchar(50) | |||
DECLARE @Value decimal(18,2) | |||
DECLARE @IsActive int | |||
SELECT @ID = | SELECT @ID = [ID] | ||
@Name = [Name] | |||
@Value = 15 | |||
@IsActive = [IsActive] | |||
FROM [ | FROM [API_GetVATRates] | ||
WHERE id = | WHERE id = 10 | ||
EXECUTE [ | EXECUTE @return_value = [API_UpdateVATRate] | ||
@ID, | @ID, | ||
@ | @Name, | ||
@Value, | |||
@IsActive | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Aktuální verze z 22. 9. 2017, 08:45
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 |
Return
0 : OK 100 : Item could not be updated
Example
DECLARE @return_value int
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 @return_value = [API_UpdateVATRate]
@ID,
@Name,
@Value,
@IsActive
Notices
None.