Skip to content

Commit 70ea85c

Browse files
committed
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
1 parent a37d5cc commit 70ea85c

File tree

2 files changed

+23
-23
lines changed

2 files changed

+23
-23
lines changed

applications/order/servicedef/services.xml

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1497,28 +1497,6 @@ under the License.
14971497
<auto-attributes include="pk" mode="IN" optional="false"/>
14981498
</service>
14991499

1500-
<service name="createQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="create">
1501-
<description>
1502-
Create a new Quate term.
1503-
</description>
1504-
<auto-attributes mode="IN" include="pk" optional="false"/>
1505-
<auto-attributes mode="IN" include="nonpk" optional="true"/>
1506-
<override name="quoteItemSeqId" type="String" mode="IN" default-value="_NA_"/>
1507-
</service>
1508-
<service name="updateQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="update">
1509-
<description>
1510-
Edit the Quate term.
1511-
</description>
1512-
<auto-attributes mode="IN" include="pk" optional="false"/>
1513-
<auto-attributes mode="IN" include="nonpk" optional="true"/>
1514-
</service>
1515-
<service name="deleteQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="delete">
1516-
<description>
1517-
delete the Quate term.
1518-
</description>
1519-
<auto-attributes mode="IN" include="pk" optional="false"/>
1520-
</service>
1521-
15221500
<!-- Use for link the payment and the invoice When Received Payment -->
15231501
<service name="createOrderPaymentApplication" engine="simple" auth="true"
15241502
location="component://order/minilang/order/OrderServices.xml" invoke="createOrderPaymentApplication">

applications/order/servicedef/services_quote.xml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,28 @@ under the License.
180180
<auto-attributes include="pk" mode="IN" optional="true"/>
181181
<auto-attributes include="nonpk" mode="IN" optional="true"/>
182182
</service>
183+
<!-- QuoteTerm -->
184+
<service name="createQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="create">
185+
<description>
186+
Create a new Quate term.
187+
</description>
188+
<auto-attributes mode="IN" include="pk" optional="false"/>
189+
<auto-attributes mode="IN" include="nonpk" optional="true"/>
190+
<override name="quoteItemSeqId" type="String" mode="IN" default-value="_NA_"/>
191+
</service>
192+
<service name="updateQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="update">
193+
<description>
194+
Edit the Quate term.
195+
</description>
196+
<auto-attributes mode="IN" include="pk" optional="false"/>
197+
<auto-attributes mode="IN" include="nonpk" optional="true"/>
198+
</service>
199+
<service name="deleteQuoteTerm" engine="entity-auto" default-entity-name="QuoteTerm" invoke="delete">
200+
<description>
201+
delete the Quate term.
202+
</description>
203+
<auto-attributes mode="IN" include="pk" optional="false"/>
204+
</service>
183205
<!-- Specialized Quote services -->
184206
<service name="createQuoteAndQuoteItemForRequest" engine="groovy" default-entity-name="QuoteItem"
185207
location="component://order/groovyScripts/quote/QuoteServices.groovy" invoke="createQuoteAndQuoteItemForRequest" auth="true">
@@ -291,7 +313,7 @@ under the License.
291313
<attribute name="messageWrapper" type="org.apache.ofbiz.service.mail.MimeMessageWrapper" mode="OUT" optional="true"/>
292314
<attribute name="communicationEventId" type="String" mode="OUT" optional="true"/>
293315
</service>
294-
<service name="storeQuote" engine="java" default-entity-name="Quote" validate="true" auth="true"
316+
<service name="storeQuote" engine="java" default-entity-name="Quote" validate="true" auth="true"
295317
location="org.apache.ofbiz.order.quote.QuoteServices" invoke="storeQuote">
296318
<description>Creates quote entities</description>
297319
<auto-attributes include="nonpk" mode="IN" optional="true"/>

0 commit comments

Comments
 (0)