[This is preliminary documentation and is subject to change.]

Inserts a new expense into the database.

Namespace:  OfficeClip.DBLayer.TE
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int InsertExpenseInfo(
	ExpenseInfo ei,
	int currentGroupId,
	int currentUserId
)
Visual Basic (Declaration)
Public Function InsertExpenseInfo ( _
	ei As ExpenseInfo, _
	currentGroupId As Integer, _
	currentUserId As Integer _
) As Integer
Visual C++
public:
int InsertExpenseInfo(
	ExpenseInfo^ ei, 
	int currentGroupId, 
	int currentUserId
)

Parameters

ei
Type: OfficeClip.BusinessLayer.TE..::.ExpenseInfo
Instance of the ExpenseInfo object containing all the information related to the expense. ExpenseInfo
currentGroupId
Type: System..::.Int32
The id of the current organization
currentUserId
Type: System..::.Int32
The unique id of the current user

Return Value

Id of the newly created expense if successful, -1 in case of an error.

See Also