Skip to main content

MGCLatticeFixedAssetService.postAssetTransaction

Posts fixed asset transactions after acquisition in a new fixed asset journal, as the fixed asset journal page does: acquisition adjustments, depreciation, depreciation adjustments, revaluations, write-up and write-down adjustments, extraordinary and bonus depreciation. The lines are created with the standard AssetJournal (posting profile, offset account, default dimensions, text and voucher as the fixed asset proposals create them) and the journal is posted with LedgerJournalCheckPost.

  • HTTP method: POST
  • Route: /api/services/MGCLatticeFixedAssetsServiceGroup/MGCLatticeFixedAssetService/postAssetTransaction
  • Service class: MGCLatticeFixedAssetService

Parameters​

NameTypeOptionalDescription
_requestMGCLatticeFixedAssetTransactionRequestContractNoThe request containing JournalNameId (a fixed asset journal name), Description, PostingDate, the lines (AssetId or AssetIdExternalKey, AssetBookId, TransactionType, DebitAmount or CreditAmount, TransactionDate, OffsetMainAccountId, Dimensions, ConsumptionQuantity, ReasonCode, ReasonComment, Description) and the standard header fields.

Returns​

MGCLatticeOrderOperationResponseContract

An MGCLatticeOrderOperationResponseContract: DocumentId is the posted journal, PostedDocumentId the voucher of its first line; the message lists every voucher.

Security​

  • Requires privilege MGCLatticeFixedAssetsServiceMaintain