Skip to main content

MGCLatticeFixedAssetService.splitAsset

Splits a fixed asset book with the standard asset split (AssetSplit, the fixed asset book's Split asset action) and posts the split journal it creates, in one transaction. The split moves the percentage of the book's acquisition, depreciation and other values to a book of the receiving asset: an existing asset, or a new asset created as a copy of the asset to split with the standard Copy fixed asset (AssetCopy: same group and details, every book copied, none acquired).

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

Parameters​

NameTypeOptionalDescription
_requestMGCLatticeFixedAssetSplitRequestContractNoThe request containing AssetId (or AssetIdExternalKey), AssetBookId, ToAssetId (or ToAssetIdExternalKey; empty for a new asset), ToAssetBookId, Percent or Quantity, SplitDate, JournalNameId and the standard header fields.

Returns​

MGCLatticeOrderOperationResponseContract

An MGCLatticeOrderOperationResponseContract: DocumentId is the asset that was split, PostedDocumentId the asset that received the split (the new asset when one was created); the message names the posted split journal.

Security​

  • Requires privilege MGCLatticeFixedAssetsServiceMaintain