Changeset 518


Ignore:
Timestamp:
May 1, 2010, 3:04:46 AM (14 years ago)
Author:
gav
Message:

Allow InventoryItemPurchase, invoicePaymentApproved and receivedComplete to be edited, part 2, limit to 'orders'.

File:
1 edited

Legend:

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

    r517 r518  
    8383                                </td>
    8484                            </tr>
    85                        
    86                             <tr class="prop">
    87                                 <td valign="top" class="name">
    88                                     <label for="receivedComplete">Received Complete:</label>
    89                                 </td>
    90                                 <td valign="top" class="value">
    91                                     <g:checkBox name="receivedComplete" value="${inventoryItemPurchaseInstance?.receivedComplete}" ></g:checkBox>
    92                                 </td>
    93                             </tr>
    94                            
    95                             <tr class="prop">
    96                                 <td valign="top" class="name">
    97                                     <label for="invoicePaymentApproved">Invoice Payment Approved:</label>
    98                                 </td>
    99                                 <td valign="top" class="value">
    100                                     <g:checkBox name="invoicePaymentApproved" value="${inventoryItemPurchaseInstance?.invoicePaymentApproved}" ></g:checkBox>
    101                                 </td>
    102                             </tr>
     85
     86                            <g:if test="${inventoryItemPurchaseInstance?.inventoryItemPurchaseType?.id == 1}">
     87                                <tr class="prop">
     88                                    <td valign="top" class="name">
     89                                        <label for="receivedComplete">Received Complete:</label>
     90                                    </td>
     91                                    <td valign="top" class="value">
     92                                        <g:checkBox name="receivedComplete" value="${inventoryItemPurchaseInstance?.receivedComplete}" ></g:checkBox>
     93                                    </td>
     94                                </tr>
     95                               
     96                                <tr class="prop">
     97                                    <td valign="top" class="name">
     98                                        <label for="invoicePaymentApproved">Invoice Payment Approved:</label>
     99                                    </td>
     100                                    <td valign="top" class="value">
     101                                        <g:checkBox name="invoicePaymentApproved" value="${inventoryItemPurchaseInstance?.invoicePaymentApproved}" ></g:checkBox>
     102                                    </td>
     103                                </tr>
     104                            </g:if>
     105                            <g:else>
     106                                <tr class="prop">
     107                                    <td valign="top" class="name">
     108                                        <label for="receivedComplete">Received Complete:</label>
     109                                    </td>
     110                                    <td valign="top" class="value">
     111                                        ${fieldValue(bean:inventoryItemPurchaseInstance, field:'receivedComplete')}
     112                                    </td>
     113                                </tr>
     114
     115                                <tr class="prop">
     116                                    <td valign="top" class="name">
     117                                        <label for="invoicePaymentApproved">Invoice Payment Approved:</label>
     118                                    </td>
     119                                    <td valign="top" class="value">
     120                                        ${fieldValue(bean:inventoryItemPurchaseInstance, field:'invoicePaymentApproved')}
     121                                    </td>
     122                                </tr>
     123                            </g:else>
    103124                       
    104125                            <tr class="prop">
Note: See TracChangeset for help on using the changeset viewer.