GetAccountingGeneralLedger

Description

This command is used to retrieve general ledger items based on a wide range of criteria. The ledger stores accounts payable and accounts receivable ledger entries as well as general ledger entries. They are differentiated by generalLedgerType. The ledger is permanent summary of all the supporting journals. We are updating the ledger in real- time instead of the more common paper-based practice of once daily. Something similar to the following XML should be passed to dispatchMBAPI() when you want to call the GetAccountingGeneralLedger command:

Attributes

package
modernbill
subpackage
mbapi
version
0.9
author
Michael Fountain
author
Kris Bailey

Example Request

	<mbapi>
		<command><!-- None --></command>
		<showXMLHeader><!-- None --></showXMLHeader>
		<params>
			<generalLedgerID><!-- int --></generalLedgerID>
			<invoiceID><!-- int --></invoiceID>
			<clientID><!-- int --></clientID>
			<currencyID><!-- int --></currencyID>
			<getClientData><!-- int --></getClientData>
			<getAvailableClientData><!-- int --></getAvailableClientData>
			<getAvailableInvoiceData><!-- int --></getAvailableInvoiceData>
			<getInvoiceData><!-- int --></getInvoiceData>
			<journalTableID><!-- int --></journalTableID>
			<journalTableName><!-- string --></journalTableName>
			<generalLedgerType><!-- int --></generalLedgerType>
			<ledgerAccountID><!-- int --></ledgerAccountID>
			<generalLedgerDateCreatedLessThan><!-- int --></generalLedgerDateCreatedLessThan>
			<generalLedgerDateCreated><!-- int --></generalLedgerDateCreated>
			<generalLedgerDateCreatedLessThan><!-- int --></generalLedgerDateCreatedLessThan>
			<generalLedgerDateCreatedGreaterThan><!-- int --></generalLedgerDateCreatedGreaterThan>
			<generalLedgerDebitAmountLessThan><!-- double --></generalLedgerDebitAmountLessThan>
			<generalLedgerDebitAmount><!-- double --></generalLedgerDebitAmount>
			<generalLedgerDebitAmountGreaterThan><!-- double --></generalLedgerDebitAmountGreaterThan>
			<generalLedgerCreditAmountLessThan><!-- double --></generalLedgerCreditAmountLessThan>
			<generalLedgerCreditAmount><!-- double --></generalLedgerCreditAmount>
			<generalLedgerCreditAmountGreaterThan><!-- double --></generalLedgerCreditAmountGreaterThan>
			<generalLedgerDescription><!-- string --></generalLedgerDescription>
			<groupByAndSum><!-- int --></groupByAndSum>
			<clientLastName><!-- string --></clientLastName>
			<clientFirstName><!-- string --></clientFirstName>
			<invoiceNumber><!-- string --></invoiceNumber>
			<sortDir><!-- None --></sortDir>
			<sortColumn><!-- None --></sortColumn>
			<recordOffset><!-- None --></recordOffset>
			<numRecords><!-- None --></numRecords>
		</params>
	</mbapi>

		

Example Response

None
		

Request Elements

mbapi
Type
None
Description
None
Children
command
Type
None
Description
None
showXMLHeader
Type
None
Description
None
params
Type
None
Description
None
Children
generalLedgerID
Type
int
Description

The ID of the general ledger item to fetch. This will always select at most 1 ledger item.

invoiceID
Type
int
Description

The ID of the invoice whose ledger items you wish to retrieve.

clientID
Type
int
Description

The ID of the client whose ledger items you wish to retrieve.

currencyID
Type
int
Description

The ID of the currency for this record in the ledger.

getClientData
Type
int
Description

Whether or not to get rows with client ids AND join the client data.

getAvailableClientData
Type
int
Description

Whether or not to join the client data for rows WITH a client id without excluding rows without a client id.

getAvailableInvoiceData
Type
int
Description

Whether or not to join the invoice data for rows WITH an invoice id without excluding rows without an invoice id.

getInvoiceData
Type
int
Description

Whether or not to get invoice data.

journalTableID
Type
int
Description

The ID of the journal item whose ledger items you wish to retrieve. Used in conjuntion with the journalTableName to retrieve ledger items related to specific a journal item.

journalTableName
Type
string
Description

The table name of the related journal item. Used in conjuntion with the journalTableID to retrieve ledger items related to specific a journal item.

generalLedgerType
Type
int
Description

The type of the ledger items you wish to retrieve.

ledgerAccountID
Type
int
Description

The ID of the ledger account whose ledger items you wish to retrieve.

generalLedgerDateCreatedLessThan
Type
int
Description

The maximum UNIX timestamp for which a ledger item in the result set was created.

generalLedgerDateCreated
Type
int
Description

The exact UNIX timestamp for which a ledger item in the result set was created.

generalLedgerDateCreatedLessThan
Type
int
Description

The maximum UNIX timestamp for which a ledger item in the result set was created

generalLedgerDateCreatedGreaterThan
Type
int
Description

The minimum UNIX timestamp for which a ledger item in the result set was created

generalLedgerDebitAmountLessThan
Type
double
Description

The maximum monetary debit amount for a ledger item in the result set.

generalLedgerDebitAmount
Type
double
Description

The exact monetary debit amount for a ledger item in the result set.

generalLedgerDebitAmountGreaterThan
Type
double
Description

The minimum monetary debit amount for a ledger item in the result set.

generalLedgerCreditAmountLessThan
Type
double
Description

The maximum monetary credit amount for a ledger item in the result set.

generalLedgerCreditAmount
Type
double
Description

The exact monetary credit amount for a ledger item in the result set.

generalLedgerCreditAmountGreaterThan
Type
double
Description

The minimum monetary credit amount for a ledger item in the result set.

generalLedgerDescription
Type
string
Description

The descriptive string for a ledger item in the result set. This is compared with a LIKE statement

groupByAndSum
Type
int
Description

whether we want individual entries or if we want to group them and get the sum of the credits and debits.

clientLastName
Type
string
Description

Client last name to search by.

clientFirstName
Type
string
Description

Client first name to search by.

invoiceNumber
Type
string
Description

Invoice number to search by.

sortDir
Type
None
Description
None
sortColumn
Type
None
Description
None
recordOffset
Type
None
Description
None
numRecords
Type
None
Description
None

Response Elements

None