You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2009/04/30 18:12:22 UTC
svn commit: r770308 - in /ofbiz/trunk:
applications/accounting/script/org/ofbiz/accounting/ledger/
applications/order/script/org/ofbiz/order/order/
applications/product/script/org/ofbiz/product/catalog/
applications/product/script/org/ofbiz/product/cat...
Author: adrianc
Date: Thu Apr 30 16:12:21 2009
New Revision: 770308
URL: http://svn.apache.org/viewvc?rev=770308&view=rev
Log:
Removed a bunch of nested expressions.
Modified:
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml
ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderDeliveryServices.xml
ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderSimpleMethods.xml
ofbiz/trunk/applications/product/script/org/ofbiz/product/catalog/CatalogServices.xml
ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml
ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/StockMoveServices.xml
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml
ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml
ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml
Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml?rev=770308&r1=770307&r2=770308&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/AcctgTransServices.xml Thu Apr 30 16:12:21 2009
@@ -243,7 +243,7 @@
<!-- also check if the glAccountId, amount, currencyUomId fields are all set -->
<iterate entry="acctgTransEntry" list="acctgTransEntryList">
<!-- we want to do this for each organizationPartyId, so only do this if we haven't already found the list for the current org -->
- <if-empty field="customTimePeriodListByOrganizationPartyIdMap.${acctgTransEntry.organizationPartyId}">
+ <if-empty field="customTimePeriodListByOrganizationPartyIdMap[acctgTransEntry.organizationPartyId]">
<clear-field field="findCustomTimePeriodCallMap"/>
<clear-field field="customTimePeriodList"/>
@@ -267,7 +267,7 @@
</iterate>
<!-- save this customTimePeriodList for the current entry for later use -->
- <set from-field="customTimePeriodList" field="customTimePeriodListByOrganizationPartyIdMap.${acctgTransEntry.organizationPartyId}"/>
+ <set from-field="customTimePeriodList" field="customTimePeriodListByOrganizationPartyIdMap[acctgTransEntry.organizationPartyId]"/>
</if-empty>
<if-empty field="acctgTransEntry.glAccountId">
<add-error><fail-message message="Gl account id is not set for [${acctgTransEntry.acctgTransEntrySeqId}] or mapping not found for account type ${acctgTransEntry.glAccountTypeId}"/></add-error>
@@ -382,7 +382,7 @@
<call-service service-name="updateGlAccountOrganization" in-map-name="updateGlAccountParams"/>
<!-- assemble the glAccountHistoryList, we will update all of these -->
- <set from-field="customTimePeriodListByOrganizationPartyIdMap.${acctgTransEntry.organizationPartyId}" field="customTimePeriodList"/>
+ <set from-field="customTimePeriodListByOrganizationPartyIdMap[acctgTransEntry.organizationPartyId]" field="customTimePeriodList"/>
<iterate entry="customTimePeriod" list="customTimePeriodList">
<entity-one entity-name="GlAccountHistory" value-field="glAccountHistory">
<field-map field-name="glAccountId" from-field="acctgTransEntry.glAccountId"/>
Modified: ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml?rev=770308&r1=770307&r2=770308&view=diff
==============================================================================
--- ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml (original)
+++ ofbiz/trunk/applications/accounting/script/org/ofbiz/accounting/ledger/GeneralLedgerServices.xml Thu Apr 30 16:12:21 2009
@@ -954,18 +954,18 @@
<calcop field="totalNetIncome" operator="add"><calcop field="amount" operator="get"/></calcop>
</calculate>
<if-compare field="isExpenseAccount" operator="equals" value="true" type="Boolean">
- <if-empty field="glAccountTotalsExpenseMap.${glAccount.glAccountId}">
- <set field="glAccountTotalsExpenseMap.${glAccount.glAccountId}" value="0.0" type="BigDecimal"/>
+ <if-empty field="glAccountTotalsExpenseMap[glAccount.glAccountId]">
+ <set field="glAccountTotalsExpenseMap[glAccount.glAccountId]" value="0.0" type="BigDecimal"/>
</if-empty>
- <calculate field="glAccountTotalsExpenseMap.${glAccount.glAccountId}">
- <calcop field="glAccountTotalsExpenseMap.${glAccount.glAccountId}" operator="add"><calcop field="amount" operator="get"/></calcop>
+ <calculate field="glAccountTotalsExpenseMap[glAccount.glAccountId]">
+ <calcop field="glAccountTotalsExpenseMap[glAccount.glAccountId]" operator="add"><calcop field="amount" operator="get"/></calcop>
</calculate>
<else>
- <if-empty field="glAccountTotalsProfitMap.${glAccount.glAccountId}">
- <set field="glAccountTotalsProfitMap.${glAccount.glAccountId}" value="0.0" type="BigDecimal"/>
+ <if-empty field="glAccountTotalsProfitMap[glAccount.glAccountId]">
+ <set field="glAccountTotalsProfitMap[glAccount.glAccountId]" value="0.0" type="BigDecimal"/>
</if-empty>
- <calculate field="glAccountTotalsProfitMap.${glAccount.glAccountId}">
- <calcop field="glAccountTotalsProfitMap.${glAccount.glAccountId}" operator="add"><calcop field="amount" operator="get"/></calcop>
+ <calculate field="glAccountTotalsProfitMap[glAccount.glAccountId]">
+ <calcop field="glAccountTotalsProfitMap[glAccount.glAccountId]" operator="add"><calcop field="amount" operator="get"/></calcop>
</calculate>
</else>
</if-compare>
@@ -1029,7 +1029,7 @@
<order-by field-name="glAccountId"/>
</entity-condition>
<iterate list="glAccountAndHistories" entry="glAccountAndHistory">
- <set field="glAccountTotalsAssetMap.${glAccountAndHistory.glAccountId}" from-field="glAccountAndHistory.endingBalance"/>
+ <set field="glAccountTotalsAssetMap[glAccountAndHistory.glAccountId]" from-field="glAccountAndHistory.endingBalance"/>
</iterate>
<entity-condition entity-name="GlAccountAndHistory" list="glAccountAndHistories">
<condition-list combine="and">
@@ -1040,7 +1040,7 @@
<order-by field-name="glAccountId"/>
</entity-condition>
<iterate list="glAccountAndHistories" entry="glAccountAndHistory">
- <set field="glAccountTotalsLiabilityMap.${glAccountAndHistory.glAccountId}" from-field="glAccountAndHistory.endingBalance"/>
+ <set field="glAccountTotalsLiabilityMap[glAccountAndHistory.glAccountId]" from-field="glAccountAndHistory.endingBalance"/>
</iterate>
<entity-condition entity-name="GlAccountAndHistory" list="glAccountAndHistories">
<condition-list combine="and">
@@ -1051,7 +1051,7 @@
<order-by field-name="glAccountId"/>
</entity-condition>
<iterate list="glAccountAndHistories" entry="glAccountAndHistory">
- <set field="glAccountTotalsEquityMap.${glAccountAndHistory.glAccountId}" from-field="glAccountAndHistory.endingBalance"/>
+ <set field="glAccountTotalsEquityMap[glAccountAndHistory.glAccountId]" from-field="glAccountAndHistory.endingBalance"/>
</iterate>
</if-not-empty>
@@ -1075,11 +1075,11 @@
<calcop field="amount" operator="negative"/>
</calculate>
</if-compare>
- <if-empty field="glAccountTotalsAssetMap.${acctgTransAndEntry.glAccountId}">
- <set field="glAccountTotalsAssetMap.${acctgTransAndEntry.glAccountId}" value="0.0" type="BigDecimal"/>
+ <if-empty field="glAccountTotalsAssetMap[acctgTransAndEntry.glAccountId]">
+ <set field="glAccountTotalsAssetMap[acctgTransAndEntry.glAccountId]" value="0.0" type="BigDecimal"/>
</if-empty>
- <calculate field="glAccountTotalsAssetMap.${acctgTransAndEntry.glAccountId}">
- <calcop field="glAccountTotalsAssetMap.${acctgTransAndEntry.glAccountId}" operator="add"><calcop field="amount" operator="get"/></calcop>
+ <calculate field="glAccountTotalsAssetMap[acctgTransAndEntry.glAccountId]">
+ <calcop field="glAccountTotalsAssetMap[acctgTransAndEntry.glAccountId]" operator="add"><calcop field="amount" operator="get"/></calcop>
</calculate>
</iterate>
<entity-condition entity-name="AcctgTransAndEntries" list="acctgTransAndEntries">
@@ -1102,11 +1102,11 @@
<calcop field="amount" operator="negative"/>
</calculate>
</if-compare>
- <if-empty field="glAccountTotalsLiabilityMap.${acctgTransAndEntry.glAccountId}">
- <set field="glAccountTotalsLiabilityMap.${acctgTransAndEntry.glAccountId}" value="0.0" type="BigDecimal"/>
+ <if-empty field="glAccountTotalsLiabilityMap[acctgTransAndEntry.glAccountId]">
+ <set field="glAccountTotalsLiabilityMap[acctgTransAndEntry.glAccountId]" value="0.0" type="BigDecimal"/>
</if-empty>
- <calculate field="glAccountTotalsLiabilityMap.${acctgTransAndEntry.glAccountId}">
- <calcop field="glAccountTotalsLiabilityMap.${acctgTransAndEntry.glAccountId}" operator="add"><calcop field="amount" operator="get"/></calcop>
+ <calculate field="glAccountTotalsLiabilityMap[acctgTransAndEntry.glAccountId]">
+ <calcop field="glAccountTotalsLiabilityMap[acctgTransAndEntry.glAccountId]" operator="add"><calcop field="amount" operator="get"/></calcop>
</calculate>
</iterate>
<entity-condition entity-name="AcctgTransAndEntries" list="acctgTransAndEntries">
@@ -1129,11 +1129,11 @@
<calcop field="amount" operator="negative"/>
</calculate>
</if-compare>
- <if-empty field="glAccountTotalsEquityMap.${acctgTransAndEntry.glAccountId}">
- <set field="glAccountTotalsEquityMap.${acctgTransAndEntry.glAccountId}" value="0.0" type="BigDecimal"/>
+ <if-empty field="glAccountTotalsEquityMap[acctgTransAndEntry.glAccountId]">
+ <set field="glAccountTotalsEquityMap[acctgTransAndEntry.glAccountId]" value="0.0" type="BigDecimal"/>
</if-empty>
- <calculate field="glAccountTotalsEquityMap.${acctgTransAndEntry.glAccountId}">
- <calcop field="glAccountTotalsEquityMap.${acctgTransAndEntry.glAccountId}" operator="add"><calcop field="amount" operator="get"/></calcop>
+ <calculate field="glAccountTotalsEquityMap[acctgTransAndEntry.glAccountId]">
+ <calcop field="glAccountTotalsEquityMap[acctgTransAndEntry.glAccountId]" operator="add"><calcop field="amount" operator="get"/></calcop>
</calculate>
</iterate>
@@ -1151,11 +1151,11 @@
<field-map field-name="glAccountTypeId" value="RETAINED_EARNINGS"/>
</entity-one>
<if-not-empty field="retainedEarningsAccount">
- <if-empty field="glAccountTotalsEquityMap.${retainedEarningsAccount.glAccountId}">
- <set field="glAccountTotalsEquityMap.${retainedEarningsAccount.glAccountId}" value="0.0" type="BigDecimal"/>
+ <if-empty field="glAccountTotalsEquityMap[retainedEarningsAccount.glAccountId]">
+ <set field="glAccountTotalsEquityMap[retainedEarningsAccount.glAccountId]" value="0.0" type="BigDecimal"/>
</if-empty>
- <calculate field="glAccountTotalsEquityMap.${retainedEarningsAccount.glAccountId}">
- <calcop field="glAccountTotalsEquityMap.${retainedEarningsAccount.glAccountId}" operator="add"><calcop field="totalNetIncome" operator="get"/></calcop>
+ <calculate field="glAccountTotalsEquityMap[retainedEarningsAccount.glAccountId]">
+ <calcop field="glAccountTotalsEquityMap[retainedEarningsAccount.glAccountId]" operator="add"><calcop field="totalNetIncome" operator="get"/></calcop>
</calculate>
</if-not-empty>
@@ -1201,50 +1201,50 @@
</call-service>
<iterate list="period2AssetBalancesList" entry="period2AssetBalance">
- <set field="assetBalancesMap.${period2AssetBalance.glAccountId}" from-field="period2AssetBalance.totalAmount"/>
+ <set field="assetBalancesMap[period2AssetBalance.glAccountId]" from-field="period2AssetBalance.totalAmount"/>
</iterate>
<iterate list="period1AssetBalancesList" entry="period1AssetBalance">
<set field="amount" from-field="period1AssetBalance.totalAmount"/>
<calculate field="amount">
<calcop field="amount" operator="negative"/>
</calculate>
- <if-empty field="assetBalancesMap.${period1AssetBalance.glAccountId}">
- <set field="assetBalancesMap.${period1AssetBalance.glAccountId}" value="0.0" type="BigDecimal"/>
+ <if-empty field="assetBalancesMap[period1AssetBalance.glAccountId]">
+ <set field="assetBalancesMap[period1AssetBalance.glAccountId]" value="0.0" type="BigDecimal"/>
</if-empty>
- <calculate field="assetBalancesMap.${period1AssetBalance.glAccountId}">
- <calcop field="assetBalancesMap.${period1AssetBalance.glAccountId}" operator="add"><calcop field="amount" operator="get"/></calcop>
+ <calculate field="assetBalancesMap[period1AssetBalance.glAccountId]">
+ <calcop field="assetBalancesMap[period1AssetBalance.glAccountId]" operator="add"><calcop field="amount" operator="get"/></calcop>
</calculate>
</iterate>
<iterate list="period2LiabilityBalancesList" entry="period2LiabilityBalance">
- <set field="liabilityBalancesMap.${period2LiabilityBalance.glAccountId}" from-field="period2LiabilityBalance.totalAmount"/>
+ <set field="liabilityBalancesMap[period2LiabilityBalance.glAccountId]" from-field="period2LiabilityBalance.totalAmount"/>
</iterate>
<iterate list="period1LiabilityBalancesList" entry="period1LiabilityBalance">
<set field="amount" from-field="period1LiabilityBalance.totalAmount"/>
<calculate field="amount">
<calcop field="amount" operator="negative"/>
</calculate>
- <if-empty field="liabilityBalancesMap.${period1LiabilityBalance.glAccountId}">
- <set field="liabilityBalancesMap.${period1LiabilityBalance.glAccountId}" value="0.0" type="BigDecimal"/>
+ <if-empty field="liabilityBalancesMap[period1LiabilityBalance.glAccountId]">
+ <set field="liabilityBalancesMap[period1LiabilityBalance.glAccountId]" value="0.0" type="BigDecimal"/>
</if-empty>
- <calculate field="liabilityBalancesMap.${period1LiabilityBalance.glAccountId}">
- <calcop field="liabilityBalancesMap.${period1LiabilityBalance.glAccountId}" operator="add"><calcop field="amount" operator="get"/></calcop>
+ <calculate field="liabilityBalancesMap[period1LiabilityBalance.glAccountId]">
+ <calcop field="liabilityBalancesMap[period1LiabilityBalance.glAccountId]" operator="add"><calcop field="amount" operator="get"/></calcop>
</calculate>
</iterate>
<iterate list="period2EquityBalancesList" entry="period2EquityBalance">
- <set field="equityBalancesMap.${period2EquityBalance.glAccountId}" from-field="period2EquityBalance.totalAmount"/>
+ <set field="equityBalancesMap[period2EquityBalance.glAccountId]" from-field="period2EquityBalance.totalAmount"/>
</iterate>
<iterate list="period1EquityBalancesList" entry="period1EquityBalance">
<set field="amount" from-field="period1EquityBalance.totalAmount"/>
<calculate field="amount">
<calcop field="amount" operator="negative"/>
</calculate>
- <if-empty field="equityBalancesMap.${period1EquityBalance.glAccountId}">
- <set field="equityBalancesMap.${period1EquityBalance.glAccountId}" value="0.0" type="BigDecimal"/>
+ <if-empty field="equityBalancesMap[period1EquityBalance.glAccountId]">
+ <set field="equityBalancesMap[period1EquityBalance.glAccountId]" value="0.0" type="BigDecimal"/>
</if-empty>
- <calculate field="equityBalancesMap.${period1EquityBalance.glAccountId}">
- <calcop field="equityBalancesMap.${period1EquityBalance.glAccountId}" operator="add"><calcop field="amount" operator="get"/></calcop>
+ <calculate field="equityBalancesMap[period1EquityBalance.glAccountId]">
+ <calcop field="equityBalancesMap[period1EquityBalance.glAccountId]" operator="add"><calcop field="amount" operator="get"/></calcop>
</calculate>
</iterate>
Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderDeliveryServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderDeliveryServices.xml?rev=770308&r1=770307&r2=770308&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderDeliveryServices.xml (original)
+++ ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderDeliveryServices.xml Thu Apr 30 16:12:21 2009
@@ -94,7 +94,7 @@
<set value="SHIPMENT_CLERK" field="shipmentClerkFindMap.roleTypeId"/>
<find-by-and entity-name="PartyRole" map="shipmentClerkFindMap" list="shipmentClerkRoles"/>
<iterate entry="shipmentClerkRole" list="shipmentClerkRoles">
- <set field="sendToPartyIdMap.${shipmentClerkRole.partyId}" from-field="shipmentClerkRole.partyId"/>
+ <set field="sendToPartyIdMap[shipmentClerkRole.partyId]" from-field="shipmentClerkRole.partyId"/>
</iterate>
<!-- go through all send to parties and get email addresses -->
Modified: ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderSimpleMethods.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderSimpleMethods.xml?rev=770308&r1=770307&r2=770308&view=diff
==============================================================================
--- ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderSimpleMethods.xml (original)
+++ ofbiz/trunk/applications/order/script/org/ofbiz/order/order/OrderSimpleMethods.xml Thu Apr 30 16:12:21 2009
@@ -85,11 +85,11 @@
<field-map field-name="orderId" from-field="parameters.orderId"/>
</entity-and>
<iterate list="shipmentReceipts" entry="receipt">
- <if-empty field="totalsMap.${receipt.orderItemSeqId}">
- <set field="totalsMap.${receipt.orderItemSeqId}" value="0" type="BigDecimal"/>
+ <if-empty field="totalsMap[receipt.orderItemSeqId]">
+ <set field="totalsMap[receipt.orderItemSeqId]" value="0" type="BigDecimal"/>
</if-empty>
- <calculate field="totalsMap.${receipt.orderItemSeqId}">
- <calcop field="totalsMap.${receipt.orderItemSeqId}" operator="add">
+ <calculate field="totalsMap[receipt.orderItemSeqId]">
+ <calcop field="totalsMap[receipt.orderItemSeqId]" operator="add">
<calcop field="receipt.quantityAccepted" operator="get"/>
<calcop field="receipt.quantityRejected" operator="get"/>
</calcop>
@@ -98,7 +98,7 @@
<set from-field="receipt.orderItemSeqId" field="newLookupMap.orderItemSeqId"/>
<find-by-primary-key entity-name="OrderItem" map="newLookupMap" value-field="orderItem"/>
<if-compare field="orderItem.statusId" operator="not-equals" value="ITEM_COMPLETED">
- <if-compare-field field="orderItem.quantity" to-field="totalsMap.${receipt.orderItemSeqId}" operator="less-equals" type="BigDecimal">
+ <if-compare-field field="orderItem.quantity" to-field="totalsMap[receipt.orderItemSeqId]" operator="less-equals" type="BigDecimal">
<!-- update the status for the item -->
<set field="orderItem.statusId" value="ITEM_COMPLETED"/>
<store-value value-field="orderItem"/>
Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/catalog/CatalogServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/catalog/CatalogServices.xml?rev=770308&r1=770307&r2=770308&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/catalog/CatalogServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/catalog/CatalogServices.xml Thu Apr 30 16:12:21 2009
@@ -197,7 +197,7 @@
<result-to-field result-name="fileNotExists" field="fileStatusMap.fileNotExists"/>
</call-service>
<set field="categoryId" from-field="category.productCategoryId"/>
- <set field="categoriesMap.${categoryId}" from-field="fileStatusMap"/>
+ <set field="categoriesMap[categoryId]" from-field="fileStatusMap"/>
</iterate>
<field-to-result field="categoriesMap" result-name="categoriesMap"/>
</if-not-empty>
Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml?rev=770308&r1=770307&r2=770308&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/category/CategoryServices.xml Thu Apr 30 16:12:21 2009
@@ -532,7 +532,7 @@
<log level="info" message="Applying feature [${productFeatureId}] of type [${productFeatureTypeId}] to product [${productId}]"/>
<set field="createPfaMap.productId" from-field="productId"/>
<set field="createPfaMap.productFeatureId" from-field="productFeatureId"/>
- <if-compare field="parameters.productFeatureSelectableByType.${productFeatureTypeId}" operator="equals" value="Y">
+ <if-compare field="parameters.productFeatureSelectableByType[productFeatureTypeId]" operator="equals" value="Y">
<set field="createPfaMap.productFeatureApplTypeId" value="SELECTABLE_FEATURE"/>
<set field="hasSelectableFeatures" value="Y"/>
<else>
Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml?rev=770308&r1=770307&r2=770308&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/InventoryServices.xml Thu Apr 30 16:12:21 2009
@@ -762,7 +762,7 @@
<!-- maintain a Set (in a Map) of orderIds that we have reallocated for, but only if they had some quantityNotReserved -->
<if-not-empty field="oisgir.quantityNotAvailable">
<if-compare field="oisgir.quantityNotAvailable" operator="greater" value="0" type="BigDecimal">
- <set field="touchedOrderIdMap.${oisgir.orderId}" value="Y"/>
+ <set field="touchedOrderIdMap[oisgir.orderId]" value="Y"/>
<log level="verbose" message="Adding ${oisgir.orderId} to touchedOrderIdMap"/>
</if-compare>
</if-not-empty>
@@ -789,7 +789,7 @@
</call-service>
<if-compare field="isBackOrder" operator="equals" value="false" type="Boolean">
- <set field="noLongerOnBackOrderIdMap.${touchedOrderId}" value="Y"/>
+ <set field="noLongerOnBackOrderIdMap[touchedOrderId]" value="Y"/>
</if-compare>
</iterate-map>
<if-not-empty field="noLongerOnBackOrderIdMap">
@@ -872,7 +872,7 @@
<!-- maintain a Set (in a Map) of orderIds that we have reallocated for, but only if they had some quantityNotReserved -->
<if-not-empty field="oisgir.quantityNotAvailable">
<if-compare field="oisgir.quantityNotAvailable" operator="greater" value="0" type="BigDecimal">
- <set field="touchedOrderIdMap.${oisgir.orderId}" value="Y"/>
+ <set field="touchedOrderIdMap[oisgir.orderId]" value="Y"/>
<log level="verbose" message="Adding ${oisgir.orderId} to touchedOrderIdMap"/>
</if-compare>
</if-not-empty>
@@ -905,7 +905,7 @@
</call-service>
<if-compare field="isBackOrder" operator="equals" value="false" type="Boolean">
- <set field="noLongerOnBackOrderIdMap.${touchedOrderId}" value="Y"/>
+ <set field="noLongerOnBackOrderIdMap[touchedOrderId]" value="Y"/>
</if-compare>
</iterate-map>
<if-not-empty field="noLongerOnBackOrderIdMap">
@@ -927,7 +927,7 @@
</condition-list>
</entity-condition>
<iterate list="oisgirais" entry="oisgir">
- <set field="orderItems.${oisgir.orderItemSeqId}" from-field="oisgir"/>
+ <set field="orderItems[oisgir.orderItemSeqId]" from-field="oisgir"/>
</iterate>
<now-timestamp field="nowTimestamp"/>
<iterate-map key="orderItemSeqId" value="oisgir" map="orderItems">
Modified: ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/StockMoveServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/StockMoveServices.xml?rev=770308&r1=770307&r2=770308&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/StockMoveServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/product/inventory/StockMoveServices.xml Thu Apr 30 16:12:21 2009
@@ -54,7 +54,7 @@
-->
<!-- start by making a Map where the locationSeqId is the key and the value is a List of orderItemShipGrpInvResAndItemLocation -->
<iterate entry="orderItemShipGrpInvResAndItemLocation" list="orderItemShipGrpInvResAndItemLocationList">
- <field-to-list field="orderItemShipGrpInvResAndItemLocation" list="oiirailByLocMap.${orderItemShipGrpInvResAndItemLocation.locationSeqId}"/>
+ <field-to-list field="orderItemShipGrpInvResAndItemLocation" list="oiirailByLocMap[orderItemShipGrpInvResAndItemLocation.locationSeqId]"/>
</iterate>
<!-- now get all info for each origin location -->
@@ -147,34 +147,34 @@
ProductFacilityLocation, move the restock quantity from ProductFacilityLocation
-->
<if-compare-field field="targetTotalAvailableToPromise" to-field="moveInfo.targetProductFacilityLocation.minimumStock" operator="less" type="BigDecimal">
- <if-empty field="targetLocationSimpleMoveQuantity.${moveInfo.targetProductFacilityLocation.locationSeqId}">
+ <if-empty field="targetLocationSimpleMoveQuantity[moveInfo.targetProductFacilityLocation.locationSeqId]">
<!-- if targetTotalAvailableToPromise is less than productFacilityLocation.minimumStock, move over the moveInfo.targetProductFacilityLocation.moveQuantity -->
- <!-- if trying to move more from the location than is there, find the difference and put it in targetLocationSimpleMoveQuantity.${moveInfo.targetProductFacilityLocation.locationSeqId} -->
+ <!-- if trying to move more from the location than is there, find the difference and put it in targetLocationSimpleMoveQuantity[moveInfo.targetProductFacilityLocation.locationSeqId] -->
<calculate field="moveInfo.totalQuantity">
<calcop field="moveInfo.totalQuantity" operator="add"><calcop field="moveInfo.targetProductFacilityLocation.moveQuantity" operator="get"/></calcop>
</calculate>
<else>
<!--
see if there is enough left for the full amount in
- targetLocationSimpleMoveQuantity.${moveInfo.targetProductFacilityLocation.locationSeqId},
+ targetLocationSimpleMoveQuantity[moveInfo.targetProductFacilityLocation.locationSeqId],
if not do whatever is available and put difference back in
- targetLocationSimpleMoveQuantity.${moveInfo.targetProductFacilityLocation.locationSeqId}
+ targetLocationSimpleMoveQuantity[moveInfo.targetProductFacilityLocation.locationSeqId]
-->
<calculate field="moveInfo.totalQuantity">
- <calcop field="moveInfo.totalQuantity" operator="add"><calcop field="targetLocationSimpleMoveQuantity.${moveInfo.targetProductFacilityLocation.locationSeqId}" operator="get"/></calcop>
+ <calcop field="moveInfo.totalQuantity" operator="add"><calcop field="targetLocationSimpleMoveQuantity[moveInfo.targetProductFacilityLocation.locationSeqId]" operator="get"/></calcop>
</calculate>
</else>
</if-empty>
<if-compare-field field="totalQuantityOnHand" to-field="moveInfo.totalQuantity" operator="less" type="BigDecimal">
- <calculate field="targetLocationSimpleMoveQuantity.${moveInfo.targetProductFacilityLocation.locationSeqId}">
+ <calculate field="targetLocationSimpleMoveQuantity[moveInfo.targetProductFacilityLocation.locationSeqId]">
<calcop field="moveInfo.totalQuantity" operator="subtract"><calcop field="totalQuantityOnHand" operator="get"/></calcop>
</calculate>
<set from-field="totalQuantityOnHand" field="moveInfo.totalQuantity"/>
</if-compare-field>
<!-- add it to the stockMoveHandled Map to keep track of minimumStock based transfers already done so they are not duplicated below -->
- <set value="Y" field="stockMoveHandled.${moveInfo.targetProductFacilityLocation.locationSeqId}"/>
+ <set value="Y" field="stockMoveHandled[moveInfo.targetProductFacilityLocation.locationSeqId]"/>
</if-compare-field>
</else>
</if-compare-field>
@@ -247,8 +247,8 @@
<if>
<condition>
<or>
- <if-empty field="stockMoveHandled.${productFacilityLocationQuantityTest.locationSeqId}"/>
- <if-compare field="stockMoveHandled.${productFacilityLocationQuantityTest.locationSeqId}" operator="not-equals" value="Y"/>
+ <if-empty field="stockMoveHandled[productFacilityLocationQuantityTest.locationSeqId]"/>
+ <if-compare field="stockMoveHandled[productFacilityLocationQuantityTest.locationSeqId]" operator="not-equals" value="Y"/>
</or>
</condition>
<then>
@@ -272,12 +272,12 @@
<!-- start by making a Map where the locationSeqId is the key and the value is a List of InventoryItemAndLocation -->
<clear-field field="InventoryItemAndLocationByLocMap"/>
<iterate entry="InventoryItemAndLocation" list="inventoryItemAndLocationList">
- <field-to-list field="InventoryItemAndLocation" list="InventoryItemAndLocationByLocMap.${InventoryItemAndLocation.locationSeqId}"/>
+ <field-to-list field="InventoryItemAndLocation" list="InventoryItemAndLocationByLocMap[InventoryItemAndLocation.locationSeqId]"/>
</iterate>
<clear-field field="locationSeqId"/>
<clear-field field="perLocationInventoryItemAndLocList"/>
<iterate-map key="locationSeqId" value="perLocationInventoryItemAndLocList" map="InventoryItemAndLocationByLocMap">
- <if-empty field="fromLocationTotalAvailableToPromise.${locationSeqId}">
+ <if-empty field="fromLocationTotalAvailableToPromise[locationSeqId]">
<calculate field="totalQuantityOnHand"><number value="0"/></calculate>
<calculate field="totalAvailableToPromise"><number value="0"/></calculate>
<iterate entry="inventoryItem" list="perLocationInventoryItemAndLocList">
@@ -289,7 +289,7 @@
</calculate>
</iterate>
<else>
- <set from-field="fromLocationTotalAvailableToPromise.${locationSeqId}" field="totalAvailableToPromise"/>
+ <set from-field="fromLocationTotalAvailableToPromise[locationSeqId]" field="totalAvailableToPromise"/>
</else>
</if-empty>
@@ -319,10 +319,10 @@
<calcop field="targetLocationMoveQuantity" operator="subtract"><calcop field="totalAvailableToPromise" operator="get"/></calcop>
</calculate>
<set from-field="totalAvailableToPromise" field="moveInfo.totalQuantity"/>
- <calculate field="fromLocationTotalAvailableToPromise.${locationSeqId}"><number value="0"/></calculate>
+ <calculate field="fromLocationTotalAvailableToPromise[locationSeqId]"><number value="0"/></calculate>
<else>
<set from-field="targetLocationMoveQuantity" field="moveInfo.totalQuantity"/>
- <calculate field="fromLocationTotalAvailableToPromise.${locationSeqId}">
+ <calculate field="fromLocationTotalAvailableToPromise[locationSeqId]">
<calcop field="totalAvailableToPromise" operator="subtract"><calcop field="targetLocationMoveQuantity" operator="get"/></calcop>
</calculate>
<calculate field="targetLocationMoveQuantity"><number value="0"/></calculate>
@@ -443,7 +443,7 @@
<clear-field field="oiirailByInvItemMap"/>
<log level="info" message="In processOisgirMoveByStatusInline orderItemShipGrpInvResAndItemLocationList=${orderItemShipGrpInvResAndItemLocationList}"/>
<iterate entry="orderItemShipGrpInvResAndItemLocation" list="orderItemShipGrpInvResAndItemLocationList">
- <field-to-list field="orderItemShipGrpInvResAndItemLocation" list="oiirailByInvItemMap.${orderItemShipGrpInvResAndItemLocation.inventoryItemId}"/>
+ <field-to-list field="orderItemShipGrpInvResAndItemLocation" list="oiirailByInvItemMap[orderItemShipGrpInvResAndItemLocation.inventoryItemId]"/>
</iterate>
<iterate-map key="inventoryItemId" value="orderItemShipGrpInvResAndItemLocationList" map="oiirailByInvItemMap">
Modified: ofbiz/trunk/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml?rev=770308&r1=770307&r2=770308&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/shipment/picklist/PicklistServices.xml Thu Apr 30 16:12:21 2009
@@ -453,27 +453,27 @@
<iterate entry="orderItemShipGrpInvRes" list="perItemResList">
<set from-field="orderItemShipGrpInvRes.inventoryItemId" field="inventoryItemId"/>
<!-- update reserved quantity per inventoryItem, keep track of orderItems this came from -->
- <set from-field="inventoryItems.${inventoryItemId}" field="inventoryItem"/>
+ <set from-field="inventoryItems[inventoryItemId]" field="inventoryItem"/>
<if-empty field="inventoryItem">
<entity-one entity-name="InventoryItem" value-field="inventoryItem"></entity-one>
- <set field="inventoryItems.${inventoryItemId}" from-field="inventoryItem"/>
+ <set field="inventoryItems[inventoryItemId]" from-field="inventoryItem"/>
</if-empty>
<if-compare-field field="inventoryItem.facilityId" to-field="parameters.facilityId" operator="equals">
<set field="perItemResListValid[]" from-field="orderItemShipGrpInvRes"/>
- <set field="inventoryItemOrderItemList" from-field="inventoryItemOrderItems.${inventoryItemId}"/>
+ <set field="inventoryItemOrderItemList" from-field="inventoryItemOrderItems[inventoryItemId]"/>
<set field="inventoryItemOrderItemList[]" from-field="orderItemAndShipGroupAssoc"/>
- <set field="inventoryItemOrderItems.${orderItemShipGrpInvRes.inventoryItemId}" from-field="inventoryItemOrderItemList"/>
+ <set field="inventoryItemOrderItems[orderItemShipGrpInvRes.inventoryItemId]" from-field="inventoryItemOrderItemList"/>
<clear-field field="inventoryItemOrderItemList"/>
- <if-not-empty field="inventoryItemQuantities.${inventoryItemId}">
- <calculate field="inventoryItemQuantities.${inventoryItemId}">
- <calcop field="inventoryItemQuantities.${inventoryItemId}" operator="add">
+ <if-not-empty field="inventoryItemQuantities[inventoryItemId]">
+ <calculate field="inventoryItemQuantities[inventoryItemId]">
+ <calcop field="inventoryItemQuantities[inventoryItemId]" operator="add">
<calcop field="orderItemShipGrpInvRes.quantity" operator="get"/>
</calcop>
</calculate>
<else>
- <set from-field="orderItemShipGrpInvRes.quantity" field="inventoryItemQuantities.${inventoryItemId}"/>
+ <set from-field="orderItemShipGrpInvRes.quantity" field="inventoryItemQuantities[inventoryItemId]"/>
</else>
</if-not-empty>
</if-compare-field>
@@ -536,7 +536,7 @@
<!-- warn if insufficient QOH for reserved amount -->
<iterate-map map="inventoryItemQuantities" key="inventoryItemId" value="quantityNeeded">
- <set from-field="inventoryItems.${inventoryItemId}" field="inventoryItem"/>
+ <set from-field="inventoryItems[inventoryItemId]" field="inventoryItem"/>
<if>
<condition>
<and>
@@ -992,7 +992,7 @@
<!-- Assemble the information per facility location for the pick sheet -->
<iterate entry="picklistBinInfo" list="picklistInfo.picklistBinInfoList">
- <set from-field="picklistBinInfo.picklistBin" field="picklistBinByIdMap.${picklistBinInfo.picklistBin.picklistBinId}"/>
+ <set from-field="picklistBinInfo.picklistBin" field="picklistBinByIdMap[picklistBinInfo.picklistBin.picklistBinId]"/>
<iterate entry="picklistItemInfo" list="picklistBinInfo.picklistItemInfoList">
<!--
@@ -1007,12 +1007,12 @@
-->
<if-not-empty field="picklistItemInfo.inventoryItemAndLocation.locationSeqId">
<make-value value-field="facilityLocation" entity-name="FacilityLocation" map="picklistItemInfo.inventoryItemAndLocation"/>
- <set from-field="facilityLocation" field="facilityLocationByLocationSeqIdMap.${facilityLocation.locationSeqId}"/>
+ <set from-field="facilityLocation" field="facilityLocationByLocationSeqIdMap[facilityLocation.locationSeqId]"/>
<clear-field field="picklistItemInfoTempList"/>
- <set field="picklistItemInfoTempList" from-field="picklistItemInfoListByLocationSeqIdMap.${facilityLocation.locationSeqId}"/>
+ <set field="picklistItemInfoTempList" from-field="picklistItemInfoListByLocationSeqIdMap[facilityLocation.locationSeqId]"/>
<set field="picklistItemInfoTempList[]" from-field="picklistItemInfo"/>
- <set field="picklistItemInfoListByLocationSeqIdMap.${facilityLocation.locationSeqId}" from-field="picklistItemInfoTempList"/>
+ <set field="picklistItemInfoListByLocationSeqIdMap[facilityLocation.locationSeqId]" from-field="picklistItemInfoTempList"/>
<else>
<!-- handle case where an InventoryItem is not associated with a location -->
<if-not-empty field="picklistItemInfo.orderItem.productId">
@@ -1021,7 +1021,7 @@
<entity-one entity-name="Product" value-field="productValueTemp" use-cache="true">
<field-map field-name="productId"/>
</entity-one>
- <set field="productByProductIdMap.${productId}" from-field="productValueTemp"/>
+ <set field="productByProductIdMap[productId]" from-field="productValueTemp"/>
<!--
<call-bsh><![CDATA[
@@ -1030,9 +1030,9 @@
-->
<clear-field field="picklistItemInfoTempList"/>
- <set field="picklistItemInfoTempList" from-field="picklistItemInfoListByProductIdMap.${productId}"/>
+ <set field="picklistItemInfoTempList" from-field="picklistItemInfoListByProductIdMap[productId]"/>
<set field="picklistItemInfoTempList[]" from-field="picklistItemInfo"/>
- <set field="picklistItemInfoListByProductIdMap.${productId}" from-field="picklistItemInfoTempList"/>
+ <set field="picklistItemInfoListByProductIdMap[productId]" from-field="picklistItemInfoTempList"/>
<!--
<call-bsh><![CDATA[
@@ -1065,7 +1065,7 @@
<iterate entry="facilityLocation" list="facilityLocationList">
<clear-field field="facilityLocationInfo"/>
<set from-field="facilityLocation" field="facilityLocationInfo.facilityLocation"/>
- <set from-field="picklistItemInfoListByLocationSeqIdMap.${facilityLocation.locationSeqId}" field="facilityLocationInfo.picklistItemInfoList"/>
+ <set from-field="picklistItemInfoListByLocationSeqIdMap[facilityLocation.locationSeqId]" field="facilityLocationInfo.picklistItemInfoList"/>
<!-- make the pickQuantity and quantityByPicklistBinIdMap -->
<iterate entry="picklistItemInfo" list="facilityLocationInfo.picklistItemInfoList">
@@ -1075,8 +1075,8 @@
</calcop>
</calculate>
- <calculate field="facilityLocationInfo.quantityByPicklistBinIdMap.${picklistItemInfo.picklistBin.picklistBinId}">
- <calcop field="facilityLocationInfo.quantityByPicklistBinIdMap.${picklistItemInfo.picklistBin.picklistBinId}" operator="add">
+ <calculate field="facilityLocationInfo.quantityByPicklistBinIdMap[picklistItemInfo.picklistBin.picklistBinId]">
+ <calcop field="facilityLocationInfo.quantityByPicklistBinIdMap[picklistItemInfo.picklistBin.picklistBinId]" operator="add">
<calcop field="picklistItemInfo.picklistItem.quantity" operator="get"/>
</calcop>
</calculate>
@@ -1097,7 +1097,7 @@
<!-- create the picklistBinInfoList from the quantityByPicklistBinIdMap -->
<iterate-map key="picklistBinId" value="quantity" map="facilityLocationInfo.quantityByPicklistBinIdMap">
<clear-field field="picklistBinInfo"/>
- <set from-field="picklistBinByIdMap.${picklistBinId}" field="picklistBinInfo.picklistBin"/>
+ <set from-field="picklistBinByIdMap[picklistBinId]" field="picklistBinInfo.picklistBin"/>
<set from-field="quantity" field="picklistBinInfo.quantity"/>
<set from-field="picklistBinInfo" field="facilityLocationInfo.picklistBinInfoList[]"/>
</iterate-map>
@@ -1118,7 +1118,7 @@
<iterate entry="product" list="productList">
<clear-field field="productInfo"/>
<set from-field="product" field="productInfo.product"/>
- <set from-field="picklistItemInfoListByProductIdMap.${product.productId}" field="productInfo.picklistItemInfoList"/>
+ <set from-field="picklistItemInfoListByProductIdMap[product.productId]" field="productInfo.picklistItemInfoList"/>
<!-- make the pickQuantity and quantityByPicklistBinIdMap -->
<iterate entry="picklistItemInfo" list="productInfo.picklistItemInfoList">
@@ -1127,8 +1127,8 @@
<calcop field="picklistItemInfo.picklistItem.quantity" operator="get"/>
</calculate>
- <calculate field="productInfo.quantityByPicklistBinIdMap.${picklistItemInfo.picklistBin.picklistBinId}">
- <calcop field="productInfo.quantityByPicklistBinIdMap.${picklistItemInfo.picklistBin.picklistBinId}" operator="add">
+ <calculate field="productInfo.quantityByPicklistBinIdMap[picklistItemInfo.picklistBin.picklistBinId]">
+ <calcop field="productInfo.quantityByPicklistBinIdMap[picklistItemInfo.picklistBin.picklistBinId]" operator="add">
<calcop field="picklistItemInfo.picklistItem.quantity" operator="get"/>
</calcop>
</calculate>
@@ -1137,7 +1137,7 @@
<!-- create the picklistBinInfoList from the quantityByPicklistBinIdMap -->
<iterate-map key="picklistBinId" value="quantity" map="productInfo.quantityByPicklistBinIdMap">
<clear-field field="picklistBinInfo"/>
- <set from-field="picklistBinByIdMap.${picklistBinId}" field="picklistBinInfo.picklistBin"/>
+ <set from-field="picklistBinByIdMap[picklistBinId]" field="picklistBinInfo.picklistBin"/>
<set from-field="quantity" field="picklistBinInfo.quantity"/>
<set from-field="picklistBinInfo" field="productInfo.picklistBinInfoList[]"/>
</iterate-map>
@@ -1282,18 +1282,18 @@
<!-- go through all quantities and get inventoryItem and facilityLocation -->
<iterate-map key="inventoryItemId" value="quantityNeeded" map="inventoryItemQuantities">
- <set from-field="inventoryItems.${inventoryItemId}" field="inventoryItem"/>
+ <set from-field="inventoryItems[inventoryItemId]" field="inventoryItem"/>
<!-- create a list of locations, then sort it, will have to create a reverse Map to go from location to inventory item -->
<clear-field field="facilityLocation"/>
<get-related-one value-field="inventoryItem" relation-name="FacilityLocation" to-value-field="facilityLocation"/>
<if-not-empty field="facilityLocation">
- <set from-field="facilityLocation" field="facilityLocationMap.${facilityLocation.locationSeqId}"/>
+ <set from-field="facilityLocation" field="facilityLocationMap[facilityLocation.locationSeqId]"/>
<!-- support multiple invnetoryItemIds per facilityLocation.locationSeqId -->
<clear-field field="inventoryItemIdList"/>
- <set from-field="inventoryItemsByLocation.${facilityLocation.locationSeqId}" field="inventoryItemIdList"/>
+ <set from-field="inventoryItemsByLocation[facilityLocation.locationSeqId]" field="inventoryItemIdList"/>
<set from-field="inventoryItemId" field="inventoryItemIdList[]"/>
- <set from-field="inventoryItemIdList" field="inventoryItemsByLocation.${facilityLocation.locationSeqId}"/>
+ <set from-field="inventoryItemIdList" field="inventoryItemsByLocation[facilityLocation.locationSeqId]"/>
<else>
<set from-field="inventoryItemId" field="noLocationInventoryItemIds[]"/>
</else>
@@ -1320,13 +1320,13 @@
<set from-field="facilityLocation" field="facilityLocationInfo.facilityLocation"/>
<!-- inventoryItemInfoList: facilityLocation, inventoryItem, orderItems, quantity, product, statusItems -->
- <set from-field="inventoryItemsByLocation.${facilityLocation.locationSeqId}" field="inventoryItemIdList"/>
+ <set from-field="inventoryItemsByLocation[facilityLocation.locationSeqId]" field="inventoryItemIdList"/>
<iterate entry="inventoryItemId" list="inventoryItemIdList">
<clear-field field="inventoryItemInfo"/>
<set from-field="facilityLocation" field="inventoryItemInfo.facilityLocation"/>
- <set from-field="inventoryItems.${inventoryItemId}" field="inventoryItemInfo.inventoryItem"/>
- <set from-field="inventoryItemOrderItems.${inventoryItemId}" field="inventoryItemInfo.orderItems"/>
- <set from-field="inventoryItemQuantities.${inventoryItemId}" field="inventoryItemInfo.quantity"/>
+ <set from-field="inventoryItems[inventoryItemId]" field="inventoryItemInfo.inventoryItem"/>
+ <set from-field="inventoryItemOrderItems[inventoryItemId]" field="inventoryItemInfo.orderItems"/>
+ <set from-field="inventoryItemQuantities[inventoryItemId]" field="inventoryItemInfo.quantity"/>
<get-related-one value-field="inventoryItemInfo.inventoryItem" relation-name="Product" to-value-field="inventoryItemInfo.product"/>
<get-related-one value-field="inventoryItemInfo.inventoryItem" relation-name="StatusItem" to-value-field="inventoryItemInfo.statusItem"/>
@@ -1362,8 +1362,8 @@
<!-- add all noLocationInventoryItemIds to inventoryItemInfoList with all entries except facilityLocation -->
<iterate entry="inventoryItemId" list="noLocationInventoryItemIds">
<set from-field="inventoryItems${inventoryItemId}" field="inventoryItemInfo.inventoryItem"/>
- <set from-field="inventoryItemOrderItems.${inventoryItemId}" field="inventoryItemInfo.orderItems"/>
- <set from-field="inventoryItemQuantities.${inventoryItemId}" field="inventoryItemInfo.quantity"/>
+ <set from-field="inventoryItemOrderItems[inventoryItemId]" field="inventoryItemInfo.orderItems"/>
+ <set from-field="inventoryItemQuantities[inventoryItemId]" field="inventoryItemInfo.quantity"/>
<get-related-one value-field="inventoryItemInfo.inventoryItem" relation-name="Product" to-value-field="inventoryItemInfo.product"/>
<get-related-one value-field="inventoryItemInfo.inventoryItem" relation-name="StatusItem" to-value-field="inventoryItemInfo.statusItem"/>
Modified: ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml?rev=770308&r1=770307&r2=770308&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml (original)
+++ ofbiz/trunk/applications/product/script/org/ofbiz/shipment/shipment/ShipmentServices.xml Thu Apr 30 16:12:21 2009
@@ -706,7 +706,7 @@
</entity-and>
<iterate entry="supplierAgentOrderRole" list="supplierAgentOrderRoles">
- <set from-field="supplierAgentOrderRole.partyId" field="sendToPartyIdMap.${supplierAgentOrderRole.partyId}"/>
+ <set from-field="supplierAgentOrderRole.partyId" field="sendToPartyIdMap[supplierAgentOrderRole.partyId]"/>
</iterate>
<!-- go through all send to parties and get email addresses -->
@@ -1434,7 +1434,7 @@
<!-- group orderItems (actually OrderItemAndShipGroupAssocs) by shipGroupSeqId in a Map with List values
This Map is actually used only for sales orders' shipments right now. -->
<iterate list="orderItemAndShipGroupAssocList" entry="orderItemAndShipGroupAssoc">
- <field-to-list field="orderItemAndShipGroupAssoc" list="orderItemListByShGrpMap.${orderItemAndShipGroupAssoc.shipGroupSeqId}"/>
+ <field-to-list field="orderItemAndShipGroupAssoc" list="orderItemListByShGrpMap[orderItemAndShipGroupAssoc.shipGroupSeqId]"/>
</iterate>
</simple-method>
@@ -1449,7 +1449,7 @@
<field-map field-name="statusId" value="ITEM_APPROVED"/>
</entity-and>
- <set from-field="orderItemListByShGrpMap.${orderItemShipGroup.shipGroupSeqId}" field="perShipGroupItemList"/>
+ <set from-field="orderItemListByShGrpMap[orderItemShipGroup.shipGroupSeqId]" field="perShipGroupItemList"/>
<!-- make sure we have something to ship -->
<if-empty field="perShipGroupItemList">
Modified: ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml?rev=770308&r1=770307&r2=770308&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml (original)
+++ ofbiz/trunk/framework/common/script/org/ofbiz/common/CommonServices.xml Thu Apr 30 16:12:21 2009
@@ -218,7 +218,7 @@
<property-to-field field="warningMsg" property="CommonVisualThemeInvalidRecord" resource="CommonUiLabels"/>
<log level="warning" message="${warningMsg}"/>
<else>
- <set field="themeResources.${resourceTypeEnumId}[]" from-field="resourceValue"/>
+ <set field="themeResources[resourceTypeEnumId][]" from-field="resourceValue"/>
</else>
</if-empty>
</iterate>