API UpdateCustomerSettings: Porovnání verzí

Z Podpora.nextis.cz
Skočit na navigaci Skočit na vyhledávání
Založena nová stránka s textem „==== Description ==== Method allows You to update customer settings in system. ==== Exact name ==== <code>API_UpdateCustomerSettings</code> ==== Type ===…“
 
Bez shrnutí editace
Řádek 16: Řádek 16:
!Relation
!Relation
|-
|-
|@ID
|@IDPartner
|int
|int
|
|
|Internal system id
|ID of customer from customer list (see relation)
|API_GetBranches.ID
|API_GetCustomers.ID
 
|-
|@EnableChildRegistration
|bit
|
|Enable child registration
|
|-
|@Blocked
|bit
|
|Blocked
|
|}
|}



Verze z 7. 8. 2017, 14:16

Description

Method allows You to update customer settings in system.

Exact name

API_UpdateCustomerSettings

Type

Standard executable stored procedure.

Specification

Parameter Data type Value range Description Relation
@IDPartner int ID of customer from customer list (see relation) API_GetCustomers.ID
@EnableChildRegistration bit Enable child registration
@Blocked bit Blocked


Example

 DECLARE @IDPartner int
 DECLARE @EnableChildRegistration bit
 DECLARE @Blocked bit

 
 SELECT @IDPartner= [IDPartner], 
       @EnableChildRegistration= [EnableChildRegistration], 
       @Blocked= 1
 FROM   [API_GetCustomerSettings] 
 WHERE  id = 3
 
 EXECUTE [API_UpdateCustomerSettings] 
  @IDPartner,
  @EnableChildRegistration,
  @Blocked

Notices

None.