You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by Bilgin Ibryam <bi...@iguanait.com> on 2007/12/12 11:52:43 UTC

Re: svn commit: r599516 - in /ofbiz/trunk/applications/product: entitydef/entitymodel.xml script/org/ofbiz/product/inventory/InventoryServices.xml

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 
-- 
View this message in context: http://www.nabble.com/svn-commit%3A-r599516---in--ofbiz-trunk-applications-product%3A-entitydef-entitymodel.xml-script-org-ofbiz-product-inventory-InventoryServices.xml-tp14030032p14292639.html
Sent from the OFBiz - Commits mailing list archive at Nabble.com.


Re: svn commit: r599516 - in /ofbiz/trunk/applications/product: entitydef/entitymodel.xml script/org/ofbiz/product/inventory/InventoryServices.xml

Posted by Jacopo Cappellato <ti...@sastau.it>.
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