[ \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
102 lines
6.6 KiB
XML
102 lines
6.6 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>Product Costing Services</description>
|
|
<vendor>OFBiz</vendor>
|
|
<version>1.0</version>
|
|
|
|
<service name="createCostComponent" default-entity-name="CostComponent" engine="simple"
|
|
location="component://product/script/org/ofbiz/product/cost/CostServices.xml" invoke="createCostComponent" auth="true">
|
|
<description>Create a CostComponent</description>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<auto-attributes include="pk" mode="OUT" optional="false"/>
|
|
<!--<override name="costComponentTypeId" optional="false"/>-->
|
|
</service>
|
|
<service name="updateCostComponent" default-entity-name="CostComponent" engine="simple"
|
|
location="component://product/script/org/ofbiz/product/cost/CostServices.xml" invoke="updateCostComponent" auth="true">
|
|
<description>Update a CostComponent</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
</service>
|
|
<service name="deleteCostComponent" default-entity-name="CostComponent" engine="simple"
|
|
location="component://product/script/org/ofbiz/product/cost/CostServices.xml" invoke="deleteCostComponent" auth="true">
|
|
<description>Delete a CostComponent</description>
|
|
<auto-attributes include="pk" mode="IN" optional="false"/>
|
|
</service>
|
|
<service name="recreateCostComponent" default-entity-name="CostComponent" engine="simple"
|
|
location="component://product/script/org/ofbiz/product/cost/CostServices.xml" invoke="recreateCostComponent" auth="true">
|
|
<description>Create a CostComponent and cancel the existing ones</description>
|
|
<auto-attributes include="nonpk" mode="IN" optional="true"/>
|
|
<auto-attributes include="pk" mode="OUT" optional="false"/>
|
|
</service>
|
|
<service name="cancelCostComponents" engine="simple"
|
|
location="component://product/script/org/ofbiz/product/cost/CostServices.xml" invoke="cancelCostComponents" auth="true">
|
|
<description>Cancels CostComponent</description>
|
|
<attribute mode="IN" name="costComponentId" optional="true" type="String"/>
|
|
<attribute mode="IN" name="productId" optional="true" type="String"/>
|
|
<attribute mode="IN" name="costUomId" optional="true" type="String"/>
|
|
<attribute mode="IN" name="costComponentTypeId" optional="true" type="String"/>
|
|
</service>
|
|
<service name="getProductCost" engine="simple" auth="true"
|
|
location="component://product/script/org/ofbiz/product/cost/CostServices.xml" invoke="getProductCost">
|
|
<description>Gets the product's costs from CostComponent entries</description>
|
|
<attribute mode="IN" name="productId" optional="false" type="String"/>
|
|
<attribute mode="IN" name="currencyUomId" optional="false" type="String"/>
|
|
<attribute mode="IN" name="costComponentTypePrefix" optional="false" type="String"/>
|
|
<attribute mode="OUT" name="productCost" type="BigDecimal" optional="false"/>
|
|
</service>
|
|
<service name="getTaskCost" engine="simple" auth="true"
|
|
location="component://product/script/org/ofbiz/product/cost/CostServices.xml" invoke="getTaskCost">
|
|
<description>Gets the production run task's costs</description>
|
|
<attribute mode="IN" name="workEffortId" optional="false" type="String"/>
|
|
<attribute mode="IN" name="currencyUomId" optional="false" type="String"/>
|
|
<attribute mode="IN" name="productId" optional="true" type="String"/>
|
|
<attribute mode="IN" name="routingId" optional="true" type="String"/>
|
|
<attribute mode="OUT" name="taskCost" type="BigDecimal" optional="false"/>
|
|
</service>
|
|
<service name="calculateProductCosts" engine="simple" auth="true"
|
|
location="component://product/script/org/ofbiz/product/cost/CostServices.xml" invoke="calculateProductCosts">
|
|
<description>Calculates the product's costs. If the product does not have cost component defined, will use the BOM to calculate the cost.</description>
|
|
<attribute mode="IN" name="productId" optional="false" type="String"/>
|
|
<attribute mode="IN" name="currencyUomId" optional="false" type="String"/>
|
|
<attribute mode="IN" name="costComponentTypePrefix" optional="false" type="String"/>
|
|
<attribute mode="OUT" name="totalCost" type="BigDecimal"/>
|
|
</service>
|
|
<service name="calculateAllProductsCosts" engine="simple" auth="true" transaction-timeout="7200"
|
|
location="component://product/script/org/ofbiz/product/cost/CostServices.xml" invoke="calculateAllProductsCosts">
|
|
<description>Calculates estimated costs for all the products</description>
|
|
<attribute mode="IN" name="currencyUomId" optional="false" type="String"/>
|
|
<attribute mode="IN" name="costComponentTypePrefix" optional="false" type="String"/>
|
|
</service>
|
|
<service name="calculateProductAverageCost" engine="simple" auth="true"
|
|
location="component://product/script/org/ofbiz/product/cost/CostServices.xml" invoke="calculateProductAverageCost">
|
|
<description>Calculate inventory average cost for a product</description>
|
|
<attribute name="productId" type="String" mode="IN"/>
|
|
<attribute name="facilityId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="ownerPartyId" type="String" mode="IN" optional="true"/>
|
|
<attribute name="totalQuantityOnHand" type="BigDecimal" mode="OUT"/>
|
|
<attribute name="totalInventoryCost" type="BigDecimal" mode="OUT" optional="true"/>
|
|
<attribute name="productAverageCost" type="BigDecimal" mode="OUT" optional="true"/>
|
|
<attribute name="currencyUomId" type="String" mode="OUT" optional="true"/>
|
|
</service>
|
|
</services>
|