ChartOfAccountsObject.<Chart of accounts name>.BelongsToItem

Syntax:

BelongsToItem(<Item>)

Parameters:

<Item> (required)

Type: ChartOfAccountsRef.
The account for which the belonging is determined .

Returned value:

Type: Boolean.
True indicates the account is subordinated to another account; otherwise it is False.
If the item itself is used as parameter, then False.

Description:

Defines whether the account is subordinated to another account (item) in accordance with all hierarchical levels.

Availability:

Server, thick client, external connection.

Note:

Determines an subordination at the point at which the method was invoked, by consecutively reading all higher level items.

Example:

If Object.BelongsToItem(ItemRef) Then
    Message("Belongs");
EndIf
;


    

1C:Enterprise Developer's Community