Changeset 605 for trunk/grails-app/services/InventoryPurchaseService.groovy
- Timestamp:
- Jun 21, 2010, 12:23:21 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/services/InventoryPurchaseService.groovy
r600 r605 150 150 return fail(code:"inventoryItemPurchase.delete.failure.payment.approved") 151 151 152 def startOfDay = dateUtilService.getMidnight(result.inventoryItemPurchaseInstance.date Entered)152 def startOfDay = dateUtilService.getMidnight(result.inventoryItemPurchaseInstance.date) 153 153 def inventoryMovements = InventoryMovement.withCriteria { 154 154 eq("inventoryItem", result.inventoryItemPurchaseInstance.inventoryItem ) … … 234 234 result.inventoryItemPurchaseInstance.properties = params 235 235 result.inventoryItemPurchaseInstance.purchaseOrderNumber = result.inventoryItemPurchaseInstance.purchaseOrderNumber.trim() 236 result.inventoryItemPurchaseInstance.lastUpdatedBy = authService.currentUser 236 237 237 238 if(result.inventoryItemPurchaseInstance.hasErrors() || !result.inventoryItemPurchaseInstance.save()) … … 315 316 // Fetch to prevent lazy initialization error. 316 317 result.inventoryItemPurchaseInstance.inventoryItem.unitOfMeasure 318 result.inventoryItemPurchaseInstance.inventoryItem.inventoryLocation 317 319 318 320 if(order.hasErrors() || !order.save()) … … 339 341 340 342 } // end withTransaction 341 } // save()343 } // receiveSave() 342 344 343 345 def approveInvoicePaymentSave(params) {
Note: See TracChangeset
for help on using the changeset viewer.