Changeset 441 for trunk/grails-app/controllers
- Timestamp:
- Mar 16, 2010, 12:00:04 PM (15 years ago)
- Location:
- trunk/grails-app/controllers
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/controllers/InventoryItemDetailedController.groovy
r435 r441 34 34 35 35 /** 36 * Dis aply the import view.36 * Display the import view. 37 37 */ 38 38 def importInventory = { … … 90 90 def s = inventoryCsvService.buildInventory(inventoryItemList) 91 91 render s 92 } 93 94 /** 95 * Display the import view for purchases. 96 */ 97 def importInventoryItemPurchases = { 98 } 99 100 /** 101 * Handle the inventory purchases import save. 102 */ 103 def importInventoryItemPurchasesSave = { 104 def result = inventoryCsvService.importInventoryItemPurchases(request) 105 106 if(!result.error) { 107 flash.message = g.message(code: "inventory.import.success") 108 redirect(action:search) 109 return 110 } 111 112 flash.errorMessage = g.message(code: result.error.code, args: result.error.args) 113 redirect(action: importInventoryItemPurchases) 92 114 } 93 115 … … 194 216 inventoryMovementListTotal: result.inventoryMovementListTotal, 195 217 inventoryMovementListMax: result.inventoryMovementListMax, 218 inventoryItemPurchases: result.inventoryItemPurchases, 219 inventoryItemPurchasesTotal: result.inventoryItemPurchasesTotal, 196 220 showTab: result.showTab] 197 221
Note: See TracChangeset
for help on using the changeset viewer.