Skip to main content

MGCLatticeProjectJournalLineContract

Data contract representing a project journal line with ProjId, CategoryId, Qty, CostPrice, SalesPrice, and the worker's personnel number. Item lines add ItemId / InventDimId (the inventory dimension the item is consumed from); expense lines add OffsetMainAccountId (the main account the expense is paid from); LinePropertyId overrides the project's default.

Methods​

new​

Initializes a new instance of the MGCLatticeProjectJournalLineContract class.

  • Visibility: public
  • Returns: void

No parameters.

construct​

Creates a new instance of the MGCLatticeProjectJournalLineContract class.

  • Visibility: public
  • Returns: MGCLatticeProjectJournalLineContract A new MGCLatticeProjectJournalLineContract instance.

No parameters.

parmProjId​

Gets or sets the project identifier.

  • Visibility: public
  • Returns: ProjId The ProjId value.
NameTypeOptionalDescription
_projIdProjIdYesThe ProjId value.

parmCategoryId​

Gets or sets the project category identifier for the journal line.

  • Visibility: public
  • Returns: str The CategoryId value.
NameTypeOptionalDescription
_categoryIdstrYesThe CategoryId value.

parmQty​

Gets or sets the quantity for the line.

  • Visibility: public
  • Returns: real The Qty value.
NameTypeOptionalDescription
_qtyrealYesThe Qty value.

parmCostPrice​

Gets or sets the cost price per unit.

  • Visibility: public
  • Returns: real The CostPrice value.
NameTypeOptionalDescription
_costPricerealYesThe CostPrice value.

parmSalesPrice​

Gets or sets the sales price per unit for the project journal line.

  • Visibility: public
  • Returns: real The SalesPrice value.
NameTypeOptionalDescription
_salesPricerealYesThe SalesPrice value.

parmCurrencyCode​

Gets or sets the currency code for the transaction.

  • Visibility: public
  • Returns: CurrencyCode The CurrencyCode value.
NameTypeOptionalDescription
_currencyCodeCurrencyCodeYesThe CurrencyCode value.

parmDescription​

Gets or sets the descriptive text for the journal or transaction.

  • Visibility: public
  • Returns: str The Description value.
NameTypeOptionalDescription
_descriptionstrYesThe Description value.

parmTransDate​

Gets or sets the transaction date for the journal line.

  • Visibility: public
  • Returns: TransDate The TransDate value.
NameTypeOptionalDescription
_transDateTransDateYesThe TransDate value.

parmWorkerPersonnelNumber​

Gets or sets the personnel number of the worker the line is for (the line's resource). Optional.

  • Visibility: public
  • Returns: HcmPersonnelNumberId The WorkerPersonnelNumber value.
NameTypeOptionalDescription
_workerPersonnelNumberHcmPersonnelNumberIdYesThe WorkerPersonnelNumber value.

parmItemId​

Gets or sets the item number for the line.

  • Visibility: public
  • Returns: ItemId The ItemId value.
NameTypeOptionalDescription
_itemIdItemIdYesThe ItemId value.

parmActivityNumber​

Gets or sets the project activity number for the journal line.

  • Visibility: public
  • Returns: str The ActivityNumber value.
NameTypeOptionalDescription
_activityNumberstrYesThe ActivityNumber value.

parmLinePropertyId​

Gets or sets the project line property (Billable / NonBill...) of the line. Empty = the default the project line property setup gives for the project and category.

  • Visibility: public
  • Returns: ProjLinePropertyId The LinePropertyId value.
NameTypeOptionalDescription
_linePropertyIdProjLinePropertyIdYesThe LinePropertyId value.

parmInventDimId​

Gets or sets the inventory dimension id an item journal line consumes the item from (site / warehouse...). Empty = the item's default order settings.

  • Visibility: public
  • Returns: InventDimId The InventDimId value.
NameTypeOptionalDescription
_inventDimIdInventDimIdYesThe InventDimId value.

parmOffsetMainAccountId​

Gets or sets the main account an expense journal line is paid from (the credit side; the project side is derived from the project posting setup). Required on expense lines.

  • Visibility: public
  • Returns: MainAccountNum The OffsetMainAccountId value.
NameTypeOptionalDescription
_offsetMainAccountIdMainAccountNumYesThe OffsetMainAccountId value.

parmProjIdExternalKey​

Gets or sets the external system's key of the line's project, in place of ProjId. Uses the request's ExternalSystem.

  • Visibility: public
  • Returns: MGCLatticeExternalKey The ProjIdExternalKey value.
NameTypeOptionalDescription
_projIdExternalKeyMGCLatticeExternalKeyYesThe ProjIdExternalKey value.

parmItemIdExternalKey​

Gets or sets the external system's key of the line's released product, in place of ItemId. Item journals only, like ItemId; uses the request's ExternalSystem.

  • Visibility: public
  • Returns: MGCLatticeExternalKey The ItemIdExternalKey value.
NameTypeOptionalDescription
_itemIdExternalKeyMGCLatticeExternalKeyYesThe ItemIdExternalKey value.