Ignore:
Timestamp:
Mar 8, 2010, 10:58:13 AM (15 years ago)
Author:
gav
Message:

Change InventoryItem to have a preferred and many alternate suppliers and manufacturers.
Controllers and views updated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/domain/InventoryItem.groovy

    r425 r435  
    66    Period averageDeliveryPeriod
    77    Picture picture
     8    Supplier preferredSupplier
     9    Manufacturer preferredManufacturer
    810    String name
    911    String description = ""
     
    2830                                    spareFor: Asset,
    2931                                    inventoryMovements: InventoryMovement,
    30                                     manufacturers: Manufacturer,
    31                                     suppliers: Supplier]
     32                                    alternateManufacturers: Manufacturer,
     33                                    alternateSuppliers: Supplier]
    3234
    3335//     static belongsTo = []
     
    5153        manufacturersPartNumber(blank:true, nullable:true)
    5254        suppliersPartNumber(blank:true, nullable:true)
     55        preferredSupplier(nullable:true)
     56        preferredManufacturer(nullable:true)
    5357        averageDeliveryTime(nullable:true)
    5458        averageDeliveryPeriod(nullable:true)
Note: See TracChangeset for help on using the changeset viewer.