Changeset 226 for trunk/grails-app/services
- Timestamp:
- Dec 9, 2009, 4:36:55 AM (15 years ago)
- Location:
- trunk/grails-app/services
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/InventoryItemService.groovy
r225 r226 19 19 def fail = { Object[] args -> 20 20 if(args.size() == 2) result.errors = [args[0], args[1]] 21 log.debug result.errors22 21 result.error = true 23 22 return result … … 41 40 return fail("inventoryItem", "inventoryItem.notFound") 42 41 43 log.debug "WTF are we doing here"44 45 42 def p = [:] 46 43 p.max = result.inventoryMovementListMax = 10 -
trunk/grails-app/services/InventoryMovementService.groovy
r225 r226 117 117 if(result.inventoryMovementInstance.validate()) { 118 118 def inventoryItem = InventoryItem.lock(result.inventoryMovementInstance.inventoryItem.id) 119 result.taskId = result.inventoryMovementInstance.task .id119 result.taskId = result.inventoryMovementInstance.task?.id 120 120 121 121 if(!inventoryItem) {
Note: See TracChangeset
for help on using the changeset viewer.