Ignore:
Timestamp:
Oct 29, 2009, 8:30:58 PM (15 years ago)
Author:
gav
Message:

Substantial refactor of the Inventory domain.
InventoryItems can now be added to tasks, no quantity adjustments done yet.
Removed StoredItem and with it the ability to store an inventoryItem in multiple places, just too complex right now.
Svn move StoreLocation to InventoryLocation.

File:
1 edited

Legend:

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

    r151 r175  
    5050                            <tr class="prop">
    5151                                <td valign="top" class="name">
     52                                    <label for="inventoryLocations">Inventory Locations:</label>
     53                                </td>
     54                                <td valign="top" class="value ${hasErrors(bean:inventoryStoreInstance,field:'inventoryLocations','errors')}">
     55                                   
     56<ul>
     57<g:each var="i" in="${inventoryStoreInstance?.inventoryLocations?}">
     58    <li><g:link controller="inventoryLocation" action="show" id="${i.id}">${i?.encodeAsHTML()}</g:link></li>
     59</g:each>
     60</ul>
     61<g:link controller="inventoryLocation" params="['inventoryStore.id':inventoryStoreInstance?.id]" action="create">Add InventoryLocation</g:link>
     62
     63                                </td>
     64                            </tr>
     65                       
     66                            <tr class="prop">
     67                                <td valign="top" class="name">
    5268                                    <label for="isActive">Is Active:</label>
    5369                                </td>
     
    6682                            </tr>
    6783                       
    68                             <tr class="prop">
    69                                 <td valign="top" class="name">
    70                                     <label for="storeLocations">Store Locations:</label>
    71                                 </td>
    72                                 <td valign="top" class="value ${hasErrors(bean:inventoryStoreInstance,field:'storeLocations','errors')}">
    73                                    
    74 <ul>
    75 <g:each var="s" in="${inventoryStoreInstance?.storeLocations?}">
    76     <li><g:link controller="storeLocation" action="show" id="${s.id}">${s?.encodeAsHTML()}</g:link></li>
    77 </g:each>
    78 </ul>
    79 <g:link controller="storeLocation" params="['inventoryStore.id':inventoryStoreInstance?.id]" action="create">Add StoreLocation</g:link>
    80 
    81                                 </td>
    82                             </tr>
    83                        
    8484                        </tbody>
    8585                    </table>
Note: See TracChangeset for help on using the changeset viewer.