Ignore:
Timestamp:
Nov 2, 2009, 1:17:03 PM (15 years ago)
Author:
gav
Message:

Inventory movement quantity adjustments now done in a service.
InventoryMovementType now has an incrementsInventory flag, so not dependant on the text name.

File:
1 edited

Legend:

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

    r116 r177  
    2727        if(inventoryMovementTypeInstance) {
    2828            try {
    29                 inventoryMovementTypeInstance.delete()
     29                inventoryMovementTypeInstance.delete(flush:true)
    3030                flash.message = "InventoryMovementType ${params.id} deleted"
    3131                redirect(action:list)
     
    7777        else {
    7878            flash.message = "InventoryMovementType not found with id ${params.id}"
    79             redirect(action:edit,id:params.id)
     79            redirect(action:list)
    8080        }
    8181    }
Note: See TracChangeset for help on using the changeset viewer.