Ignore:
Timestamp:
Oct 29, 2009, 8:30:58 PM (14 years ago)
Author:
gav
Message:

Substantial refactor of the Inventory domain.
InventoryItems can now be added to tasks, no quantity adjustments done yet.
Removed StoredItem and with it the ability to store an inventoryItem in multiple places, just too complex right now.
Svn move StoreLocation to InventoryLocation.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/InventoryItemDetailedController.groovy

    r156 r175  
    4848        if(inventoryItemInstance) {
    4949            try {
    50                 inventoryItemInstance.delete()
     50                inventoryItemInstance.delete(flush:true)
    5151                flash.message = "InventoryItem ${params.id} deleted"
    5252                redirect(action:search)
     
    103103        else {
    104104            flash.message = "InventoryItem not found with id ${params.id}"
    105             redirect(action:edit,id:params.id)
     105            redirect(action:search)
    106106        }
    107107    }
Note: See TracChangeset for help on using the changeset viewer.