src/org/openbravo/erpCommon/ad_reports/ReportProductionCostSubreport.xml
author David Baz Fayos <david.baz@openbravo.com>
Tue, 27 May 2008 15:26:10 +0000
changeset 1044 8691bbc94032
parent 0 0247c26f10c6
child 6701 690d2af86089
permissions -rw-r--r--
Removed old frame parameter of windowTableId
carlos@0
     1
<?xml version="1.0" encoding="UTF-8"?>
carlos@0
     2
<!--
carlos@0
     3
*************************************************************************
carlos@0
     4
* The contents of this file are subject to the Openbravo  Public  License
carlos@0
     5
* Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
carlos@0
     6
* Version 1.1  with a permitted attribution clause; you may not  use this
carlos@0
     7
* file except in compliance with the License. You  may  obtain  a copy of
carlos@0
     8
* the License at http://www.openbravo.com/legal/license.html 
carlos@0
     9
* Software distributed under the License  is  distributed  on  an "AS IS"
carlos@0
    10
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
carlos@0
    11
* License for the specific  language  governing  rights  and  limitations
carlos@0
    12
* under the License. 
carlos@0
    13
* The Original Code is Openbravo ERP. 
carlos@0
    14
* The Initial Developer of the Original Code is Openbravo SL 
carlos@0
    15
* All portions are Copyright (C) 2001-2006 Openbravo SL 
carlos@0
    16
* All Rights Reserved. 
carlos@0
    17
* Contributor(s):  ______________________________________.
carlos@0
    18
************************************************************************
carlos@0
    19
-->
carlos@0
    20
<REPORT>
carlos@0
    21
  <template file="ReportProductionCostSubreport.srpt"/>
carlos@0
    22
  <PARAMETER name="param2" id="param2" default="2"/>
carlos@0
    23
carlos@0
    24
  <structure name="structureMaterial">
carlos@0
    25
carlos@0
    26
    <FIELD id="fieldLevelBlanckMaterial" attribute="width" replace="xx">levelBlanck</FIELD>
carlos@0
    27
    <FIELD id="fieldLevelNameMaterial" attribute="width" replace="jj">levelName</FIELD>
carlos@0
    28
    <FIELD id="fieldNameMaterial">name</FIELD>
carlos@0
    29
    <FIELD id="fieldIdMaterial" attribute="onClick" replace="xx">id</FIELD>
carlos@0
    30
    <FIELD id="fieldIdMaterial" attribute="onClick" replace="yy">identifier</FIELD>
carlos@0
    31
    <FIELD id="fieldIdMaterial" attribute="onClick" replace="zz">levelid</FIELD>
carlos@0
    32
    <FIELD id="fieldConsumedPerUnitMaterial" format="euroInform">consumedPerUnit</FIELD>
carlos@0
    33
    <FIELD id="fieldCostPerUnitMaterial" format="euroInform">costPerUnit</FIELD>
carlos@0
    34
    <FIELD id="fieldConsumedPerUnitStdMaterial" format="euroInform">consumedPerUnitStd</FIELD>
carlos@0
    35
    <FIELD id="fieldCostPerUnitStdMaterial" format="euroInform">costPerUnitStd</FIELD>
carlos@0
    36
    <FIELD id="fieldRealCostMaterial" format="euroInform">realunitcost</FIELD>
carlos@0
    37
    <FIELD id="fieldStandardCostMaterial" format="euroInform">standarunitcost</FIELD>
carlos@0
    38
carlos@0
    39
  <FIELD id="fieldLevelId">levelid</FIELD>
carlos@0
    40
  <FUNCTION id="fieldLevelMaterial" name="MODULE" arg1="fieldLevelId" arg2="param2" format="integerEdition" attribute="class" replace="1"/>
carlos@0
    41
   <!--FIELD id="fieldLevelNameMaterial" attribute="class">className</FIELD>
carlos@0
    42
    <FIELD id="fieldConsumedPerUnitMaterial" attribute="class">className</FIELD>
carlos@0
    43
    <FIELD id="fieldCostPerUnitMaterial" attribute="class">className</FIELD>
carlos@0
    44
    <FIELD id="fieldConsumedPerUnitStdMaterial" attribute="class">className</FIELD>
carlos@0
    45
    <FIELD id="fieldCostPerUnitStdMaterial" attribute="class">className</FIELD>
carlos@0
    46
    <FIELD id="fieldRealCostMaterial" attribute="class">className</FIELD>
carlos@0
    47
    <FIELD id="fieldStandardCostMaterial" attribute="class">className</FIELD-->
carlos@0
    48
