Disabled the ability to edit fixed asset assigned to a production run after the production run has been approved.

OFBIZ-343

git-svn-id: https://svn.apache.org/repos/asf/incubator/ofbiz/trunk@484955 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacopo Cappellato
2006-12-09 09:06:44 +00:00
parent d5dedef887
commit f26495c01c
2 changed files with 2 additions and 10 deletions
@@ -264,10 +264,6 @@ under the License.
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="boxtop">
<tr>
<td><div class="boxhead">${uiLabelMap.ManufacturingListOfProductionRunFixedAssets}</div></td>
<td align="right"><div class="tabletext">
<a href="<@ofbizUrl>ProductionRunDeclaration?productionRunId=${productionRunId}&amp;actionForm=AddFixedAsset</@ofbizUrl>" class="submenutextright">
${uiLabelMap.ManufacturingAddProductionRunFixedAssetAssign}</a>
</td>
</tr>
</table>
${ListProductionRunFixedAssetsWrapper.renderFormString(context)}
@@ -439,12 +439,8 @@ under the License.
<hyperlink description="${uiLabelMap.CommonEdit}" also-hidden="false"
target="EditProductionRun?actionForm=UpdateFixedAsset&amp;workEffortId=${workEffortId}&amp;fixedAssetId=${fixedAssetId}&amp;fromDate=${fromDate}&amp;productionRunId=${productionRunId}" />
</field>
<field name="editLink" title="" widget-style="smallSubmit"
use-when="&quot;${declarationScreen}&quot;.equals(&quot;Y&quot;)">
<hyperlink description="${uiLabelMap.CommonEdit}" also-hidden="false"
target="ProductionRunDeclaration?actionForm=UpdateFixedAsset&amp;workEffortId=${workEffortId}&amp;fixedAssetId=${fixedAssetId}&amp;fromDate=${fromDate}&amp;productionRunId=${productionRunId}" />
</field>
<field name="deleteLink" title="" widget-style="smallSubmit">
<field name="deleteLink" title="" widget-style="smallSubmit"
use-when="!&quot;${declarationScreen}&quot;.equals(&quot;Y&quot;)">
<hyperlink description="${uiLabelMap.CommonDelete}" also-hidden="false"
target="removeProductionRunFixedAsset?workEffortId=${workEffortId}&amp;fixedAssetId=${fixedAssetId}&amp;fromDate=${fromDate}&amp;productionRunId=${productionRunId}" />
</field>