Skip to content

Commit

Permalink
Improved: Used cache while fetching parent product detail (#52).
Browse files Browse the repository at this point in the history
  • Loading branch information
ravilodhi committed Jan 21, 2025
1 parent f4e684e commit 69f43a1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions service/co/hotwax/cycleCount/InventoryCountServices.xml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,10 @@
<set field="itemDetail.acceptedByUserLoginId" from="itemStatusHistory?.first?.changeByUserLoginId"/>

<!-- fetch the Parent Product details -->
<entity-find entity-name="org.apache.ofbiz.product.product.ProductAssocAndFrom" list="parentProductDetails">
<entity-find entity-name="org.apache.ofbiz.product.product.ProductAssocAndFrom" list="parentProductDetails" cache="true">
<econdition field-name="productIdTo" from="invCountImpItem.productId"/>
<econdition field-name="productAssocTypeId" value="PRODUCT_VARIANT"/>
<date-filter/>
<select-field field-name="productId,productName"/>
</entity-find>
<set field="itemDetail.parentProductId" from="parentProductDetails?.first?.productId"/>
<set field="itemDetail.parentProductName" from="parentProductDetails?.first?.productName"/>
Expand Down

0 comments on commit 69f43a1

Please sign in to comment.