[ \t]+$ => "" (empty) Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg) Of course this effort to remove trailing spaces has no functional implications. Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135 In the meantime I did some refactoring also in *.java and *.groovy files : ){ => ) { if( => if ( while( => while ( }else => } else else{ => else { switch( => switch ( try{ => try { }catch => } catch catch( => catch ( }finally{ => } finally { So these changes are also in this commit, should not be a problem anyway. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
241 lines
16 KiB
XML
241 lines
16 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>Order Services: Quotes </description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
|
|
<!-- Quote -->
|
|
<service name="getNextQuoteId" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="getNextQuoteId">
|
|
<description>Get the Next Quote ID According to Settings on the PartyAcctgPreference Entity for the given Party</description>
|
|
<attribute name="partyId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="quoteId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
|
|
<service name="createQuote" default-entity-name="Quote" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuote" auth="true">
|
|
<description>Create an Quote</description>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<auto-attributes include="pk" mode="OUT" optional="true"/>
|
|
</service>
|
|
<service name="updateQuote" default-entity-name="Quote" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="updateQuote" auth="true">
|
|
<description>Update a Quote</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="copyQuote" default-entity-name="Quote" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="copyQuote" auth="true">
|
|
<description>Copy a Quote</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<attribute name="copyQuoteRoles" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyQuoteAttributes" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyQuoteCoefficients" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyQuoteItems" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyQuoteAdjustments" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="checkUpdateQuoteStatus" default-entity-name="Quote" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="checkUpdateQuoteStatus" auth="true">
|
|
<description>Set the Quote status to ordered.</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<!-- QuoteRole -->
|
|
<service name="createQuoteRole" default-entity-name="QuoteRole" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteRole" auth="true">
|
|
<description>Create a QuoteRole</description>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
</service>
|
|
<service name="removeQuoteRole" default-entity-name="QuoteRole" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="removeQuoteRole" auth="true">
|
|
<description>Remove a QuoteRole</description>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<!-- QuoteItem -->
|
|
<service name="createQuoteItem" default-entity-name="QuoteItem" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteItem" auth="true">
|
|
<description>Create a QuoteItem</description>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateQuoteItem" default-entity-name="QuoteItem" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="updateQuoteItem" auth="true">
|
|
<description>Update a QuoteItem</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeQuoteItem" default-entity-name="QuoteItem" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="removeQuoteItem" auth="true">
|
|
<description>Remove a QuoteItem</description>
|
|
<auto-attributes include="pk" mode="INOUT" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="copyQuoteItem" default-entity-name="QuoteItem" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="copyQuoteItem" auth="true">
|
|
<description>Copy a QuoteItem</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<attribute name="quoteIdTo" type="String" mode="IN" optional="true"/>
|
|
<attribute name="quoteItemSeqIdTo" type="String" mode="IN" optional="true"/>
|
|
<attribute name="copyQuoteAdjustments" type="String" mode="IN" optional="true"/>
|
|
</service>
|
|
<!-- QuoteAttribute -->
|
|
<service name="createQuoteAttribute" default-entity-name="QuoteAttribute" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteAttribute" auth="true">
|
|
<description>Create a QuoteAttribute</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateQuoteAttribute" default-entity-name="QuoteAttribute" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="updateQuoteAttribute" auth="true">
|
|
<description>Update a QuoteAttribute</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeQuoteAttribute" engine="simple" default-entity-name="QuoteAttribute"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="removeQuoteAttribute" auth="true">
|
|
<description>Remove a QuoteAttribute</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<!-- QuoteCoefficient -->
|
|
<service name="createQuoteCoefficient" default-entity-name="QuoteCoefficient" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteCoefficient" auth="true">
|
|
<description>Create a QuoteCoefficient</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="updateQuoteCoefficient" default-entity-name="QuoteCoefficient" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="updateQuoteCoefficient" auth="true">
|
|
<description>Update a QuoteCoefficient</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeQuoteCoefficient" engine="simple" default-entity-name="QuoteCoefficient"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="removeQuoteCoefficient" auth="true">
|
|
<description>Remove a QuoteCoefficient</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<!-- Specialized Quote services -->
|
|
<service name="createQuoteAndQuoteItemForRequest" engine="simple" default-entity-name="QuoteItem"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteAndQuoteItemForRequest" auth="true">
|
|
<description>Create a new Quote and Quote Item for a CustRequest</description>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<auto-attributes include="pk" mode="OUT" optional="true"/>
|
|
<override name="custRequestId" optional="false"/>
|
|
</service>
|
|
<service name="autoUpdateQuotePrice" engine="simple" default-entity-name="QuoteItem"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="autoUpdateQuotePrice" auth="true">
|
|
<description>Update the QuoteItem price with the passed value (if present) or automatically from the averageCost</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<attribute name="manualQuoteUnitPrice" type="BigDecimal" mode="IN" optional="true"/>
|
|
<attribute name="defaultQuoteUnitPrice" type="BigDecimal" mode="IN" optional="true"/>
|
|
<!--<attribute name="averageCost" type="BigDecimal" mode="IN" optional="true"/>
|
|
<attribute name="costToPriceMult" type="BigDecimal" mode="IN" optional="true"/>-->
|
|
</service>
|
|
<service name="autoCreateQuoteAdjustments" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="autoCreateQuoteAdjustments">
|
|
<description>Remove all existing quote adjustments, recalc them and persist in QuoteAdjustment.</description>
|
|
<attribute name="quoteId" type="String" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="createQuoteAdjustment" default-entity-name="QuoteAdjustment" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteAdjustment">
|
|
<description>Creates a new quote adjustment record</description>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
<auto-attributes mode="OUT" include="pk" optional="false"/>
|
|
<override name="quoteAdjustmentTypeId" optional="false"/>
|
|
<override name="quoteId" optional="false"/>
|
|
</service>
|
|
<service name="updateQuoteAdjustment" default-entity-name="QuoteAdjustment" engine="simple"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="updateQuoteAdjustment" auth="true">
|
|
<description>Update a QuoteAdjustment</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="removeQuoteAdjustment" engine="simple" default-entity-name="QuoteAdjustment"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="removeQuoteAdjustment" auth="true">
|
|
<description>Remove a QuoteAdjustment</description>
|
|
<auto-attributes include="pk" mode="IN" optional="true"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="createQuoteWorkEffort" default-entity-name="QuoteWorkEffort" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteWorkEffort">
|
|
<description>Creates a new QuoteWorkEffort record and WorkEffort record</description>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true"/>
|
|
<auto-attributes mode="INOUT" include="pk" optional="true"/>
|
|
<auto-attributes mode="IN" include="nonpk" optional="true" entity-name="WorkEffort"/>
|
|
<auto-attributes mode="INOUT" include="pk" optional="true" entity-name="WorkEffort"/>
|
|
<override name="quoteId" optional="false"/>
|
|
</service>
|
|
<service name="deleteQuoteWorkEffort" default-entity-name="QuoteWorkEffort" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="deleteQuoteWorkEffort">
|
|
<description>Creates a new QuoteWorkEffort record</description>
|
|
<auto-attributes mode="IN" include="pk" optional="false"/>
|
|
</service>
|
|
<service name="createQuoteFromCart" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteFromCart">
|
|
<description>Creates a new quote from a shopping cart</description>
|
|
<attribute name="cart" type="org.ofbiz.order.shoppingcart.ShoppingCart" mode="IN" optional="false"/>
|
|
<attribute name="applyStorePromotions" type="String" mode="IN" optional="true"/>
|
|
<attribute name="quoteId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="createQuoteFromShoppingList" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteFromShoppingList">
|
|
<description>Creates a new quote from a shopping list</description>
|
|
<attribute name="shoppingListId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="applyStorePromotions" type="String" mode="IN" optional="true"/>
|
|
<attribute name="quoteId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="createQuoteFromCustRequest" engine="simple" auth="true"
|
|
location="component://order/script/org/ofbiz/order/quote/QuoteServices.xml" invoke="createQuoteFromCustRequest">
|
|
<description>Creates a new quote from a customer request</description>
|
|
<attribute name="custRequestId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="quoteTypeId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="quoteId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="sendQuoteReportMail" engine="java" require-new-transaction="true" max-retry="3"
|
|
location="org.ofbiz.order.quote.QuoteServices" invoke="sendQuoteReportMail">
|
|
<description>Send a quote report mail</description>
|
|
<attribute name="emailType" type="String" mode="INOUT" optional="false"/>
|
|
<attribute name="quoteId" type="String" mode="IN" optional="false"/>
|
|
<attribute name="sendTo" type="String" mode="IN" optional="false"/>
|
|
<attribute name="sendCc" type="String" mode="IN" optional="true"/>
|
|
<attribute name="note" type="String" mode="IN" optional="true"/>
|
|
<attribute name="body" type="String" mode="OUT" optional="true"/>
|
|
</service>
|
|
<service name="storeQuote" engine="java" default-entity-name="Quote" validate="true" auth="true"
|
|
location="org.ofbiz.order.quote.QuoteServices" invoke="storeQuote">
|
|
<description>Creates quote entities</description>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<attribute name="quoteItems" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteAttributes" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteCoefficients" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteRoles" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteTerms" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteTermAttributes" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteWorkEfforts" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteAdjustments" type="List" mode="IN" optional="true"/>
|
|
<attribute name="quoteId" type="String" mode="OUT" optional="false"/>
|
|
</service>
|
|
</services> |