Author: jleroux
Date: Thu Jan 4 13:51:47 2007
New Revision: 492767
URL:
http://svn.apache.org/viewvc?view=rev&rev=492767Log:
A patch from Anil K Patel "Improved find for existing FixedAsset based on David comments" (
https://issues.apache.org/jira/browse/OFBIZ-596).
Modified:
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml
Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml?view=diff&rev=492767&r1=492766&r2=492767==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/fixedasset/FixedAssetServices.xml Thu Jan 4 13:51:47 2007
@@ -39,8 +39,7 @@
<sequenced-id-to-env sequence-name="FixedAsset" env-name="newEntity.fixedAssetId"/>
<else>
<!-- check the Duplicate ID> -->
- <set from-field="parameters.fixedAssetId" field="findFixedAssetMap.fixedAssetId"/>
- <find-by-primary-key entity-name="FixedAsset" map-name="findFixedAssetMap" value-name="fixedAsset"/>
+ <entity-one entity-name="FixedAsset" value-name="fixedAsset"/>
<if-not-empty field-name="fixedAsset">
<add-error><fail-property resource="AccountingUiLabels" property="AccountingFixedAssetIdAlreadyExists"/></add-error>
<log level="info" message="${AccountingUiLabels.AccountingFixedAssetIdAlreadyExists} "/>