H Adrian, i followed the product -> inventoryitem -> location pattern which allows inventory management to reorganize inventory whithout affecting either products or assets. Linking directly to locations would mean massive changes to picking and shipping. Now we can use existing functions.
Regards, Hans On Fri, 2011-09-09 at 10:46 +0100, Adrian Crum wrote: > I don't like this approach. Adding an inventory item for fixed assets > seems redundant - it would be better to just link the fixed asset to a > location. Also, I wonder how this affects accounting in the proposed > rental business. Will the fixed assets be calculated as inventory? > > -Adrian > > On 9/9/2011 7:40 AM, hans...@apache.org wrote: > > Author: hansbak > > Date: Fri Sep 9 06:40:28 2011 > > New Revision: 1167015 > > > > URL: http://svn.apache.org/viewvc?rev=1167015&view=rev > > Log: > > New product type: Fixed Asset Usage For Rental of an asset which is shipped > > from and returned to inventory. Including Junit test and demo data. More > > explanation will follow in a blog on the 'what is new page' > > > > Modified: ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml > > URL: > > http://svn.apache.org/viewvc/ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml?rev=1167015&r1=1167014&r2=1167015&view=diff > > ============================================================================== > > --- ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml (original) > > +++ ofbiz/trunk/applications/accounting/entitydef/entitymodel.xml Fri Sep > > 9 06:40:28 2011 > > @@ -4069,4 +4069,12 @@ under the License. > > <key-map field-name="finAccountId"/> > > </view-link> > > </view-entity> > > + > > +<!-- Extend Entity Inventory Item for relation Fix Asset --> > > +<extend-entity entity-name="InventoryItem"> > > +<field name="fixedAssetId" type="id"></field> > > +<relation type="one" fk-name="FIXED_ASSET" title="FixedAsset" > > rel-entity-name="InventoryItem"> > > +<key-map field-name="fixedAssetId" rel-field-name="inventoryItemId"/> > > +</relation> > > +</extend-entity> > > </entitymodel> > -- Ofbiz on twitter: http://twitter.com/apache_ofbiz Alternative ofbiz website: http://www.ofbiz.info http://www.antwebsystems.com : Quality services for competitive rates.