Share via


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

  • _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.
  • _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.

See Also

Reference

ProjPosting Table