AccountingEvent::getCurrentEvent Method
Retrieves a AccountingEvent record that is current.
Syntax
client server public static AccountingEvent getCurrentEvent(
SourceDocumentHeaderRecId _sourceDocumentHeader,
[OperationsTax _ledgerCategory,
AccountingDate _accountingDate,
AccountingEventId _eventID,
boolean _forUpdate])
Run On
Called
Parameters
- _sourceDocumentHeader
Type: SourceDocumentHeaderRecId Extended Data Type
The source document ID to which the source document event refers.
- _ledgerCategory
Type: OperationsTax Enumeration
The ledger category of the source document event.
- _accountingDate
Type: AccountingDate Extended Data Type
The date to set the event to if one has to be created.
- _eventID
Type: AccountingEventId Extended Data Type
The event ID of the source document event.
- _forUpdate
Type: boolean
A Boolean value that indicates whether to read the record for update; optional.
Return Value
Type: AccountingEvent Table
A AccountingEvent record.
Remarks
An current source document event is one that has not been transferred.
This method creates an event if no current event exists.