Get the next pending GL transaction. If there are no pending transactions, then the GlTransactionNumber in the response will be -1.
Request
The service request contains:
GetNextGlTransactionRequest |
||||
---|---|---|---|---|
Name |
Data Type |
Required? |
Default Value |
Discussion |
CompanyNumber |
string(20) |
no |
|
If not supplied then matches all companies. |
MaxPeriodCode |
string(20) |
no |
|
If not supplied then matches all periods. |
ForceTransDateWithinPeriodFlag |
boolean |
no |
false |
If true then alter transaction dates when needed to fall within the accounting period. |
Response
The following data is returned:
GetNextGlTransactionResponse |
|||
---|---|---|---|
Name |
Data Type |
Version |
Discussion |
GlTransactionNumber |
int |
|
If -1 then there is no pending transaction to return. |
TransactionDate |
date |
|
|
AccountingPeriodCode |
string(20) |
|
|
CompanyNumber |
string(20) |
|
|
CurrencyCode |
string(4) |
|
|
Notes |
string |
4.3.2 |
Transaction notes |
GlTransactionLines |
array of GlTransactionLine |
|
see below |
For each GL transaction, one or more GlTransactionLine is returned (one per GL account affected by the transaction).
GlTransactionLine |
||
---|---|---|
Name |
Data Type |
Discussion |
GlCostCenterNumber |
string(159) |
|
GlAccountNumber |
string(20) |
|
DebitAmount |
money |
Debit is positive. Credit is negative. |
Changelog
History of changes to this web service
4.3.2 |
|
---|---|
Parameter |
Notes |
Notes |
Added as GetNextGlTransactionResponse parameter |