This class is an instantion of the Command class, that executes a command pertaining to fetching purchases journal information, in the default case from the database. This class should only be instantiated by dispatchMBAPI() found in include/mbapi/mbapi.php. Something similar to the following XML should be passed to dispatchMBAPI() when you want to call the GetAccountingPurchasesJournal command:
<mbapi> <command><!-- None --></command> <showXMLHeader><!-- None --></showXMLHeader> <params> <purchaseJournalID><!-- int --></purchaseJournalID> <clientID><!-- int --></clientID> <currencyID><!-- int --></currencyID> <invoiceID><!-- int --></invoiceID> <purchaseDateCreatedLessThan><!-- int --></purchaseDateCreatedLessThan> <purchaseDateCreated><!-- int --></purchaseDateCreated> <purchaseDateCreatedGreaterThan><!-- int --></purchaseDateCreatedGreaterThan> <sortDir><!-- None --></sortDir> <sortColumn><!-- None --></sortColumn> <recordOffset><!-- None --></recordOffset> <numRecords><!-- None --></numRecords> </params> </mbapi>
None
mbapi
command
showXMLHeader
params
purchaseJournalID
The ID of the purchase journal to fetch. This will always select at most 1 record.
clientID
The client ID of the record to fetch. This will always select all records for this client.
currencyID
The ID of the currency for this record in the journal.
invoiceID
The invoice ID of the record to fetch. This will always select all records for this invoice.
purchaseDateCreatedLessThan
The maximum UNIX timestamp for which a record in the result set was created.
purchaseDateCreated
The exact UNIX timestamp for which a record in the result set was created.
purchaseDateCreatedGreaterThan
The minimum UNIX timestamp for which a record in the result set was created
sortDir
sortColumn
recordOffset
numRecords