TransactionsAccountBalance Method

Retrieves SUM of all amounts for a single account for a data range

Definition

Namespace: MbcsCentral.WinGL
Assembly: MbcsCentral (in MbcsCentral.exe) Version: 2.0.1.15 (2.0.1.15)
C#
public static decimal AccountBalance(
	int Company,
	int Account,
	DateTime StartDate,
	DateTime EndDate,
	int Department = 0
)

Parameters

Company  Int32
The CompanyNumber for which to retrieve balance
Account  Int32
The Account Key for which to retrieve balance
StartDate  DateTime
The start of the date range
EndDate  DateTime
The end of the date range
Department  Int32  (Optional)
The DepartmentNumber for which to retrieve balance

Return Value

Decimal
The decimal balance value

See Also