Share via


TrvExpTrans::initFromHeaderAndGivenLine Method

Initializes a new TrvExpTrans object from the given line and expense header.

Syntax

client server public static TrvExpTrans initFromHeaderAndGivenLine(TrvExpTable expHeader, TrvExpTrans expLineGiven)

Run On

Called

Parameters

  • expLineGiven
    Type: TrvExpTrans Table
    The expense line from which values will be extracted and validated.

Return Value

Type: TrvExpTrans Table
A new TrvExpTrans object that represents a validated version of the given line.

Remarks

This method may put errors into the infolog. If errors have been raised, then the TrvExpTrans object that is returned is NOT valid. It is the responsibility of the caller to ensure that the infolog is examined. This function will place the new line into the currenty company. It is the caller's reponsibility to ensure that the current company is the company this line should belong to.

See Also

Reference

TrvExpTrans Table