AccountingRegisterManager.<Accounting register name>.Balance
Syntax:
Parameters:
<PointInTime> (optional)
The point in time beginning at which balances must be gotten. If the parameter is not specified or set to Undefined, current balances will be gotten (as of the last register register record date). If Date is passed as a parameter, balances will be gotten as of the beginning of the day; if PointInTime is passed, balances will ignore register register records that occurred at that point in time.
<ExtraDimensionTypes> (optional)
Reference or reference array transmitted or fixed array of values to extra dimension types. You can use extra dimensions types to specify what values of extra dimensions will be available by names "ExtDimensions1", "ExtDimensions2" etc. Besides, balances will be calculated only by accounts that have predefined types of extra dimensions. If no extra dimension types are specified, extra dimension values are addressed by order or index, as they are defined on the respective account.
The parameter does not exist unless extra dimensions were specified for the chart of accounts during configuration.
<Filter> (optional)
Structure containing a set of register dimension values for which totals must be filtered. Allowable key names: Account, ExtDimension<Number>, <Dimension name>.
If the parameter is not specified filter is not used.
<Dimensions> (optional)
List of dimensions for which balances must be gotten. Line containing dimension names separated by commas. Allowable dimension names: Account, ExtDimension<Number>, <Dimension name>.
If you don't specify the parameter or set the Undefined, remainders are created for all dimensions.
Default value: Undefined.
<Resources> (optional)
List of resources for which balances must be gotten. Line containing resource names separated by commas.
If you don't specify the parameter or set the Undefined, remainders are created for all resources.
Default value: Undefined.
Returned value:
The table contains the "BalanceDr" and "BalanceCr" fields.
Description:
Availability:
Note:
Example:
Reg = AccountingRegisters.SelfSupporting; Filter = New Structure("ExtDimension1,Organization,Account", Ref,CurOrganization,RegistrationAccountBA); RecordSelection = Reg.Balance(DataDate,ExtDimensionTypeBM,Filter); |