svn commit: r534912 - in /ofbiz/trunk/applications/product: data/ProductTypeData.xml entitydef/entitymodel.xml

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

svn commit: r534912 - in /ofbiz/trunk/applications/product: data/ProductTypeData.xml entitydef/entitymodel.xml

jonesde
Author: jonesde
Date: Thu May  3 08:47:53 2007
New Revision: 534912

URL: http://svn.apache.org/viewvc?view=rev&rev=534912
Log:
Added a recurrenceInfoId and new ProductAssocType for auto-reorders; the idea is to create a ShoppingList on the fly when the main product is purchased based on these associations; the service will likely be triggered with an ECA by the storeOrder service, just as with other ECA rules in applications/order/servicedef/secas.xml

Modified:
    ofbiz/trunk/applications/product/data/ProductTypeData.xml
    ofbiz/trunk/applications/product/entitydef/entitymodel.xml

Modified: ofbiz/trunk/applications/product/data/ProductTypeData.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/data/ProductTypeData.xml?view=diff&rev=534912&r1=534911&r2=534912
==============================================================================
--- ofbiz/trunk/applications/product/data/ProductTypeData.xml (original)
+++ ofbiz/trunk/applications/product/data/ProductTypeData.xml Thu May  3 08:47:53 2007
@@ -164,6 +164,7 @@
     <ProductAssocType description="Accessory" hasTable="N" parentTypeId="" productAssocTypeId="PRODUCT_ACCESSORY"/>
     <ProductAssocType description="Refurbished Equivalent" hasTable="N" parentTypeId="" productAssocTypeId="PRODUCT_REFURB"/>
     <ProductAssocType description="Repair Service" hasTable="N" parentTypeId="" productAssocTypeId="PRODUCT_REPAIR_SRV"/>
+    <ProductAssocType description="Auto Reorder (needs recurrenceInfoId)" hasTable="N" parentTypeId="" productAssocTypeId="PRODUCT_AUTORO"/>
     
     <ProductAssocType description="Revision" hasTable="N" parentTypeId="" productAssocTypeId="PRODUCT_REVISION"/>
     <ProductAssocType description="Manufacturing Bill of Materials" hasTable="N" parentTypeId="PRODUCT_COMPONENT" productAssocTypeId="MANUF_COMPONENT"/>

Modified: ofbiz/trunk/applications/product/entitydef/entitymodel.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/product/entitydef/entitymodel.xml?view=diff&rev=534912&r1=534911&r2=534912
==============================================================================
--- ofbiz/trunk/applications/product/entitydef/entitymodel.xml (original)
+++ ofbiz/trunk/applications/product/entitydef/entitymodel.xml Thu May  3 08:47:53 2007
@@ -2039,6 +2039,7 @@
       <field name="instruction" type="long-varchar"></field>
       <field name="routingWorkEffortId" type="id"></field>
       <field name="estimateCalcMethod" type="id"></field>
+      <field name="recurrenceInfoId" type="id"></field>
       <prim-key field="productId"/>
       <prim-key field="productIdTo"/>
       <prim-key field="productAssocTypeId"/>
@@ -2058,6 +2059,9 @@
       <relation type="one" fk-name="PROD_ASSOC_CUSM" rel-entity-name="CustomMethod">
         <key-map field-name="estimateCalcMethod" rel-field-name="customMethodId"/>
       </relation>
+        <relation type="one" fk-name="PROD_ASSOC_RECINFO" rel-entity-name="RecurrenceInfo">
+            <key-map field-name="recurrenceInfoId"/>
+        </relation>
     </entity>
     <entity entity-name="ProductAssocType"
             package-name="org.ofbiz.product.product"