Changeset 919 for trunk


Ignore:
Timestamp:
05/03/11 17:59:04 (8 years ago)
Author:
gav
Message:

Domain change, make InventoryItem?.suppliersPartNumber not nullable.
Due to random Tomcat NPE on inventoryPurchaseReceive view.

File:
1 edited

Legend:

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

    r726 r919  
    1111    BigDecimal estimatedUnitPriceAmount 
    1212    Currency estimatedUnitPriceCurrency 
    13     String suppliersPartNumber 
     13    String suppliersPartNumber = "" 
    1414    Integer unitsInStock = 0 
    1515    Integer reorderPoint = 0 
     
    2424 
    2525    static hasMany = [spareFor: Asset, 
    26                                     inventoryMovements: InventoryMovement, 
    27                                     alternateSuppliers: Supplier] 
     26                        inventoryMovements: InventoryMovement, 
     27                        alternateSuppliers: Supplier] 
    2828 
    2929//     static belongsTo = [] 
     
    4646        estimatedUnitPriceAmount(nullable:true, max: new BigDecimal(1000000000000)) 
    4747        estimatedUnitPriceCurrency(nullable:true) 
    48         suppliersPartNumber(blank:true, nullable:true, maxSize:50) 
     48        suppliersPartNumber(blank:true, maxSize:50) 
    4949        preferredSupplier(nullable:true) 
    5050    } 
Note: See TracChangeset for help on using the changeset viewer.