Ignore:
Timestamp:
Jun 18, 2010, 4:58:19 PM (15 years ago)
Author:
gav
Message:

Trim inventory purchase order number.
Allow editing of any purchase's flags.
Display description, location and suppliers part number when receiving.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/InventoryPurchaseService.groovy

    r597 r600  
    233233
    234234            result.inventoryItemPurchaseInstance.properties = params
     235            result.inventoryItemPurchaseInstance.purchaseOrderNumber = result.inventoryItemPurchaseInstance.purchaseOrderNumber.trim()
    235236
    236237            if(result.inventoryItemPurchaseInstance.hasErrors() || !result.inventoryItemPurchaseInstance.save())
     
    255256
    256257            result.inventoryItemPurchaseInstance = new InventoryItemPurchase(params)
     258            result.inventoryItemPurchaseInstance.purchaseOrderNumber = result.inventoryItemPurchaseInstance.purchaseOrderNumber.trim()
    257259            result.inventoryItemPurchaseInstance.enteredBy = authService.currentUser
    258260            result.inventoryItemPurchaseInstance.inventoryItemPurchaseType = InventoryItemPurchaseType.read(1) // Order
Note: See TracChangeset for help on using the changeset viewer.