carlos@0
    49
    <FIELD id="buttonTreexyz" attribute="class">buttonClass</FIELD>
carlos@0
    50
    <FIELD id="buttonTreexyz" attribute="id" replace="xyz">identifier</FIELD>
carlos@0
    51
    <FIELD id="returnTextxyz" attribute="id" replace="xyz">identifier</FIELD>
carlos@0
    52
carlos@0
    53
    <!--FUNCTION id="fieldRealCostMaterial" name="MULTIPLY" arg1="fieldConsumedPerUnitMaterial" arg2="fieldCostPerUnitMaterial" format="euroInform"/>
carlos@0
    54
  <FUNCTION id="fieldStandardCostMaterial" name="MULTIPLY" arg1="fieldConsumedPerUnitStdMaterial" arg2="fieldCostPerUnitStdMaterial" format="euroInform"/>
carlos@0
    55
carlos@0
    56
  <FUNCTION id="fieldRealConsumedMaterialAux" name="SUM" attribute="value" format="euroInform">consumedPerUnit</FUNCTION>
carlos@0
    57
  <FUNCTION id="fieldRealCostMaterialAux" name="SUM" attribute="value" format="euroInform">costPerUnit</FUNCTION>
carlos@0
    58
  <FUNCTION id="fieldStandardConsumedMaterialAux" name="SUM" attribute="value" format="euroInform">consumedPerUnitStd</FUNCTION>
carlos@0
    59
  <FUNCTION id="fieldStandardCostMaterialAux" name="SUM" attribute="value" format="euroInform">costPerUnitStd</FUNCTION-->
carlos@0
    60
carlos@0
    61
  <FUNCTION id="fieldRealCostMaterialTotal" name="SUM" format="euroInform">realunitcost</FUNCTION>
carlos@0
    62
  <FUNCTION id="fieldStandardCostMaterialTotal" name="SUM" format="euroInform">standarunitcost</FUNCTION>
carlos@0
    63
carlos@0
    64
  <SECTION id="sectionMaterial"/>
carlos@0
    65
</structure>
carlos@0
    66
carlos@0
    67
carlos@0
    68
<structure name="structureMachine">
carlos@0
    69
  
carlos@0
    70
  <FIELD id="fieldLevelBlanckMachine" attribute="width" replace="xx">levelBlanck</FIELD>
carlos@0
    71
  <FIELD id="fieldLevelNameMachine" attribute="width" replace="jj">levelName</FIELD>
carlos@0
    72
  <FIELD id="fieldNameMachine">name</FIELD>
carlos@0
    73
  <FIELD id="fieldIdMachine" attribute="value">id</FIELD>
carlos@0
    74
  <FIELD id="fieldCostPerUnitMachine" format="euroInform">costPerUnit</FIELD>
carlos@0
    75
  <FIELD id="fieldCostPerUnitStdMachine" format="euroInform">costPerUnitStd</FIELD>
carlos@0
    76
carlos@0
    77
  <FIELD id="fieldLevelId">levelid</FIELD>
carlos@0
    78
  <FUNCTION id="fieldLevelMachine" name="MODULE" arg1="fieldLevelId" arg2="param2" format="integerEdition" attribute="class" replace="1"/>
carlos@0
    79
  <!--FIELD id="fieldLevelNameMachine" attribute="class">className</FIELD>
carlos@0
    80
  <FIELD id="fieldConsumedPerUnitMachine" attribute="class">className</FIELD>
carlos@0
    81
  <FIELD id="fieldCostPerUnitMachine" attribute="class">className</FIELD>
carlos@0
    82
  <FIELD id="fieldConsumedPerUnitStdMachine" attribute="class">className</FIELD>
carlos@0
    83
  <FIELD id="fieldCostPerUnitStdMachine" attribute="class">className</FIELD>
carlos@0
    84
  <FIELD id="fieldRealCostMachine" attribute="class">className</FIELD>
carlos@0
    85
  <FIELD id="fieldStandardCostMachine" attribute="class">className</FIELD-->
carlos@0
    86
carlos@0
    87
  <!--FIELD id="buttonTreeMachinezxy" attribute="class">buttonClass</FIELD>
carlos@0
    88
<FIELD id="buttonTreeMachinezxy" attribute="id" replace="zxy">id</FIELD>
carlos@0
    89
<FIELD id="returnTextMachinezxy" attribute="id" replace="zxy">id</FIELD-->
carlos@0
    90
carlos@0
    91
