API UpdateOrders: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
(Založena nová stránka s textem „fv“)
 
Řádka 1: Řádka 1:
fv
+
==== Description ====
 +
Method allows You to update order in system.
 +
 
 +
==== Exact name ====
 +
<code>API_UpdateOrders</code>
 +
 
 +
==== Type ====
 +
Standard executable stored procedure.
 +
 
 +
==== Specification ====
 +
{| class="wikitable"
 +
!Parameter
 +
!Data type
 +
!Value range
 +
!Description
 +
!Relation
 +
|-
 +
|@ID
 +
|int
 +
|
 +
|Internal system id
 +
|API_GetOrders.ID
 +
|-
 +
|@ForeignOrderNumber
 +
|nvarchar(80)
 +
|
 +
|Foreign order number
 +
|
 +
|-
 +
|@SendDate
 +
|datetime
 +
|
 +
|Send date
 +
|
 +
|}
 +
 
 +
==== Return ====
 +
0 : OK
 +
100 : Item could not be updated
 +
 
 +
==== Example ====
 +
<syntaxhighlight lang="sql">
 +
DECLARE @return_value int
 +
DECLARE @ID int
 +
DECLARE @ForeignOrderNumber nvarchar(80)
 +
DECLARE @SendDate datetime
 +
 
 +
 +
set @ID = 15,
 +
set @ForeignOrderNumber = 'OR123456',
 +
set @SendDate = GETDATE()
 +
 
 +
 +
EXECUTE @return_value = [API_UpdateDeliveryNote]
 +
  @ID
 +
  ,@ForeignOrderNumber
 +
  ,@SendDate
 +
 
 +
</syntaxhighlight>
 +
 
 +
==== Notices ====
 +
None.

Verze z 6. 3. 2019, 16:09

Description

Method allows You to update order in system.

Exact name

API_UpdateOrders

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@ID int Internal system id API_GetOrders.ID
@ForeignOrderNumber nvarchar(80) Foreign order number
@SendDate datetime Send date

Return

0 : OK
100 : Item could not be updated

Example

 DECLARE @return_value int
 DECLARE @ID int
 DECLARE @ForeignOrderNumber nvarchar(80)
 DECLARE @SendDate datetime

 
 set @ID = 15, 
 set @ForeignOrderNumber = 'OR123456',
 set @SendDate = GETDATE()

 
 EXECUTE @return_value = [API_UpdateDeliveryNote] 
   @ID
  ,@ForeignOrderNumber 
  ,@SendDate

Notices

None.