Subversion Repositories SmartDukaan

Rev

Rev 7624 | 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>
        <script type="text/javascript" src="/inventory/js/jquery-1.4.2.js"></script>
        <script type="text/javascript" src="/inventory/js/jquery.validate.js"></script>        
                <title>
                        Warehouse Management::New Purchase
                </title>
        </head>
        <body>
        <script>
            $(document).ready(function() {
                $("form#newPurchase").validate();
            });
        </script>
        <a href="/inventory">Go to Home page</a>
        <br />                
                <h2>New Purchase</h2>
                <span style="color:red">
                        $action.getErrorMessage()
                </span>
                <form id = "newPurchase" name="newPurchase" action="/inventory/purchase" method="post">
                        <input type="hidden" name="poId" value="$action.getPurchaseOrderId()"/>
                        <table>
                                <tr>
                                        <td>Invoice No:</td>
                                        <td>
                        <select name="invoiceNo" class="required"> 
                            #foreach($invoice in $action.getInvoices())
                                <option value="$invoice.getInvoiceNumber()" >$invoice.getInvoiceNumber()</option>
                            #end
                        </select>
                                        </td>
                                </tr>
                                <tr>
                                        <td>Freight Charges:</td>
                                        <td>
                                                <input type="text" name="freightCharges"/>
                                        </td>
                                </tr>
                                <tr>
                                        <td>Purchase Comments:</td>
                                        <td>
                                                <input type="text" name="purchaseComments"/>
                    </td>
                </tr>
                                <tr>
                                        <td colspan="2" align="right">
                                                <input name="submit" type="submit" value="Start Purchase"/>
                                        </td>
                                </tr>
                </form>
    </body>
</html>