Files
ofbiz-framework/applications/accounting/servicedef/services_fixedasset.xml
T

264 lines
18 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
-->
<services xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services: Fixed Asset </description>
<vendor>OFBiz</vendor>
<version>1.0</version>
<!-- Fixed Asset -->
<service name="createFixedAsset" default-entity-name="FixedAsset" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createFixedAsset" auth="true">
<description>Create a Fixed Asset</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="INOUT" optional="true"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fixedAssetTypeId" optional="false"/>
</service>
<service name="updateFixedAsset" default-entity-name="FixedAsset" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAsset" auth="true">
<description>Update a Fixed Asset</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fixedAssetTypeId" optional="false"/>
</service>
<!-- Product to Fixed Asset maintenance -->
<service name="addFixedAssetProduct" default-entity-name="FixedAssetProduct" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="addFixedAssetProduct" auth="true">
<description>Add Product To Fixed Asset</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updateFixedAssetProduct" default-entity-name="FixedAssetProduct" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAssetProduct" auth="true">
<description>Update the Product to Fixed Asset information</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="removeFixedAssetProduct" default-entity-name="FixedAssetProduct" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="removeFixedAssetProduct" auth="true">
<description>Remove Product From Fixed Asset</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- Fixed Asset calendar -->
<service name="updateFixedAssetCalendar" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAssetCalendar" auth="true">
<description>Update the Capacity available of Calendar of a Fixed Asset information</description>
<attribute name="fixedAssetId" type="Id" mode="IN" optional="false"/>
<attribute name="exceptionDateStartTime" type="Timestamp" mode="IN" optional="false"/>
<attribute name="exceptionCapacity" type="Timestamp" mode="IN" optional="false"/>
<attribute name="capacity" type="Double" mode="IN" optional="true"/>
</service>
<!-- FixedAssetStdCost -->
<service name="createFixedAssetStdCost" default-entity-name="FixedAssetStdCost" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createFixedAssetStdCost" auth="true">
<description>Create a Fixed Asset Standard Cost</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateFixedAssetStdCost" default-entity-name="FixedAssetStdCost" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAssetStdCost" auth="true">
<description>Update a Fixed Asset Standard Cost</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="cancelFixedAssetStdCost" default-entity-name="FixedAssetStdCost" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="cancelFixedAssetStdCost" auth="true">
<description>Cancel a Fixed Asset Standard Cost</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<!-- FixedAssetIdent -->
<service name="createFixedAssetIdent" default-entity-name="FixedAssetIdent" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createFixedAssetIdent" auth="true">
<description>Create a Fixed Asset Identification</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateFixedAssetIdent" default-entity-name="FixedAssetIdent" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAssetIdent" auth="true">
<description>Update a Fixed Asset Identification</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="removeFixedAssetIdent" default-entity-name="FixedAssetIdent" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="removeFixedAssetIdent" auth="true">
<description>Remove a Fixed Asset Identification</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- Equipment Registration Create/Update/Delete-->
<service name="createFixedAssetRegistration" default-entity-name="FixedAssetRegistration" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createFixedAssetRegistration" auth="true">
<description>Create a Fixed Asset Registration</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updateFixedAssetRegistration" default-entity-name="FixedAssetRegistration" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAssetRegistration" auth="true">
<description>Update a Fixed Asset Registration</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteFixedAssetRegistration" default-entity-name="FixedAssetRegistration" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="deleteFixedAssetRegistration" auth="true">
<description>Delete a Fixed Asset Registration</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- FixedAsset Maintenance Create/Update/Delete-->
<service name="createFixedAssetMaint" default-entity-name="FixedAssetMaint" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createFixedAssetMaint" auth="true">
<description>Create a Fixed Asset Maintenance</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<attribute name="maintTemplateWorkEffortId" mode="IN" type="String" optional="true"/>
<override name="maintHistSeqId" mode="OUT"/> <!-- make this OUT rather than IN, we will automatically generate the next sub-sequence ID -->
</service>
<service name="updateFixedAssetMaint" default-entity-name="FixedAssetMaint" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAssetMaint" auth="true">
<description>Update a Fixed Asset Maintenance</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteFixedAssetMaint" default-entity-name="FixedAssetMaint" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="deleteFixedAssetMaint" auth="true">
<description>Remove a Fixed Asset Maintenance</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- FixedAsset Maintenance Meter Create/Update/Delete-->
<service name="createFixedAssetMaintMeter" default-entity-name="FixedAssetMaintMeter" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createFixedAssetMaintMeter" auth="true">
<description>Create a Fixed Asset Maintenance Meter</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateFixedAssetMaintMeter" default-entity-name="FixedAssetMaintMeter" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updateFixedAssetMaintMeter" auth="true">
<description>Update a Fixed Asset Maintenance Meter</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteFixedAssetMaintMeter" default-entity-name="FixedAssetMaintMeter" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="deleteFixedAssetMaintMeter" auth="true">
<description>Remove a Fixed Asset Maintenance Meter</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- FixedAsset Maintenance Order Create/Update/Delete-->
<service name="createFixedAssetMaintOrder" default-entity-name="FixedAssetMaintOrder" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createFixedAssetMaintOrder" auth="true">
<description>Create a Fixed Asset Maintenance Order</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="CREATE"/>
<attribute name="fixedAssetId" type="String" mode="IN" optional="false"/>
<attribute name="maintHistSeqId" type="String" mode="IN" optional="false"/>
<attribute name="orderId" type="String" mode="IN" optional="false"/>
<attribute name="orderItemSeqId" type="String" mode="IN" optional="true"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteFixedAssetMaintOrder" default-entity-name="FixedAssetMaintOrder" engine="simple"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="deleteFixedAssetMaintOrder" auth="true">
<description>Remove a Fixed Asset Maintenance Order</description>
<permission-service service-name="fixedAssetPermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- =========Party Fixed Asset Assignment Services========= -->
<service name="createPartyFixedAssetAssignment" engine="simple" default-entity-name="PartyFixedAssetAssignment"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="createPartyFixedAssetAssignment" auth="true">
<description>Add Party to a Fixed Asset</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updatePartyFixedAssetAssignment" engine="simple" default-entity-name="PartyFixedAssetAssignment"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="updatePartyFixedAssetAssignment" auth="true">
<description>Update Party to Fixed Asset</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deletePartyFixedAssetAssignment" engine="simple" default-entity-name="PartyFixedAssetAssignment"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="deletePartyFixedAssetAssignment" auth="true">
<description>Delete Party to Fixed Asset</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="fixedAssetPermissionCheck" engine="simple"
location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="basePermissionCheck">
<description>Fixed Asset Permission Checking Logic</description>
<implements service="permissionInterface"/>
</service>
<!-- Fixed Asset Depreciation Services -->
<service name="fixedAssetDepCalcInterface" engine="interface">
<description>Interface to describe base parameters for Depreciation Calculation Services</description>
<attribute name="expEndOfLifeYear" type="Integer" mode="IN" optional="false"/>
<attribute name="assetAcquiredYear" type="Integer" mode="IN" optional="false"/>
<attribute name="purchaseCost" type="Double" mode="IN" optional="false"/>
<attribute name="salvageValue" type="Double" mode="IN" optional="false"/>
<attribute name="usageYears" type="Integer" mode="IN" optional="false"/>
<attribute name="assetDepreciationTillDate" type="List" mode="OUT" optional="false"/>
<attribute name="assetNBVAfterDepreciation" type="List" mode="OUT" optional="false"/>
</service>
<service name="straightLineDepreciation" engine="simple" default-entity-name="FixedAsset"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="straightLineDepreciation" auth="true">
<description>Straight line depreciation service to Fixed Asset</description>
<implements service="fixedAssetDepCalcInterface"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="doubleDecliningBalanceDepreciation" engine="simple" default-entity-name="FixedAsset"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="doubleDecliningBalanceDepreciation" auth="true">
<description>Double declining balance depreciation service to Fixed Asset</description>
<implements service="fixedAssetDepCalcInterface"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="calculateFixedAssetDepreciation" engine="simple" default-entity-name="FixedAssetDepMethod"
location="org/ofbiz/accounting/fixedasset/FixedAssetServices.xml" invoke="calculateFixedAssetDepreciation" auth="true">
<description>Select the depreciation method according to the entry in FixedAssetDepMethod</description>
<attribute name="fixedAssetId" type="String" mode="IN"/>
<attribute name="assetDepreciationTillDate" type="List" mode="OUT" optional="false"/>
<attribute name="assetNBVAfterDepreciation" type="List" mode="OUT" optional="false"/>
</service>
</services>