Subversion Repositories SmartDukaan

Rev

Rev 5110 | Rev 9925 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
        <head>
                <title>
                        Warehouse Management::Purchase Order $action.getPurchaseOrder().getId()
                </title>
        <script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
        <script type="text/javascript" src="/inventory/js/purchase-order-common.js"></script>
        <script type="text/javascript" src="/inventory/js/purchase-order-events.js"></script>
        <link rel="stylesheet" href="/inventory/css/common.css" type="text/css" />
        </head>
        <body>
        <a href="/inventory">Go to Home page</a>
        <br />        
                <h2>Start a Purchase</h2>
                #set($purchases = $action.getPurchases())
                #if($purchases)
                <p>Previous Purchases for PO $action.getPurchaseOrder().getPoNumber()</p>
                        #foreach($purchase in $purchases)
        <ul>
            <li><span>Purchase no. $purchase.getId()</span></li>
                </ul>
                        #end
                #end
                <a href="/inventory/purchase/new/?poId=$action.getPurchaseOrder().getId()">Start a new Purchase</a>
        <div >
            <br />
            <div class="error">#set($messages = $action.getActionErrors())
                    #if($messages && $messages.size() != 0)
                        #foreach($message in $messages)
                            $message <br/>
                        #end
                    #end
            </div>
            <label >PO Items</label>
            <br />
            <table class="bordered" border="1">
                <thead >
                    <tr class="bordered">
                        <th >Item Id</th>
                        <th >Product Name</th>
                        <th >Quantity ordered</th>
                        <th >Unfulfilled Quantity</th>
                    </tr>
                </thead>
                <tbody >
                    #foreach($lineitem in $action.getPurchaseOrder().getLineitems())
                        <tr class="bordered">
                            <td id="itemId">$lineitem.getItemId()</td>
                            <td >$action.getName($lineitem)</td>
                            <td >$lineitem.getQuantity()</td>
                            <td >$lineitem.getUnfulfilledQuantity()</td>
                        </tr>
                    #end
                </tbody>
            </table>
            <input type="hidden" id="poId" value="$action.getPurchaseOrder().getId()"/>
        </div>
    </body>
</html>