Ignore:
Timestamp:
Jun 15, 2010, 9:18:21 AM (15 years ago)
Author:
gav
Message:

Improvements to purchasing, update order amount with total invoice payment amounts and set flags.

File:
1 edited

Legend:

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

    r596 r597  
    320320
    321321    def approveInvoicePayment = {
     322        // Read the values from Order Received.
    322323        def inventoryItemPurchaseInstance = InventoryItemPurchase.read( params.id )
    323324
     
    331332        params.returnTo = params.returnTo ?: 'inventoryItem'
    332333        return ['inventoryItemPurchaseInstance':inventoryItemPurchaseInstance,
    333                         'orderId': inventoryItemPurchaseInstance.id]
     334                        'receivedId': inventoryItemPurchaseInstance.id]
    334335    }
    335336
     
    359360        render(view:'approveInvoicePayment',
    360361                    model:['inventoryItemPurchaseInstance': result.inventoryItemPurchaseInstance,
    361                                     'orderId': result.orderId])
     362                                    'receivedId': result.receivedId])
    362363    }
    363364}
Note: See TracChangeset for help on using the changeset viewer.