<!--FUNCTION id="fieldRealCostMachine" name="MULTIPLY" arg1="fieldConsumedPerUnitMachine" arg2="fieldCostPerUnitMachine" format="euroInform"/>
carlos@0
    92
     <FUNCTION id="fieldStandardCostMachine" name="MULTIPLY" arg1="fieldConsumedPerUnitStdMachine" arg2="fieldCostPerUnitStdMachine" format="euroInform"/>
carlos@0
    93
     <FUNCTION id="fieldRealCostMachineAux1" name="SUM">consumedPerUnit</FIELD>
carlos@0
    94
     <FUNCTION id="fieldRealCostMachineAux2" name="SUM">costPerUnit</FIELD>
carlos@0
    95
     <FUNCTION id="fieldRealCostMachineAux3" name="SUM">consumedPerUnitStd</FIELD>
carlos@0
    96
     <FUNCTION id="fieldRealCostMachineAux4" name="SUM">costPerUnitStd</FIELD>
carlos@0
    97
carlos@0
    98
     <FUNCTION id="fieldRealCostMachineTotal" name="MULTIPLY" arg1="fieldRealCostMachineAux1" arg2="fieldRealCostMachineAux2"/>
carlos@0
    99
     <FUNCTION id="fieldStandardCostMachineTotal" name="MULTIPLY" arg1="fieldRealCostMachineAux3" arg2="fieldRealCostMachineAux4"/-->
carlos@0
   100
carlos@0
   101
       <SECTION id="sectionMachine"/>
carlos@0
   102
     </structure>
carlos@0
   103
carlos@0
   104
     <structure name="structureIndirect">
carlos@0
   105
       <FIELD id="fieldLevelBlanckIndirect" attribute="width" replace="xx">levelBlanck</FIELD>
carlos@0
   106
       <FIELD id="fieldLevelNameIndirect" attribute="width" replace="jj">levelName</FIELD>
carlos@0
   107
       <FIELD id="fieldNameIndirect">name</FIELD>
carlos@0
   108
       <FIELD id="fieldIdIndirect" attribute="value">id</FIELD>
carlos@0
   109
       <FIELD id="fieldCostPerUnitIndirect" format="euroInform">costPerUnit</FIELD>
carlos@0
   110
       <FIELD id="fieldCostPerUnitStdIndirect" format="euroInform">costPerUnitStd</FIELD>
carlos@0
   111
carlos@0
   112
  <FIELD id="fieldLevelId">levelid</FIELD>
carlos@0
   113
  <FUNCTION id="fieldLevelIndirect" name="MODULE" arg1="fieldLevelId" arg2="param2" format="integerEdition" attribute="class" replace="1"/>
carlos@0
   114
       <!--FIELD id="fieldLevelNameIndirect" attribute="class">className</FIELD>
carlos@0
   115
       <FIELD id="fieldConsumedPerUnitIndirect" attribute="class">className</FIELD>
carlos@0
   116
       <FIELD id="fieldCostPerUnitIndirect" attribute="class">className</FIELD>
carlos@0
   117
       <FIELD id="fieldConsumedPerUnitStdIndirect" attribute="class">className</FIELD>
carlos@0
   118
       <FIELD id="fieldCostPerUnitStdIndirect" attribute="class">className</FIELD>
carlos@0
   119
       <FIELD id="fieldRealCostIndirect" attribute="class">className</FIELD>
carlos@0
   120
       <FIELD id="fieldStandardCostIndirect" attribute="class">className</FIELD-->
carlos@0
   121
carlos@0
   122
       <!--FIELD id="buttonTreeIndirectjpq" attribute="class">buttonClass</FIELD>
carlos@0
   123
     <FIELD id="buttonTreeIndirectjpq" attribute="id" replace="jpq">id</FIELD>
carlos@0
   124
     <FIELD id="returnTextIndirectjpq" attribute="id" replace="jpq">id</FIELD-->
carlos@0
   125
carlos@0
   126
     <!--FUNCTION id="fieldRealCostIndirect" name="MULTIPLY" arg1="fieldConsumedPerUnitIndirect" arg2="fieldCostPerUnitIndirect" format="euroInform"/>
carlos@0
   127
   <FUNCTION id="fieldStandardCostIndirect" name="MULTIPLY" arg1="fieldConsumedPerUnitStdIndirect" arg2="fieldCostPerUnitStdIndirect" format="euroInform"/>
carlos@0
   128
carlos@0
   129
   <FUNCTION id="fieldRealCostIndirectAux1" name="SUM">consumedPerUnit</FIELD>
carlos@0
   130
   <FUNCTION id="fieldRealCostIndirectAux2" name="SUM">costPerUnit</FIELD>
