This repository has been archived by the owner on May 9, 2020. It is now read-only.
/
services_quote.xml
242 lines (237 loc) · 16.4 KB
/
services_quote.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<?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"/>
<override name="workEffortId" 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>