Added a migrateAgreementWorkEffortAppl service to migrate existing data to the new entity. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@883140 13f79535-47bb-0310-9956-ffa450edef68
263 lines
18 KiB
XML
263 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: Agreements </description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
|
|
<!-- Agreement -->
|
|
<service name="createAgreement" default-entity-name="Agreement" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreement" auth="true">
|
|
<description>Create an Agreement</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<auto-attributes include="pk" mode="OUT" optional="true"/>
|
|
</service>
|
|
<service name="updateAgreement" default-entity-name="Agreement" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="updateAgreement" auth="true">
|
|
<description>Update an Agreement</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="cancelAgreement" default-entity-name="Agreement" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="cancelAgreement" auth="true">
|
|
<description>Cancel an Agreement</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="copyAgreement" default-entity-name="Agreement" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="copyAgreement" auth="true">
|
|
<description>Copy an Agreement</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="INOUT" optional="false"/>
|
|
<attribute name="copyAgreementTerms" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyAgreementProducts" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyAgreementParties" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- AgreementItem -->
|
|
<service name="createAgreementItem" default-entity-name="AgreementItem" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreementItem" auth="true">
|
|
<description>Create an AgreementItem</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateAgreementItem" default-entity-name="AgreementItem" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="updateAgreementItem" auth="true">
|
|
<description>Update an AgreementItem</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeAgreementItem" default-entity-name="AgreementItem" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="removeAgreementItem" auth="true">
|
|
<description>Remove an AgreementItem</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- AgreementTerm -->
|
|
<service name="createAgreementTerm" default-entity-name="AgreementTerm" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreementTerm" auth="true">
|
|
<description>Create an AgreementTerm</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateAgreementTerm" default-entity-name="AgreementTerm" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="updateAgreementTerm" auth="true">
|
|
<description>Update an AgreementTerm</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteAgreementTerm" default-entity-name="AgreementTerm" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="deleteAgreementTerm" auth="true">
|
|
<description>Delete an AgreementTerm</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- AgreementPromoAppl -->
|
|
<service name="createAgreementPromoAppl" default-entity-name="AgreementPromoAppl" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreementPromoAppl" auth="true">
|
|
<description>Create an AgreementPromoAppl</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateAgreementPromoAppl" default-entity-name="AgreementPromoAppl" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="updateAgreementPromoAppl" auth="true">
|
|
<description>Update an AgreementPromoAppl</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeAgreementPromoAppl" default-entity-name="AgreementPromoAppl" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="removeAgreementPromoAppl" auth="true">
|
|
<description>Remove an AgreementPromoAppl</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- AgreementProductAppl -->
|
|
<service name="createAgreementProductAppl" default-entity-name="AgreementProductAppl" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreementProductAppl" auth="true">
|
|
<description>Create an AgreementProductAppl</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateAgreementProductAppl" default-entity-name="AgreementProductAppl" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="updateAgreementProductAppl" auth="true">
|
|
<description>Update an AgreementProductAppl</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeAgreementProductAppl" default-entity-name="AgreementProductAppl" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="removeAgreementProductAppl" auth="true">
|
|
<description>Remove an AgreementProductAppl</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- AgreementPartyApplic -->
|
|
<service name="createAgreementPartyApplic" default-entity-name="AgreementPartyApplic" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreementPartyApplic" auth="true">
|
|
<description>Create an AgreementPartyApplic</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateAgreementPartyApplic" default-entity-name="AgreementPartyApplic" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="updateAgreementPartyApplic" auth="true">
|
|
<description>Update an AgreementPartyApplic</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeAgreementPartyApplic" default-entity-name="AgreementPartyApplic" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="removeAgreementPartyApplic" auth="true">
|
|
<description>Remove an AgreementPartyApplic</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- AgreementGeographicalApplic -->
|
|
<service name="createAgreementGeographicalApplic" default-entity-name="AgreementGeographicalApplic" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreementGeographicalApplic" auth="true">
|
|
<description>Create an AgreementGeographicalApplic</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="CREATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateAgreementGeographicalApplic" default-entity-name="AgreementGeographicalApplic" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="updateAgreementGeographicalApplic" auth="true">
|
|
<description>Update an AgreementGeographicalApplic</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeAgreementGeographicalApplic" default-entity-name="AgreementGeographicalApplic" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="removeAgreementGeographicalApplic" auth="true">
|
|
<description>Remove an AgreementGeographicalApplic</description>
|
|
<permission-service service-name="acctgAgreementPermissionCheck" main-action="UPDATE"/>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- AgreementRole -->
|
|
<service name="createAgreementRole" default-entity-name="AgreementRole" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreementRole" auth="true">
|
|
<description>Create an Agreement Role</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
</service>
|
|
<service name="updateAgreementRole" default-entity-name="AgreementRole" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="updateAgreementRole" auth="true">
|
|
<description>Update an Agreement Role</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
</service>
|
|
<service name="deleteAgreementRole" default-entity-name="AgreementRole" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="deleteAgreementRole" auth="true">
|
|
<description>Delete an Agreement Role</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
</service>
|
|
|
|
<service name="getCommissionForProduct" engine="java"
|
|
location="org.ofbiz.accounting.agreement.AgreementServices" invoke="getCommissionForProduct" auth="true">
|
|
<description>Get commission receiving parties and amounts for a product. <br/>
|
|
amount input is for the entire quantity. <br/><br/>
|
|
Returns a List of Maps each containing <br/>
|
|
partyIdFrom String commission paying party <br/>
|
|
partyIdTo String commission receiving party <br/>
|
|
commission BigDecimal Commission <br/>
|
|
days Long term days <br/>
|
|
currencyUomId String Currency <br/>
|
|
productId String Product Id <br/>
|
|
Will use the virtual product if no agreement is found for a variant product. If no quantity is specified, defaults to one (1).
|
|
</description>
|
|
<permission-service service-name="acctgCommissionPermissionCheck" main-action="VIEW"/>
|
|
<attribute name="productId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="invoiceId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="invoiceItemSeqId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="invoiceItemTypeId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="amount" type="BigDecimal" mode="IN" optional="false"/>
|
|
<attribute name="quantity" type="BigDecimal" mode="IN" optional="true"/>
|
|
<attribute name="commissions" type="List" mode="OUT" optional="false"/>
|
|
</service>
|
|
|
|
<!--AgrementWorkEffortApplic-->
|
|
<service name="createAgreementWorkEffortApplic" engine="simple" default-entity-name="AgreementWorkEffortApplic"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="createAgreementWorkEffortApplic">
|
|
<description> Create AgreementWorkEffortApplic </description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<override name="agreementItemSeqId" default-value="_NA_"></override>
|
|
</service>
|
|
<service name="deleteAgreementWorkEffortApplic" engine="simple" default-entity-name="AgreementWorkEffortApplic"
|
|
location="component://accounting/script/org/ofbiz/accounting/agreement/AgreementServices.xml" invoke="deleteAgreementWorkEffortApplic">
|
|
<description>Delete AgreementWorkEffortApplic</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
</service>
|
|
|
|
<!-- Permission services -->
|
|
<service name="acctgAgreementPermissionCheck" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="acctgAgreementPermissionCheck">
|
|
<description>Accounting Agreement Permission Checking Logic</description>
|
|
<implements service="permissionInterface"/>
|
|
</service>
|
|
<service name="acctgCommissionPermissionCheck" engine="simple"
|
|
location="component://accounting/script/org/ofbiz/accounting/permissions/PermissionServices.xml" invoke="commissionPermissionCheck">
|
|
<description>Accounting Commission Permission Checking Logic</description>
|
|
<implements service="permissionInterface"/>
|
|
</service>
|
|
</services>
|