-
Notifications
You must be signed in to change notification settings - Fork 492
/
services_tax.xml
243 lines (227 loc) · 16.5 KB
/
services_tax.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
243
<?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="https://ofbiz.apache.org/dtds/services.xsd">
<description>Accounting Services: TaxAuthority and related </description>
<vendor>OFBiz</vendor>
<version>1.0</version>
<!-- Tax Calc Interfaces -->
<service name="calcTaxInterface" engine="interface" location="" invoke="">
<description>Tax Calc Service Interface</description>
<attribute name="productStoreId" type="String" mode="IN" optional="true"><!-- this will be used to find the payToPartyId, if the payToPartyId parameter is not explicitly passed, and as one of the columns to constrain by on the lookup --></attribute>
<attribute name="facilityId" type="String" mode="IN" optional="true"><!-- if no shippingAddress is passed in this will be used to lookup an address for a face-to-face sale --></attribute>
<attribute name="payToPartyId" type="String" mode="IN" optional="true"/>
<attribute name="billToPartyId" type="String" mode="IN" optional="true"><!-- would like to have this not-optional, but in some circumstances may need a tax estimate without knowing who the customer is --></attribute>
<attribute name="itemProductList" type="java.util.List" mode="IN" optional="false"><!-- List of GenericValues --></attribute>
<attribute name="itemAmountList" type="java.util.List" mode="IN" optional="false"><!-- List of BigDecimals --></attribute>
<attribute name="itemPriceList" type="java.util.List" mode="IN" optional="false"><!-- List of BigDecimals --></attribute>
<attribute name="itemQuantityList" type="java.util.List" mode="IN" optional="true"><!-- List of BigDecimals --></attribute>
<attribute name="itemShippingList" type="java.util.List" mode="IN" optional="true"><!-- List of BigDecimals --></attribute>
<attribute name="orderShippingAmount" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="orderPromotionsAmount" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="shippingAddress" type="org.apache.ofbiz.entity.GenericValue" mode="IN" optional="true"/>
<attribute name="orderAdjustments" type="java.util.List" mode="OUT" optional="false"><!-- List of GenericValues (OrderAdjustment) --></attribute>
<attribute name="itemAdjustments" type="java.util.List" mode="OUT" optional="false"><!-- List of Lists of GenericValues (OrderAdjustment), one List of Adjustments per item --></attribute>
</service>
<service name="calcTaxTotalForDisplayInterface" engine="interface" location="" invoke="">
<description>Tax Calc Total For Display Service Interface</description>
<attribute name="productStoreId" type="String" mode="IN" optional="false"><!-- this will be used to get the taxAuthPartyId and taxAuthGeoId to use for the rate lookup, and for the payToPartyId, and as one of the columns to constrain by on the lookup --></attribute>
<attribute name="billToPartyId" type="String" mode="IN" optional="true"><!-- would like to have this not-optional, but in some circumstances may need a tax estimate without knowing who the customer is --></attribute>
<attribute name="productId" type="String" mode="IN" optional="false"/>
<attribute name="quantity" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="basePrice" type="BigDecimal" mode="IN" optional="false"/>
<attribute name="shippingPrice" type="BigDecimal" mode="IN" optional="true"/>
<attribute name="taxTotal" type="BigDecimal" mode="OUT" optional="false"/>
<attribute name="taxPercentage" type="BigDecimal" mode="OUT" optional="false"/>
<attribute name="priceWithTax" type="BigDecimal" mode="OUT" optional="false"/>
</service>
<!-- Tax Authority Calc Services -->
<service name="calcTax" engine="java"
location="org.apache.ofbiz.accounting.tax.TaxAuthorityServices" invoke="rateProductTaxCalc">
<description>Tax Authority Rate Product Calc Service</description>
<implements service="calcTaxInterface"/>
</service>
<service name="calcTaxForDisplay" engine="java"
location="org.apache.ofbiz.accounting.tax.TaxAuthorityServices" invoke="rateProductTaxCalcForDisplay">
<description>Tax Authority Rate Product Calc Service</description>
<implements service="calcTaxTotalForDisplayInterface"/>
</service>
<!-- TaxAuthority -->
<service name="createTaxAuthority" default-entity-name="TaxAuthority" engine="entity-auto" invoke="create" auth="true">
<description>Create TaxAuthority</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateTaxAuthority" default-entity-name="TaxAuthority" engine="entity-auto" invoke="update" auth="true">
<description>Update TaxAuthority</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteTaxAuthority" default-entity-name="TaxAuthority" engine="entity-auto" invoke="delete" auth="true">
<description>Delete TaxAuthority</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- TaxAuthorityAssoc -->
<service name="createTaxAuthorityAssoc" default-entity-name="TaxAuthorityAssoc" engine="entity-auto" invoke="create" auth="true">
<description>Create TaxAuthorityAssoc</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updateTaxAuthorityAssoc" default-entity-name="TaxAuthorityAssoc" engine="entity-auto" invoke="update" auth="true">
<description>Update TaxAuthorityAssoc</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteTaxAuthorityAssoc" default-entity-name="TaxAuthorityAssoc" engine="entity-auto" invoke="delete" auth="true">
<description>Delete TaxAuthorityAssoc</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- TaxAuthorityCategory -->
<service name="createTaxAuthorityCategory" default-entity-name="TaxAuthorityCategory" engine="entity-auto" invoke="create" auth="true">
<description>Create TaxAuthorityCategory</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateTaxAuthorityCategory" default-entity-name="TaxAuthorityCategory" engine="entity-auto" invoke="update" auth="true">
<description>Update TaxAuthorityCategory</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteTaxAuthorityCategory" default-entity-name="TaxAuthorityCategory" engine="simple" auth="true"
location="component://accounting/minilang/tax/TaxAuthorityServices.xml" invoke="deleteTaxAuthorityCategory">
<description>Delete TaxAuthorityCategory</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- TaxAuthorityGlAccount -->
<service name="createTaxAuthorityGlAccount" default-entity-name="TaxAuthorityGlAccount" engine="entity-auto" invoke="create" auth="true">
<description>Create TaxAuthorityGlAccount</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateTaxAuthorityGlAccount" default-entity-name="TaxAuthorityGlAccount" engine="entity-auto" invoke="update" auth="true">
<description>Update TaxAuthorityGlAccount</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteTaxAuthorityGlAccount" default-entity-name="TaxAuthorityGlAccount" engine="entity-auto" invoke="delete" auth="true">
<description>Delete TaxAuthorityGlAccount</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- TaxAuthorityRateProduct -->
<service name="createTaxAuthorityRateProduct" default-entity-name="TaxAuthorityRateProduct" engine="entity-auto" invoke="create" auth="true">
<description>Create TaxAuthorityRateProduct</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="OUT" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="updateTaxAuthorityRateProduct" default-entity-name="TaxAuthorityRateProduct" engine="entity-auto" invoke="update" auth="true">
<description>Update TaxAuthorityRateProduct</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteTaxAuthorityRateProduct" default-entity-name="TaxAuthorityRateProduct" engine="entity-auto" invoke="delete" auth="true">
<description>Delete TaxAuthorityRateProduct</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- PartyTaxAuthInfo -->
<service name="createPartyTaxAuthInfo" default-entity-name="PartyTaxAuthInfo" engine="simple" auth="true"
location="component://accounting/minilang/tax/TaxAuthorityServices.xml" invoke="createPartyTaxAuthInfo">
<description>Create PartyTaxAuthInfo</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="CREATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<override name="fromDate" optional="true"/>
</service>
<service name="updatePartyTaxAuthInfo" default-entity-name="PartyTaxAuthInfo" engine="simple" auth="true"
location="component://accounting/minilang/tax/TaxAuthorityServices.xml" invoke="updatePartyTaxAuthInfo">
<description>Update PartyTaxAuthInfo</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="UPDATE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deletePartyTaxAuthInfo" default-entity-name="PartyTaxAuthInfo" engine="entity-auto" invoke="delete" auth="true">
<description>Delete PartyTaxAuthInfo</description>
<permission-service service-name="acctgBasePermissionCheck" main-action="DELETE"/>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<service name="createCustomerTaxAuthInfo" default-entity-name="PartyTaxAuthInfo" engine="simple" auth="true"
location="component://accounting/minilang/tax/TaxAuthorityServices.xml" invoke="createCustomerTaxAuthInfo">
<description>Create Customer PartyTaxAuthInfo</description>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<attribute name="partyId" type="String" mode="IN" optional="false"/>
<attribute name="taxAuthPartyGeoIds" type="String" mode="IN" optional="false"/>
<attribute name="fromDate" type="String" mode="IN" optional="true"/>
</service>
<!-- ZipSales Tax Services -->
<service name="importZipSalesTaxData" engine="java" transaction-timeout="7200"
location="org.apache.ofbiz.order.thirdparty.zipsales.ZipSalesServices" invoke="importFlatTable">
<description>Import ZipSales Flat File</description>
<attribute name="taxFileLocation" type="String" mode="IN" optional="false"/>
<attribute name="ruleFileLocation" type="String" mode="IN" optional="false"/>
</service>
<service name="flatZipSalesTaxCalc" engine="java"
location="org.apache.ofbiz.order.thirdparty.zipsales.ZipSalesServices" invoke="flatTaxCalc">
<description>Zip Sales Calc Tax Service - change this to calcTax to run</description>
<implements service="calcTaxInterface"/>
</service>
<!-- TaxAuthorityAssocType services -->
<service name="createTaxAuthorityAssocType" default-entity-name="TaxAuthorityAssocType" engine="entity-auto" invoke="create" auth="true">
<description>Create a TaxAuthorityAssocType</description>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<auto-attributes include="pk" mode="INOUT" optional="true"/>
</service>
<service name="updateTaxAuthorityAssocType" default-entity-name="TaxAuthorityAssocType" engine="entity-auto" invoke="update" auth="true">
<description>Update a TaxAuthorityAssocType</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteTaxAuthorityAssocType" default-entity-name="TaxAuthorityAssocType" engine="entity-auto" invoke="delete" auth="true">
<description>Delete a TaxAuthorityAssocType</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
<!-- TaxAuthorityRateType services -->
<service name="createTaxAuthorityRateType" default-entity-name="TaxAuthorityRateType" engine="entity-auto" invoke="create" auth="true">
<description>Create a TaxAuthorityRateType</description>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
<auto-attributes include="pk" mode="INOUT" optional="true"/>
</service>
<service name="updateTaxAuthorityRateType" default-entity-name="TaxAuthorityRateType" engine="entity-auto" invoke="update" auth="true">
<description>Update a TaxAuthorityRateType</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
<service name="deleteTaxAuthorityRateType" default-entity-name="TaxAuthorityRateType" engine="entity-auto" invoke="delete" auth="true">
<description>Delete a TaxAuthorityRateType</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
</service>
</services>