Ignore:
Timestamp:
Dec 9, 2009, 4:36:55 AM (15 years ago)
Author:
gav
Message:

Complete functionality for inventory movement types other than "Used".

Location:
trunk/grails-app/services
Files:
2 edited

Legend:

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

    r225 r226  
    1919        def fail = { Object[] args ->
    2020            if(args.size() == 2) result.errors = [args[0], args[1]]
    21             log.debug result.errors
    2221            result.error = true
    2322            return result
     
    4140            return fail("inventoryItem", "inventoryItem.notFound")
    4241
    43         log.debug "WTF are we doing here"
    44 
    4542        def p = [:]
    4643        p.max = result.inventoryMovementListMax = 10
  • trunk/grails-app/services/InventoryMovementService.groovy

    r225 r226  
    117117            if(result.inventoryMovementInstance.validate()) {
    118118                def inventoryItem = InventoryItem.lock(result.inventoryMovementInstance.inventoryItem.id)
    119                 result.taskId = result.inventoryMovementInstance.task.id
     119                result.taskId = result.inventoryMovementInstance.task?.id
    120120
    121121                if(!inventoryItem) {
Note: See TracChangeset for help on using the changeset viewer.