API GetCustomerSettings: Porovnání verzí

Z Podpora.nextis.cz
Přejít na: navigace, hledání
 
(Nejsou zobrazeny 3 mezilehlé verze od stejného uživatele.)
Řádka 1: Řádka 1:
 
====Description====
 
====Description====
Method gives You overview of existing article in system.
+
Method gives You overview of existing customer settings in system.
 
====Exact name====
 
====Exact name====
<code>API_GetArticles</code>
+
<code>API_GetCustomerSettings</code>
 
====Type====
 
====Type====
 
Standard view.
 
Standard view.
Řádka 12: Řádka 12:
 
!Relation
 
!Relation
 
|-
 
|-
|ID
+
|CustomerID
 
|int
 
|int
 
|Internal system id
 
|Internal system id
 +
ID of customer from customer list (see relation)
 +
|API_GetCustomers.ID
 +
|-
 +
|IsChildRegistrationEnabled
 +
|int
 +
|Is child registration enabled
 +
|
 +
|-
 +
|IsBlocked
 +
|int
 +
|Is blocked
 +
|
 +
|-
 +
|DefaultPaymentType
 +
|int
 +
|Default payment type:
 +
0 = Default - cash,
 +
 +
1 = cash,
 +
 +
2 = transfer
 
|
 
|
 
|-
 
|-
|UrlName
+
|DueType
|nvarchar(50)
+
|int
|Url name
+
|IF DefaultPaymentType = 2. Due type:
 +
 
 +
0 = Default - Global setting,
 +
 
 +
1 = Global setting,
 +
 
 +
2 = Individual setting
 
|
 
|
 
|-
 
|-
|Title
+
|DueDays
|nvarchar(50)
+
|int
|Title
+
|If DefaultPaymentType = 2 and DueType = 2. Due days:
 +
 
 +
0 = Default
 
|
 
|
 
|-
 
|-
|HtmlText
+
|CorrectionPaymentType
|ntext
+
|int
|Html text
+
|Correction payment type:
 +
1 = Default - cash,
 +
 
 +
2 = transfer
 +
|
 +
|-
 +
|CorrectionPaymentRange
 +
|int
 +
|If CorrectionPaymentType = 2. Correction payment range:
 +
 
 +
0 = Default - Global setting,
 +
 
 +
1 = Individual setting
 
|
 
|
 
|-
 
|-
|Language
+
|CorrectionPaymentRangeDays
 
|int
 
|int
|cs=0; pl=1; en=2; de=3; sk=4; hu=5; ar=11; bg=17
+
|If CorrectionPaymentType = 2 and CorrectionPaymentRange = 1. Correction payment range days:
 +
 
 +
0 = Default
 
|
 
|
 
|}
 
|}
 
====Example====
 
====Example====
 
<syntaxhighlight lang="sql">
 
<syntaxhighlight lang="sql">
SELECT TOP 1000 * FROM [API_GetArticles]
+
SELECT TOP 1000 * FROM [API_GetCustomerSettings]
 
</syntaxhighlight>
 
</syntaxhighlight>
 
====Notices<span> </span><span> </span>====
 
====Notices<span> </span><span> </span>====
 
None.
 
None.

Aktuální verze z 13. 8. 2020, 11:31

Description

Method gives You overview of existing customer settings in system.

Exact name

API_GetCustomerSettings

Type

Standard view.

Specification

Column Data type Description Relation
CustomerID int Internal system id

ID of customer from customer list (see relation)

API_GetCustomers.ID
IsChildRegistrationEnabled int Is child registration enabled
IsBlocked int Is blocked
DefaultPaymentType int Default payment type:

0 = Default - cash,

1 = cash,

2 = transfer

DueType int IF DefaultPaymentType = 2. Due type:

0 = Default - Global setting,

1 = Global setting,

2 = Individual setting

DueDays int If DefaultPaymentType = 2 and DueType = 2. Due days:

0 = Default

CorrectionPaymentType int Correction payment type:

1 = Default - cash,

2 = transfer

CorrectionPaymentRange int If CorrectionPaymentType = 2. Correction payment range:

0 = Default - Global setting,

1 = Individual setting

CorrectionPaymentRangeDays int If CorrectionPaymentType = 2 and CorrectionPaymentRange = 1. Correction payment range days:

0 = Default

Example

SELECT TOP 1000 * FROM [API_GetCustomerSettings]

Notices

None.