Ignore:
Timestamp:
Jul 19, 2010, 8:47:38 AM (14 years ago)
Author:
gav
Message:

Domain change: Add PurchasingGroup?.
Logic and views to suite.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/inventoryItemPurchaseDetailed/create.gsp

    r609 r633  
    1515        <div class="body">
    1616            <g:render template="/shared/messages" />
     17            <g:if test="${!costCodes}" >
     18                <div class="errors">
     19                    <ul>
     20                        <li><g:message code="inventoryItemPurchase.costCodes.not.found" /><li>
     21                </div>
     22            </g:if>
    1723            <g:hasErrors bean="${inventoryItemPurchaseInstance}">
    1824            <div class="errors">
     
    6672                                <td valign="top" class="value ${hasErrors(bean:inventoryItemPurchaseInstance,field:'costCode','errors')}">
    6773                                    <g:select optionKey="id"
    68                                                         from="${ CostCode.findAllByIsActive(true).sort { p1, p2 -> p1.name.compareToIgnoreCase(p2.name) } }"
     74                                                        from="${ costCodes }"
    6975                                                        name="costCode.id"
    7076                                                        value="${inventoryItemPurchaseInstance?.costCode?.id}"
Note: See TracChangeset for help on using the changeset viewer.