ProjPosting::createTrans Method
Creates or updates a record in the ProjPosting table. If an existing record is found, the ledger account number will be updated to the new value. Otherwise a new record is created based on the values supplied by the parameters.
Syntax
server public static void createTrans(
LedgerDimensionDefaultAccount _ledgerAccount,
ProjAccountType _projAccountType,
[TableGroupAll _projTableGroupAll,
ProjRelation _projRel,
TableGroupAll _catTableGroupAll,
ProjCategoryId _projCategoryId])
Run On
Server
Parameters
- _ledgerAccount
Type: LedgerDimensionDefaultAccount Extended Data Type
The ledger account that will be used for posting.
- _projAccountType
Type: ProjAccountType Enumeration
The cost or sales posting account type.
- _projTableGroupAll
Type: TableGroupAll Enumeration
A TableGroupAll enumeration value that specifies whether the account should be used for all projects, group of projects, or a specific project; optional.
- _projRel
Type: ProjRelation Extended Data Type
A ProjRelation value that specifies a project or group of projects to use this posting account; optional.
- _catTableGroupAll
Type: TableGroupAll Enumeration
A TableGroupAll enumeration value that specifies whether the account should be used for all categories, category group, or a specific category. The default value is TableGroupAll::GroupId; optional.
- _projCategoryId
Type: ProjCategoryId Extended Data Type
A ProjCategoryId value that specifies a category or group of categories to use the posting account; optional.
Remarks
If the ledger account value is null, the existing record will be deleted.