Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed: move crud QuoteTerm services to services_quote.xml
No functional change.

Move oriented Quote service to dedicate services_quote.xml instead the generic services.xml file
  • Loading branch information
nmalin committed Aug 18, 2021
1 parent a37d5cc commit 70ea85c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 23 deletions.
22 changes: 0 additions & 22 deletions applications/order/servicedef/services.xml
Expand Up @@ -1497,28 +1497,6 @@ under the License.
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>

<service name="createQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="create">
<description>
Create a new Quate term.
</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<override name="quoteItemSeqId" type="String" mode="IN" default-value="_NA_"/>
</service>
<service name="updateQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="update">
<description>
Edit the Quate term.
</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
</service>
<service name="deleteQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="delete">
<description>
delete the Quate term.
</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
</service>

<!-- Use for link the payment and the invoice When Received Payment -->
<service name="createOrderPaymentApplication" engine="simple" auth="true"
location="component://order/minilang/order/OrderServices.xml" invoke="createOrderPaymentApplication">
Expand Down
24 changes: 23 additions & 1 deletion applications/order/servicedef/services_quote.xml
Expand Up @@ -180,6 +180,28 @@ under the License.
<auto-attributes include="pk" mode="IN" optional="true"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<!-- QuoteTerm -->
<service name="createQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="create">
<description>
Create a new Quate term.
</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
<override name="quoteItemSeqId" type="String" mode="IN" default-value="_NA_"/>
</service>
<service name="updateQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="update">
<description>
Edit the Quate term.
</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
<auto-attributes mode="IN" include="nonpk" optional="true"/>
</service>
<service name="deleteQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="delete">
<description>
delete the Quate term.
</description>
<auto-attributes mode="IN" include="pk" optional="false"/>
</service>
<!-- Specialized Quote services -->
<service name="createQuoteAndQuoteItemForRequest" engine="groovy" default-entity-name="QuoteItem"
location="component://order/groovyScripts/quote/QuoteServices.groovy" invoke="createQuoteAndQuoteItemForRequest" auth="true">
Expand Down Expand Up @@ -291,7 +313,7 @@ under the License.
<attribute name="messageWrapper" type="org.apache.ofbiz.service.mail.MimeMessageWrapper" mode="OUT" optional="true"/>
<attribute name="communicationEventId" type="String" mode="OUT" optional="true"/>
</service>
<service name="storeQuote" engine="java" default-entity-name="Quote" validate="true" auth="true"
<service name="storeQuote" engine="java" default-entity-name="Quote" validate="true" auth="true"
location="org.apache.ofbiz.order.quote.QuoteServices" invoke="storeQuote">
<description>Creates quote entities</description>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
Expand Down

0 comments on commit 70ea85c

Please sign in to comment.