Author: bibryam
Date: Mon Aug 1 10:21:41 2011
New Revision: 1152729
URL:
http://svn.apache.org/viewvc?rev=1152729&view=revLog:
A slightly modified patch from Leon - CopyQuote service return new quote id
https://issues.apache.org/jira/browse/OFBIZ-4357Modified:
ofbiz/trunk/applications/order/script/org/ofbiz/order/quote/QuoteServices.xml
ofbiz/trunk/applications/order/servicedef/services_quote.xml
Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/quote/QuoteServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/quote/QuoteServices.xml?rev=1152729&r1=1152728&r2=1152729&view=diff==============================================================================
--- ofbiz/trunk/applications/order/script/org/ofbiz/order/quote/QuoteServices.xml (original)
+++ ofbiz/trunk/applications/order/script/org/ofbiz/order/quote/QuoteServices.xml Mon Aug 1 10:21:41 2011
@@ -194,6 +194,7 @@ under the License.
<call-service service-name="createQuote" in-map-name="createQuoteInMap">
<result-to-field result-name="quoteId" field="quoteIdTo"/>
</call-service>
+ <field-to-result field="quoteIdTo" result-name="quoteId"/>
<if-compare field="parameters.copyQuoteItems" value="Y" operator="equals">
<get-related value-field="quote" relation-name="QuoteItem" list="quoteItems"/>
<iterate list="quoteItems" entry="quoteItem">
Modified: ofbiz/trunk/applications/order/servicedef/services_quote.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/services_quote.xml?rev=1152729&r1=1152728&r2=1152729&view=diff==============================================================================
--- ofbiz/trunk/applications/order/servicedef/services_quote.xml (original)
+++ ofbiz/trunk/applications/order/servicedef/services_quote.xml Mon Aug 1 10:21:41 2011
@@ -55,7 +55,7 @@ under the License.
<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"/>
+ <auto-attributes include="pk" mode="INOUT" 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"/>