AccountingRegisterManager.<Accounting register name>.SelectByRecorder

Syntax:

SelectByRecorder(<Recorder>)

Parameters:

<Recorder> (required)

Type: DocumentRef.
Recorder value.

Returned value:

Type: AccountingRegisterSelection.

Description:

Forms selection of accounting register records by the recorder.

Availability:

Server, thick client, external connection.

Example:

//example from a document module text 
Registr = AccountingRegisters.SelfSupporting;
MovementsAcc = Registr.SelectByRecorder(Object.Ref);
While 
MovementsAcc.Next() Do
    Transaction = Movements.SelfSupporting.Add();

    Transaction.AccountDr          = MovementsAcc.AccountDr;
    Transaction.AccountCr          = MovementsAcc.AccountCr;

    For 
each ExtDimensions In MovementsAcc.ExtDimensions Do
        Transaction.ExtDimensionsDr[ExtDimensions.Key] =ExtDimensions.Value;
    EndDo
;

    For 
each ExtDimensions In MovementsAcc.ExtDimensionsCr Do
        Transaction.ExtDimensionsCr[ExtDimensions.Key] = ExtDimensions.Value;
    EndDo
;
    Transaction.CurrencyDr        = MovementsAcc.CurrencyDr;
    Transaction.CurrencyCr        = MovementsAcc.CurrencyCr;
    Transaction.CurrencySumDr = MovementsAcc.CurrencySumDr;
    Transaction.CurrencySumCr = MovementsAcc.CurrencySumCr;
    Transaction.CountDr    = MovementsAcc.CountDr;
    Transaction.CountCr    = MovementsAcc.CountCr;
    Transaction.JournalNumber    = MovementsAcc.JournalNumber;
    Transaction.Organization     = MovementsAcc.Organization;
    Transaction.Content      = MovementsAcc.Content;
    Transaction.Sum           = MovementsAcc.Sum;
    // ...
EndDo;


    

1C:Enterprise Developer's Community