DocumentObject.<Document name>.SetNewNumber

Syntax:

SetNewNumber(<NumberPrefix>)

Parameters:

<NumberPrefix> (optional)

Type: String.
Prefix of number being set.
Default value: Empty string.

Description:

Sets a new document number for the specified number prefix.

Availability:

Server, thick client, external connection, Mobile application (server).

Note:

For documents with numbering within a period, the number is set in the range of the period according to the document date. If the date is blank, then procedure sets the number in the range according to the blank date.

Example:

ExpenseBill.SetNewNumber(PrefixIB);

See also:

DocumentObject, event OnSetNewNumber

    

1C:Enterprise Developer's Community