svn commit: r1062708 - /ofbiz/trunk/applications/product/entitydef/entitymodel_view.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r1062708 - /ofbiz/trunk/applications/product/entitydef/entitymodel_view.xml

hansbak-2
Author: hansbak
Date: Mon Jan 24 09:50:12 2011
New Revision: 1062708

URL: http://svn.apache.org/viewvc?rev=1062708&view=rev
Log:
add a view to be able to sort by productprice within a category

Modified:
    ofbiz/trunk/applications/product/entitydef/entitymodel_view.xml

Modified: ofbiz/trunk/applications/product/entitydef/entitymodel_view.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/entitydef/entitymodel_view.xml?rev=1062708&r1=1062707&r2=1062708&view=diff
==============================================================================
--- ofbiz/trunk/applications/product/entitydef/entitymodel_view.xml (original)
+++ ofbiz/trunk/applications/product/entitydef/entitymodel_view.xml Mon Jan 24 09:50:12 2011
@@ -61,4 +61,22 @@ under the License.
       </relation>
     </view-entity>
     
+    <view-entity entity-name="ProductCategoryMemberAndPrice" package-name="org.ofbiz.product.category" title="ProductCategoryMember And ProductPrice View Entiry">
+        <member-entity entity-alias="PCM" entity-name="ProductCategoryMember"/>
+        <member-entity entity-alias="PD" entity-name="Product"/>
+        <member-entity entity-alias="PP" entity-name="ProductPrice"/>
+        <alias-all entity-alias="PCM"/>
+        <alias-all entity-alias="PD" prefix="product">
+            <exclude field="productId"/>
+        </alias-all>
+        <alias-all entity-alias="PP" prefix="price">
+            <exclude field="productId"/>
+        </alias-all>
+        <view-link entity-alias="PCM" rel-entity-alias="PD">
+            <key-map field-name="productId"/>
+        </view-link>
+        <view-link entity-alias="PD" rel-entity-alias="PP">
+            <key-map field-name="productId"/>
+        </view-link>
+    </view-entity>
 </entitymodel>