DocumentObject.<Document name>.SetTime

Syntax:

SetTime(<TimeDeterminingMode>, <UseJournals>)

Parameters:

<TimeDeterminingMode> (optional)

Type: AutoTimeMode.
Sets mode for automatically determining time when writing a new document.
Default value: CurrentOrLast.

<UseJournals> (optional)

Type: Boolean.
Determines whether or not to set time using journals reflecting the given document.
Default value: False.

Description:

Sets the document time.

Availability:

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

Note:

Is executed in privileged mode.

Example:

Document = Documents.BudgetaryOperation.CreateDocument();
Document.Date = DocumentDate ;
Document.SetNewNumber();
Document.SetTime(AutoTimeMode.CurrentOrLast);


    

1C:Enterprise Developer's Community