Bilgin,
thanks for the good catch: I just removed that line because it was
something not intended to be committed (I've implemented that stuff in a
different way, but forgot to remove that line).
Thanks for your help,
Jacopo
Bilgin Ibryam wrote:
Jacopo,
I noticed that in this commit you added this line to
updateInventoryItemFromDetail method:
<set field="inventoryItem.unitCost"
from-field="inventoryItemDetailSummary.unitCostTotal"/>
i think we should add also this:
Index: applications/product/entitydef/entitymodel.xml
===================================================================
--- applications/product/entitydef/entitymodel.xml (revision 603526)
+++ applications/product/entitydef/entitymodel.xml (working copy)
@@ -1313,6 +1313,7 @@
<alias entity-alias="IID" name="inventoryItemId" group-by="true"/>
<alias entity-alias="IID" name="availableToPromiseTotal"
field="availableToPromiseDiff" function="sum"/>
<alias entity-alias="IID" name="quantityOnHandTotal"
field="quantityOnHandDiff" function="sum"/>
+ <alias entity-alias="IID" name="unitCostTotal" field="unitCost"
function="sum"/>
</view-entity>
<view-entity entity-name="InventoryItemDetailForSum"
package-name="org.ofbiz.product.inventory"
title="Inventory Item And Inventory Item Detail for Summation View
Entity">
Bilgin