Skip to main content

MGCLatticeFixedAssetTransactionLineContract

Data contract for one fixed asset journal line of postAssetTransaction: the asset and book, the transaction type, the amount as a debit or a credit in the accounting currency, and the optional date, offset account, financial dimensions, consumption quantity, reason and description.

Methods​

new​

Initializes a new instance of the MGCLatticeFixedAssetTransactionLineContract class.

  • Visibility: public
  • Returns: void

No parameters.

construct​

Creates a new instance of the MGCLatticeFixedAssetTransactionLineContract class.

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

No parameters.

parmAssetId​

Gets or sets the fixed asset.

  • Visibility: public
  • Returns: AssetId The AssetId value.
NameTypeOptionalDescription
_assetIdAssetIdYesThe AssetId value.

parmAssetIdExternalKey​

Gets or sets the external system's key of the fixed asset, in place of AssetId. Uses the request's ExternalSystem.

  • Visibility: public
  • Returns: MGCLatticeExternalKey The AssetIdExternalKey value.
NameTypeOptionalDescription
_assetIdExternalKeyMGCLatticeExternalKeyYesThe AssetIdExternalKey value.

parmAssetBookId​

Gets or sets the book of the fixed asset the transaction posts to.

  • Visibility: public
  • Returns: AssetBookId The AssetBookId value.
NameTypeOptionalDescription
_assetBookIdAssetBookIdYesThe AssetBookId value.

parmTransactionType​

Gets or sets the fixed asset transaction type by name: AcquisitionAdj, Depreciation, DepreciationAdj, Revaluation, WriteUpAdj, WriteDownAdj, ExtraordinaryDepreciation or BonusDepreciation.

  • Visibility: public
  • Returns: str The TransactionType value.
NameTypeOptionalDescription
_transactionTypestrYesThe TransactionType value.

parmDebitAmount​

Gets or sets the debit amount in the accounting currency: it increases the book's value. Send either a debit or a credit amount.

  • Visibility: public
  • Returns: AmountCurDebit The DebitAmount value.
NameTypeOptionalDescription
_debitAmountAmountCurDebitYesThe DebitAmount value.

parmCreditAmount​

Gets or sets the credit amount in the accounting currency: it decreases the book's value (a depreciation or a write-down is a credit). Send either a debit or a credit amount.

  • Visibility: public
  • Returns: AmountCurCredit The CreditAmount value.
NameTypeOptionalDescription
_creditAmountAmountCurCreditYesThe CreditAmount value.

parmTransactionDate​

Gets or sets the transaction date of the line; empty uses the request's PostingDate, or today.

  • Visibility: public
  • Returns: TransDate The TransactionDate value.
NameTypeOptionalDescription
_transactionDateTransDateYesThe TransactionDate value.

parmOffsetMainAccountId​

Gets or sets the offset main account; empty uses the offset account of the fixed asset posting profile for the transaction type and book, as the fixed asset journal does.

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

parmDimensions​

Gets or sets the financial dimension values of the line. They replace the same dimensions of the book's default dimensions, which the line takes as the fixed asset journal does; the other dimensions keep the book's values.

  • Visibility: public
  • Returns: List The financial dimension values list.
NameTypeOptionalDescription
_dimensionsListYesThe financial dimension values list.

parmConsumptionQuantity​

Gets or sets the consumption quantity of a depreciation line of a book that depreciates by consumption.

  • Visibility: public
  • Returns: AssetConsumptionQty The ConsumptionQuantity value.
NameTypeOptionalDescription
_consumptionQuantityAssetConsumptionQtyYesThe ConsumptionQuantity value.

parmReasonCode​

Gets or sets the financial reason code of the line; required when the fixed asset parameters demand a reason for the transaction type.

  • Visibility: public
  • Returns: ReasonCode The ReasonCode value.
NameTypeOptionalDescription
_reasonCodeReasonCodeYesThe ReasonCode value.

parmReasonComment​

Gets or sets the reason comment of the line.

  • Visibility: public
  • Returns: ReasonComment The ReasonComment value.
NameTypeOptionalDescription
_reasonCommentReasonCommentYesThe ReasonComment value.

parmDescription​

Gets or sets the line description; empty uses the standard fixed asset transaction text.

  • Visibility: public
  • Returns: LedgerJournalTransTxt The Description value.
NameTypeOptionalDescription
_descriptionLedgerJournalTransTxtYesThe Description value.