<!-- Add New Refund tpl -->

        <link rel="stylesheet" type="text/css" media="all" href="include/jscalendar/calendar-blue.css" title="win2k-1" />
        <script type="text/javascript" src="include/jscalendar/calendar_stripped.js"></script>
        <script type="text/javascript" src="include/jscalendar/lang/calendar-english.js"></script>
        <script type="text/javascript" src="include/jscalendar/calendar-setup_stripped.js"></script>

<table width="100%"   border="0" cellpadding="20" cellspacing="5">
    <tr>
        <td>
            <!-- Begin page -->
            <table width="700" cellpadding="5" cellspacing="0" border="0" >
                <tr>
                    <td class="menuhead2" width="80%">{$translate_refund_new_title}</td>
                    <td class="menuhead2" width="20%" align="right" valign="middle">
                        <a><img src="images/icons/16x16/help.gif" alt="" border="0"
                                onMouseOver="ddrivetip('<b>{$translate_refund_new_help_title}</b><hr><p>{$translate_refund_new_help_content|nl2br|regex_replace:"/[\r\t\n]/":" "}</p>')"
                                onMouseOut="hideddrivetip()"
                                onClick="window.location"></a>
                    </td>
                </tr>
                <tr>
                    <td class="menutd2" colspan="2">
                            {if $error_msg != ""}
                                    {include file="core/error.tpl"}
                            {/if}
                            {include file="refund/javascripts.js"}
                        <table class="olotable" width="100%" border="0" cellpadding="5" cellspacing="0">
                            <tr>
                                <td class="menutd">

                                    <!-- start of form content -->

                                    <table class="menutable" width="100%" border="0" cellpadding="2" cellspacing="2" >
                                        <tr>
                                            <td>                                                
                                                <input type="hidden" name="page" value="refund:edit">
						{literal}
                                                <form  action="index.php?page=refund:new" method="POST" name="new_refund" id="new_refund" autocomplete="off" onsubmit="try { var myValidator = validate_refund; } catch(e) { return true; } return myValidator(this);">
						{/literal}
                                                    <table width="100%" cellpadding="3" cellspacing="0" border="0">
                                                        <tr>
                                                            <td colspan="2" align="left">
                                                                <table>
                                                                    <tbody align="left">
                                                                        <tr>
                                                                            <td class="menuhead" colspan="3">{$translate_first_menu}</td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right"><b>{$translate_refund_id}</b></td><td>{$new_record_id}</td>
                                                                            <td colspan="2"></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right"><b>{$translate_refund_payee}</b><span style="color: #ff0000"> *</span></td>
                                                                            <td colspan="3"><input class="olotd5" size="60" id="refundPayee" name="refundPayee" type="text" onkeypress="return OnlyAlphaNumeric();" /></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right"><b>{$translate_refund_date}</b><span style="color: #ff0000"> *</span></td>
                                                                            <td><input class="olotd5" size="10" name="refundDate" type="text" id="refundDate" />
                                                                                <input type="button" id="trigger_date" value="+">
                                                                                {literal}
                                                                                    <script type="text/javascript">
                                                                                    Calendar.setup(
                                                                                    {
                                                                                    inputField  : "refundDate",
                                                                                    ifFormat    : "{/literal}{$date_format}{literal}",
                                                                                    button      : "trigger_date"
                                                                                    }
                                                                                    );
                                                                                    </script>
                                                                                {/literal}
                                                                            </td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right"><b>{$translate_refund_type}</b><span style="color: #ff0000"> *</span></td>
                                                                            <td>
                                                                                <select class="olotd5" name="refundType" col="30" style="width: 150px"/>
                                                                                    <option value="1">{$translate_refund_type_1}</option>
                                                                                    <option value="2">{$translate_refund_type_2}</option>
                                                                                    <option value="3">{$translate_refund_type_3}</option>
                                                                                    <option value="4">{$translate_refund_type_4}</option>
                                                                                    <option value="5">{$translate_refund_type_5}</option>
                                                                                    </td>
                                                                                </select>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right"><b>{$translate_refund_payment_method}</b><span style="color: #ff0000"> *</span></td>
                                                                            <td>
                                                                                <select class="olotd5" name="refundPaymentMethod" style="width: 150px"/>
                                                                                    <option value="1">{$translate_refund_payment_method_1}</option>
                                                                                    <option value="2">{$translate_refund_payment_method_2}</option>
                                                                                    <option value="3">{$translate_refund_payment_method_3}</option>
                                                                                    <option value="4">{$translate_refund_payment_method_4}</option>
                                                                                    <option value="5">{$translate_refund_payment_method_5}</option>
                                                                                    <option value="6">{$translate_refund_payment_method_6}</option>
                                                                                    <option value="7">{$translate_refund_payment_method_7}</option>
                                                                                    <option value="8">{$translate_refund_payment_method_8}</option>
                                                                                    <option value="9">{$translate_refund_payment_method_9}</option>
                                                                                    <option value="10">{$translate_refund_payment_method_10}</option>
                                                                                    <option value="11">{$translate_refund_payment_method_11}</option>
                                                                                </select>                                                                                
                                                                            </td>
                                                                        </tr>                                                                                                          
                                                                        <tr>
                                                                            <td align="right"><b>{$translate_refund_net_amount}</b></td>
                                                                            <td><a><input type="text" size="10" name="refundNetAmount" value="" class="olotd5" onkeypress="return onlyNumbersPeriods();"></b></a></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right"><span style="color: #ff0000"></span><b>{$translate_refund_tax_rate}</td>
                                                                            <td><input class="olotd5" name="refundTaxRate" type="text" size="4" value="{$tax_rate}" onkeypress="return onlyNumbersPeriods();"/><b>%</b></td>
                                                                        </tr>
                                                                        <tr>
                                                                        <td align="right"><b>{$translate_refund_tax_amount}</b></td>
                                                                        <td><input class="olotd5" name="refundTaxAmount" type="text" size="10" onkeypress="return onlyNumbersPeriods();"/></td>
                                                                        </tr>
                                                                        <tr>
                                                                        <td align="right"><b>{$translate_refund_gross_amount}</b><span style="color: #ff0000"> *</span></td>
                                                                        <td><input class="olotd5" name="refundGrossAmount" type="text" size="10" onkeypress="return onlyNumbersPeriods();"/></td>
                                                                        </tr>
                                                                    </tbody>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td class="menuhead" colspan="2">{$translate_additional_menu}</td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2">
                                                                <table>
                                                                    <tbody align="left">
                                                                        <tr>
                                                                            <td align="right"><b>{$translate_refund_notes}</b></td>
                                                                            <td><textarea class="olotd5" name="refundNotes" cols="50" rows="10"></textarea></td>
                                                                        </tr>
                                                                        <tr>
                                                                            <td align="right"><b>{$translate_refund_items}</b><span style="color: #ff0000"> *</span></td>
                                                                            <td><textarea class="olotd5" name="refundItems" cols="50" rows="10"></textarea></td>
                                                                        </tr>
                                                                    </tbody>
                                                                        <tr>
                                                                            <td></td>
                                                                            <td><input class="olotd5" name="submit" value="{$translate_refund_submit_button}" type="submit" /><input class="olotd5" name="submitandnew" value="{$translate_refund_submit_and_new_button}" type="submit" /></td>
                                                                        </tr>
                                                                </table>
                                                            </td>
                                                        </tr>                                  
                                                    </table>
                                                </form>
                                            </td>
                                        </tr>
                                    </table>

                                    <!-- end of form content -->
                                    
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>



