Many thanks to Ashish Vijaywargiya for the patch (Apache OFBIZ-87). git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@422407 13f79535-47bb-0310-9956-ffa450edef68
57 lines
5.1 KiB
XML
57 lines
5.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
|
|
Copyright 2001-2006 The Apache Software Foundation
|
|
|
|
Licensed 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.
|
|
-->
|
|
|
|
<entity-engine-xml>
|
|
<!-- ################################# -->
|
|
<!-- This is an example of a fixed asset (a machine or a workcenter) with standard costing information -->
|
|
<FixedAsset fixedAssetId="WORKCENTER_COST" fixedAssetTypeId="GROUP_EQUIPMENT" fixedAssetName="Demo Workcenter with Standard Costs information"/>
|
|
<!-- Deprecated: in the future cost information will be stored in the CostComponentCalc entity;
|
|
these entries can then be associated to a work effort thru the WorkEffortCostCalc entity. -->
|
|
<!-- This is the standard cost per hour needed to setup the fixed asset for the task -->
|
|
<FixedAssetStdCost fixedAssetId="WORKCENTER_COST" fixedAssetStdCostTypeId="SETUP_COST" fromDate="2005-12-31 00:01:00.0" amountUomId="USD" amount="2"/>
|
|
<!-- This is the standard cost per hour for the usage of the fixed asset to perform a given task -->
|
|
<FixedAssetStdCost fixedAssetId="WORKCENTER_COST" fixedAssetStdCostTypeId="USAGE_COST" fromDate="2005-12-31 00:01:00.0" amountUomId="USD" amount="8"/>
|
|
|
|
<!-- ################################# -->
|
|
<!-- ################################# -->
|
|
<!-- This is a finished good, PROD_COST, manufactured using 2 units of the raw material MAT_A_COST and 3 units of raw material MAT_B_COST -->
|
|
<!-- Finished good and raw materials definitions: -->
|
|
<Product productId="PROD_COST" productTypeId="FINISHED_GOOD" internalName="Demo Product for Costing" description="Demo Product for Standard Costing" isVirtual="N" isVariant="N" billOfMaterialLevel="0"/>
|
|
<Product productId="MAT_A_COST" productTypeId="RAW_MATERIAL" internalName="Demo Material A for Costing" description="Demo Material A for Standard Costing" isVirtual="N" isVariant="N" billOfMaterialLevel="1"/>
|
|
<Product productId="MAT_B_COST" productTypeId="RAW_MATERIAL" internalName="Demo Material B for Costing" description="Demo Material B for Standard Costing" isVirtual="N" isVariant="N" billOfMaterialLevel="1"/>
|
|
<!-- Cost information for the raw materials only (the ones for the finished good will be automatically computed by the costing algorithm): -->
|
|
<CostComponent costComponentId="6000" costComponentTypeId="EST_STD_MAT_COST" productId="MAT_A_COST" fromDate="2005-12-31 00:01:00.0" costUomId="USD" cost="9"/>
|
|
<CostComponent costComponentId="6001" costComponentTypeId="EST_STD_MAT_COST" productId="MAT_B_COST" fromDate="2005-12-31 00:01:00.0" costUomId="USD" cost="7"/>
|
|
<!-- ################################# -->
|
|
<!-- Bill of materials definition: -->
|
|
<ProductAssoc productId="PROD_COST" productIdTo="MAT_A_COST" productAssocTypeId="MANUF_COMPONENT" fromDate="2005-12-31 00:01:00.0" sequenceNum="10" quantity="2.0"/>
|
|
<ProductAssoc productId="PROD_COST" productIdTo="MAT_B_COST" productAssocTypeId="MANUF_COMPONENT" fromDate="2005-12-31 00:01:00.0" sequenceNum="20" quantity="3.0"/>
|
|
<!-- ################################# -->
|
|
<!-- Product Routing definition: -->
|
|
<!-- this routing is composed of one task -->
|
|
<!-- the task is executed in the fixed asset WORKCENTER_COST; the setup time is 10 minutes (600000 milliseconds); the unit task time is 5 minutes (300000 milliseconds) -->
|
|
<WorkEffort workEffortId="ROUTING_COST" workEffortTypeId="ROUTING" currentStatusId="ROU_ACTIVE" workEffortName="Demo Routing for Costing" description="Demo Routing for Costing" revisionNumber="1" quantityToProduce="0"/>
|
|
<WorkEffort workEffortId="TASK_COST" workEffortTypeId="ROU_TASK" workEffortPurposeTypeId="ROU_ASSEMBLING" currentStatusId="ROU_ACTIVE" workEffortName="Demo Routing Task for Costing" description="Demo Routing Task for Costing" revisionNumber="1" fixedAssetId="WORKCENTER_COST" estimatedMilliSeconds="300000" estimatedSetupMillis="600000"/>
|
|
<WorkEffortAssoc workEffortIdFrom="ROUTING_COST" workEffortIdTo="TASK_COST" workEffortAssocTypeId="ROUTING_COMPONENT" sequenceNum="10" fromDate="2005-12-31 00:01:00.0"/>
|
|
<WorkEffortGoodStandard workEffortId="ROUTING_COST" productId="PROD_COST" workEffortGoodStdTypeId="ROU_PROD_TEMPLATE" statusId="WEGS_CREATED" fromDate="2005-12-31 00:01:00.0"/>
|
|
<!-- Cost information for the task -->
|
|
<!-- This is the cost derived from fixed assets' usage; variableCost is per minute (perMilliSeconds=60000) -->
|
|
<CostComponentCalc costComponentCalcId="EXAMPLE_COST" description="Example costs information" currencyUomId="USD" fixedCost="50" variableCost="10" perMilliSecond="60000"/>
|
|
<WorkEffortCostCalc workEffortId="TASK_COST" costComponentTypeId="ROUTE_COST" costComponentCalcId="EXAMPLE_COST" fromDate="2005-12-31 00:01:00.0"/>
|
|
</entity-engine-xml>
|