Skip to main content

Asset methods

Find

Web service type: Method driven

Resource location: /webservices/finder.asmx?wsdl

Method

public Message[] Search(
string type, // Finder type, See Finder type.
string pattern, // The search pattern. May contain wildcards * and ?
int field, // Fields to search through, see Search fields.
int firstRow, // First row to return, usefull for paging
int maxRows, // Maximum number of rows to return, usefull for paging
string[][] options, // See options below
out FinderData data) // Search results

Finder type

ASM

Search fields

Field IDFields searched
0code and name
1code
2name

The method will return an array containing validation messages. If there are no errors, then the data parameter will contain the actual search result.

Options

OptionTypeDescription
office«office code»Restricts to the office.

Read

Web service type: XML Web Services

XML

Below example reads the asset methods settings of method EXAMPLE in office 001.

<assetmethod>
<office>001</office>
<code>EXAMPLE</code>
</assetmethod>

If the asset method does not exist an empty assetmethod element is returned containing an error.

Create/Update/Delete

Root

XML structure
<assetmethod>
<balanceaccounts></balanceaccounts>
<profitlossaccounts></profitlossaccounts>
<freetexts></freetexts>
</assetmethod>

Element name: assetmethod

NameDescription
assetmethodContains information of the asset method.
balanceaccountsContains information of the balance accounts.
profitlossaccountsContains information of the profit and loss accounts.
freetextsContains information of the free text fields.

Asset method

XML structure
<assetmethod>
<office></office>
<code></code>
<name></name>
<shortname></shortname>
<nrofperiods></nrofperiods>
<depreciatereconciliation></depreciatereconciliation>
<calcmethod></calcmethod>
</assetmethod>

Element name: assetmethod

Property nameValueDescription
officecodeOffice code.
codecodeAsset method code.
namestringThe name of the asset method.
shortnamestringThe short name of the asset method.
nrofperiodsintegerThe number of periods over which the asset linked to the asset method should be depreciated.
depreciatereconciliationfrom_reconciliation
from_purchase_date
Depreciate as of the revaluation date.
Depreciate in retrospect, back to the purchase date.
calcmethodnone
linear
linearpercentage
reducebalance
The calculation method.
touchedintegerCount of the number of times the dimension settings are changed.
Read-only attribute.
usercodeThe user who modified the asset method the last time.
modifieddateDate/time the asset method is modified the last time.
createddateDate/time the asset method is created.

Balance accounts

XML structure
<balanceaccounts>
<purchasevaluegroup></purchasevaluegroup>
<purchasevalue></purchasevalue>
<depreciationgroup></depreciationgroup>
<depreciation></depreciation>
<assetstoactivate></assetstoactivate>
<reconciliation></reconciliation>
<tobeinvoiced></tobeinvoiced>
</balanceaccounts>

Element name: balanceaccounts

Property nameValueDescription
purchasevaluegroupcodePurchase value group.
purchasevaluecodePurchase value balance sheet.
depreciationgroupcodeDepreciation group.
depreciationcodeCumulative depreciation balance sheet.
assetstoactivatecodeAssets to activate balance sheet.
reconciliationcodeRevaluation of purchase value balance sheet.
tobeinvoicedcodeDisposal value to be invoiced balance sheet.

Profit and loss accounts

XML structure
<profitlossaccounts>
<depreciation></depreciation>
<sales></sales>
<reconciliation></reconciliation>
</profitlossaccounts>

Element name: profitlossaccounts

Property nameValueDescription
depreciationcodeDepreciation costs profit and loss account.
salescodeDisposal result profit and loss account.
reconciliationcodeRevaluation reserve profit and loss account.

Free texts

XML structure
<freetexts>
<freetext id="" type=""></freetext>
</freetexts>

Element name: freetexts

Property nameValueDescription
@idintegerFree text id. In total, five free text fields are available.
@typetext
amount
Free text type.
freetextstringFree text.

Example

<assetmethod>
<office>001</office>
<code>MACHINE</code>
<name>Machine</name>
<shortname>Machine</shortname>
<depreciatereconciliation>from_reconciliation</depreciatereconciliation>
<freetexts>
<freetext id="1" type="text">Serial number</freetext>
</freetexts>
<nrofperiods>60</nrofperiods>
<calcmethod>linear</calcmethod>
<percentage>0</percentage>
<profitlossaccounts>
<depreciation>4730</depreciation>
<sales></sales>
<reconciliation></reconciliation>
</profitlossaccounts>
<balanceaccounts>
<purchasevaluegroup></purchasevaluegroup>
<purchasevalue>0501</purchasevalue>
<depreciationgroup></depreciationgroup>
<depreciation>0135</depreciation>
<assetstoactivate></assetstoactivate>
<reconciliation></reconciliation>
<tobeinvoiced></tobeinvoiced>
</balanceaccounts>
</assetmethod>