carlos@0
   131
   <FUNCTION id="fieldRealCostIndirectAux3" name="SUM">consumedPerUnitStd</FIELD>
carlos@0
   132
   <FUNCTION id="fieldRealCostIndirectAux4" name="SUM">costPerUnitStd</FIELD>
carlos@0
   133
carlos@0
   134
   <FUNCTION id="fieldRealCostIndirectTotal" name="MULTIPLY" arg1="fieldRealCostIndirectAux1" arg2="fieldRealCostIndirectAux2"/>
carlos@0
   135
   <FUNCTION id="fieldStandardCostIndirectTotal" name="MULTIPLY" arg1="fieldRealCostIndirectAux3" arg2="fieldRealCostIndirectAux4"/-->
carlos@0
   136
carlos@0
   137
     <SECTION id="sectionIndirect"/>
carlos@0
   138
   </structure>
carlos@0
   139
carlos@0
   140
   <structure name="structureEmployee">
carlos@0
   141
     <FIELD id="fieldLevelBlanckEmployee" attribute="width" replace="xx">levelBlanck</FIELD>
carlos@0
   142
     <FIELD id="fieldLevelNameEmployee" attribute="width" replace="jj">levelName</FIELD>
carlos@0
   143
     <FIELD id="fieldNameEmployee">name</FIELD>
carlos@0
   144
     <FIELD id="fieldIdEmployee" attribute="value">id</FIELD>
carlos@0
   145
     <FIELD id="fieldCostPerUnitEmployee" format="euroInform">costPerUnit</FIELD>
carlos@0
   146
     <FIELD id="fieldCostPerUnitStdEmployee" format="euroInform">costPerUnitStd</FIELD>
carlos@0
   147
carlos@0
   148
  <FIELD id="fieldLevelId">levelid</FIELD>
carlos@0
   149
  <!--FUNCTION id="funcLevelEmployee" name="MODULE" arg1="fieldLevelId" arg2="param2" format="integerEdition" attribute="class" replace="1"/-->
carlos@0
   150
     <!--FIELD id="fieldLevelNameEmployee" attribute="class">className</FIELD>
carlos@0
   151
     <FIELD id="fieldConsumedPerUnitEmployee" attribute="class">className</FIELD>
carlos@0
   152
     <FIELD id="fieldCostPerUnitEmployee" attribute="class">className</FIELD>
carlos@0
   153
     <FIELD id="fieldConsumedPerUnitStdEmployee" attribute="class">className</FIELD>
carlos@0
   154
     <FIELD id="fieldCostPerUnitStdEmployee" attribute="class">className</FIELD>
carlos@0
   155
     <FIELD id="fieldRealCostEmployee" attribute="class">className</FIELD>
carlos@0
   156
     <FIELD id="fieldStandardCostEmployee" attribute="class">className</FIELD-->
carlos@0
   157
carlos@0
   158
     <!--FIELD id="buttonTreeEmployeejhq" attribute="class">buttonClass</FIELD>
carlos@0
   159
   <FIELD id="buttonTreeEmployeejhq" attribute="id" replace="jhq">id</FIELD>
carlos@0
   160
   <FIELD id="returnTextEmployeejhq" attribute="id" replace="jhq">id</FIELD-->
carlos@0
   161
carlos@0
   162
   <!--FUNCTION id="fieldRealCostEmployee" name="MULTIPLY" arg1="fieldConsumedPerUnitEmployee" arg2="fieldCostPerUnitEmployee" format="euroInform"/>
carlos@0
   163
 <FUNCTION id="fieldStandardCostEmployee" name="MULTIPLY" arg1="fieldConsumedPerUnitStdEmployee" arg2="fieldCostPerUnitStdEmployee" format="euroInform"/>
carlos@0
   164
carlos@0
   165
 <FUNCTION id="fieldRealCostEmployeeAux1" name="SUM">consumedPerUnit</FIELD>
carlos@0
   166
 <FUNCTION id="fieldRealCostEmployeeAux2" name="SUM">costPerUnit</FIELD>
carlos@0
   167
 <FUNCTION id="fieldRealCostEmployeeAux3" name="SUM">consumedPerUnitStd</FIELD>
carlos@0
   168
 <FUNCTION id="fieldRealCostEmployeeAux4" name="SUM">costPerUnitStd</FIELD>
carlos@0
   169
carlos@0
   170
 <FUNCTION id="fieldRealCostEmployeeTotal" name="MULTIPLY" arg1="fieldRealCostEmployeeAux1" arg2="fieldRealCostEmployeeAux2"/>
