[ \t]+$ => "" (empty) Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg) Of course this effort to remove trailing spaces has no functional implications. Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135 In the meantime I did some refactoring also in *.java and *.groovy files : ){ => ) { if( => if ( while( => while ( }else => } else else{ => else { switch( => switch ( try{ => try { }catch => } catch catch( => catch ( }finally{ => } finally { So these changes are also in this commit, should not be a problem anyway. git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
213 lines
15 KiB
XML
213 lines
15 KiB
XML
<?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>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="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="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.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.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.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="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="createTaxAuthority">
|
|
<description>Create TaxAuthority</description>
|
|
<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="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="updateTaxAuthority">
|
|
<description>Update TaxAuthority</description>
|
|
<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="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="deleteTaxAuthority">
|
|
<description>Delete TaxAuthority</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- TaxAuthorityAssoc -->
|
|
<service name="createTaxAuthorityAssoc" default-entity-name="TaxAuthorityAssoc" engine="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="createTaxAuthorityAssoc">
|
|
<description>Create TaxAuthorityAssoc</description>
|
|
<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="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="updateTaxAuthorityAssoc">
|
|
<description>Update TaxAuthorityAssoc</description>
|
|
<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="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="deleteTaxAuthorityAssoc">
|
|
<description>Delete TaxAuthorityAssoc</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- TaxAuthorityCategory -->
|
|
<service name="createTaxAuthorityCategory" default-entity-name="TaxAuthorityCategory" engine="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="createTaxAuthorityCategory">
|
|
<description>Create TaxAuthorityCategory</description>
|
|
<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="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="updateTaxAuthorityCategory">
|
|
<description>Update TaxAuthorityCategory</description>
|
|
<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/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="deleteTaxAuthorityCategory">
|
|
<description>Delete TaxAuthorityCategory</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- TaxAuthorityGlAccount -->
|
|
<service name="createTaxAuthorityGlAccount" default-entity-name="TaxAuthorityGlAccount" engine="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="createTaxAuthorityGlAccount">
|
|
<description>Create TaxAuthorityGlAccount</description>
|
|
<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="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="updateTaxAuthorityGlAccount">
|
|
<description>Update TaxAuthorityGlAccount</description>
|
|
<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="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="deleteTaxAuthorityGlAccount">
|
|
<description>Delete TaxAuthorityGlAccount</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- TaxAuthorityRateProduct -->
|
|
<service name="createTaxAuthorityRateProduct" default-entity-name="TaxAuthorityRateProduct" engine="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="createTaxAuthorityRateProduct">
|
|
<description>Create TaxAuthorityRateProduct</description>
|
|
<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="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="updateTaxAuthorityRateProduct">
|
|
<description>Update TaxAuthorityRateProduct</description>
|
|
<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="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="deleteTaxAuthorityRateProduct">
|
|
<description>Delete TaxAuthorityRateProduct</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<!-- PartyTaxAuthInfo -->
|
|
<service name="createPartyTaxAuthInfo" default-entity-name="PartyTaxAuthInfo" engine="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="createPartyTaxAuthInfo">
|
|
<description>Create PartyTaxAuthInfo</description>
|
|
<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/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="updatePartyTaxAuthInfo">
|
|
<description>Update PartyTaxAuthInfo</description>
|
|
<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="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/tax/TaxAuthorityServices.xml" invoke="deletePartyTaxAuthInfo">
|
|
<description>Delete PartyTaxAuthInfo</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
|
|
<service name="createCustomerTaxAuthInfo" default-entity-name="PartyTaxAuthInfo" engine="simple" auth="true"
|
|
location="component://accounting/script/org/ofbiz/accounting/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.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.ofbiz.order.thirdparty.zipsales.ZipSalesServices" invoke="flatTaxCalc">
|
|
<description>Zip Sales Calc Tax Service - change this to calcTax to run</description>
|
|
<implements service="calcTaxInterface"/>
|
|
</service>
|
|
</services>
|