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

Inserts all the information related to a expense types corresponding to a a particular group.

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

Syntax

C#
public int InsertExpenseTypes(
	int groupId,
	GroupExpenseTypeInfo etmi
)
Visual Basic (Declaration)
Public Function InsertExpenseTypes ( _
	groupId As Integer, _
	etmi As GroupExpenseTypeInfo _
) As Integer
Visual C++
public:
int InsertExpenseTypes(
	int groupId, 
	GroupExpenseTypeInfo^ etmi
)

Parameters

groupId
Type: System..::.Int32
The unique id for the group.
etmi
Type: OfficeClip.BusinessLayer.TE..::.GroupExpenseTypeInfo
Instance of the GroupExpenseTypeInfo object containing all the information GroupExpenseTypeInfo

Return Value

1 when successful, -1 in case of an error.

Remarks

When a new expense type is created, then new one being inserted and is marked as Active. This is to ensure that the expenses created corresponding to the previously Active type keep working and follow the the workflow and expense details.

See Also