svn commit: r653327 - in /ofbiz/trunk/applications/order: script/org/ofbiz/order/quote/QuoteServices.xml servicedef/secas.xml servicedef/services_quote.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r653327 - in /ofbiz/trunk/applications/order: script/org/ofbiz/order/quote/QuoteServices.xml servicedef/secas.xml servicedef/services_quote.xml

jacopoc
Author: jacopoc
Date: Mon May  5 00:30:37 2008
New Revision: 653327

URL: http://svn.apache.org/viewvc?rev=653327&view=rev
Log:
Cleaned up the services and secas around quote report emails: instead of using the QuoteAttribute entity and seca to trigger the email, it is better to just call the sendQuoteReportMail service.
Part of OFBIZ-1658

Modified:
    ofbiz/trunk/applications/order/script/org/ofbiz/order/quote/QuoteServices.xml
    ofbiz/trunk/applications/order/servicedef/secas.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=653327&r1=653326&r2=653327&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 May  5 00:30:37 2008
@@ -865,19 +865,4 @@
             <remove-value value-name="quoteWorkEffort"/>
         </if-not-empty>
     </simple-method>
-    <simple-method method-name="sendQuoteEmailForCreation" login-required="false" short-description="Send an e-mail for quote creation">
-        <clear-field field-name="quoteAttributeIn"/>
-        <set field="quoteAttributeIn.quoteId" from-field="parameters.quoteId"/>
-        <set field="quoteAttributeIn.attrName" value="EMAIL"/>
-        <find-by-and map-name="quoteAttributeIn" list-name="quoteAttributes" entity-name="QuoteAttribute"/>
-        <first-from-list entry-name="quoteAttribute" list-name="quoteAttributes"/>
-        
-        <if-not-empty field-name="quoteAttribute">
-            <clear-field field-name="sendQuoteInMap"/>
-            <set field="sendQuoteInMap.emailType" value="PRDS_QUO_CREATED"/>
-            <set field="sendQuoteInMap.quoteId" from-field="parameters.quoteId"/>
-            <set field="sendQuoteInMap.sendTo" from-field="quoteAttribute.attrValue"/>
-            <call-service service-name="sendQuoteReportMail" in-map-name="sendQuoteInMap"/>
-        </if-not-empty>
-    </simple-method>
 </simple-methods>
\ No newline at end of file

Modified: ofbiz/trunk/applications/order/servicedef/secas.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/secas.xml?rev=653327&r1=653326&r2=653327&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/servicedef/secas.xml (original)
+++ ofbiz/trunk/applications/order/servicedef/secas.xml Mon May  5 00:30:37 2008
@@ -302,8 +302,10 @@
         <action service="createWorkEffort" mode="sync"/>
     </eca>
     
-    <!-- Quote -->
+    <!-- Quote
+    
     <eca service="storeQuote" event="commit">
         <action service="sendQuoteEmailForCreation" mode="async" persist="true"/>
     </eca>
+    -->
 </service-eca>
\ No newline at end of file

Modified: ofbiz/trunk/applications/order/servicedef/services_quote.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/servicedef/services_quote.xml?rev=653327&r1=653326&r2=653327&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/servicedef/services_quote.xml (original)
+++ ofbiz/trunk/applications/order/servicedef/services_quote.xml Mon May  5 00:30:37 2008
@@ -238,9 +238,4 @@
         <attribute name="quoteAdjustments" type="List" mode="IN" optional="true"/>
         <attribute name="quoteId" type="String" mode="OUT" optional="false"/>
     </service>
-    <service name="sendQuoteEmailForCreation" engine="simple" require-new-transaction="true"
-             location="org/ofbiz/order/quote/QuoteServices.xml" invoke="sendQuoteEmailForCreation">
-        <description>Send an e-mail for quote creation</description>  
-        <attribute name="quoteId" type="String" mode="IN" optional="false"/>
-    </service>
 </services>
\ No newline at end of file