carlos@0
   171
 <FUNCTION id="fieldStandardCostEmployeeTotal" name="MULTIPLY" arg1="fieldRealCostEmployeeAux3" arg2="fieldRealCostEmployeeAux4"/-->
carlos@0
   172
carlos@0
   173
   <SECTION id="sectionEmployee"/>
carlos@0
   174
 </structure>
carlos@0
   175
   <structure name="structureCostCenter">
carlos@0
   176
     <FIELD id="fieldLevelBlanckCostCenter" attribute="width" replace="xx">levelBlanck</FIELD>
carlos@0
   177
     <FIELD id="fieldLevelNameCostCenter" attribute="width" replace="jj">levelName</FIELD>
carlos@0
   178
     <FIELD id="fieldNameCostCenter">name</FIELD>
carlos@0
   179
     <FIELD id="fieldIdCostCenter" attribute="value">id</FIELD>
carlos@0
   180
     <FIELD id="fieldCostPerUnitCostCenter" format="euroInform">costPerUnit</FIELD>
carlos@0
   181
     <FIELD id="fieldCostPerUnitStdCostCenter" format="euroInform">costPerUnitStd</FIELD>
carlos@0
   182
carlos@0
   183
  <FIELD id="fieldLevelId">levelid</FIELD>
carlos@0
   184
  <!--FUNCTION id="funcLevelCostCenter" name="MODULE" arg1="fieldLevelId" arg2="param2" format="integerEdition" attribute="class" replace="1"/-->
carlos@0
   185
     <!--FIELD id="fieldLevelNameCostCenter" attribute="class">className</FIELD>
carlos@0
   186
     <FIELD id="fieldConsumedPerUnitCostCenter" attribute="class">className</FIELD>
carlos@0
   187
     <FIELD id="fieldCostPerUnitCostCenter" attribute="class">className</FIELD>
carlos@0
   188
     <FIELD id="fieldConsumedPerUnitStdCostCenter" attribute="class">className</FIELD>
carlos@0
   189
     <FIELD id="fieldCostPerUnitStdCostCenter" attribute="class">className</FIELD>
carlos@0
   190
     <FIELD id="fieldRealCostCostCenter" attribute="class">className</FIELD>
carlos@0
   191
     <FIELD id="fieldStandardCostCostCenter" attribute="class">className</FIELD-->
carlos@0
   192
carlos@0
   193
     <!--FIELD id="buttonTreeCostCenterjhq" attribute="class">buttonClass</FIELD>
carlos@0
   194
   <FIELD id="buttonTreeCostCenterjhq" attribute="id" replace="jhq">id</FIELD>
carlos@0
   195
   <FIELD id="returnTextCostCenterjhq" attribute="id" replace="jhq">id</FIELD-->
carlos@0
   196
carlos@0
   197
   <!--FUNCTION id="fieldRealCostCostCenter" name="MULTIPLY" arg1="fieldConsumedPerUnitCostCenter" arg2="fieldCostPerUnitCostCenter" format="euroInform"/>
carlos@0
   198
 <FUNCTION id="fieldStandardCostCostCenter" name="MULTIPLY" arg1="fieldConsumedPerUnitStdCostCenter" arg2="fieldCostPerUnitStdCostCenter" format="euroInform"/>
carlos@0
   199
carlos@0
   200
 <FUNCTION id="fieldRealCostCostCenterAux1" name="SUM">consumedPerUnit</FIELD>
carlos@0
   201
 <FUNCTION id="fieldRealCostCostCenterAux2" name="SUM">costPerUnit</FIELD>
carlos@0
   202
 <FUNCTION id="fieldRealCostCostCenterAux3" name="SUM">consumedPerUnitStd</FIELD>
carlos@0
   203
 <FUNCTION id="fieldRealCostCostCenterAux4" name="SUM">costPerUnitStd</FIELD>
carlos@0
   204
carlos@0
   205
 <FUNCTION id="fieldRealCostCostCenterTotal" name="MULTIPLY" arg1="fieldRealCostCostCenterAux1" arg2="fieldRealCostCostCenterAux2"/>
carlos@0
   206
 <FUNCTION id="fieldStandardCostCostCenterTotal" name="MULTIPLY" arg1="fieldRealCostCostCenterAux3" arg2="fieldRealCostCostCenterAux4"/-->
carlos@0
   207
carlos@0
   208
   <SECTION id="sectionCostCenter"/>
carlos@0
   209
 </structure>
carlos@0
   210
carlos@0
   211
 <DISCARD id="discard"/>
carlos@0
   212
</REPORT>