You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
4.7 KiB

<!--*********************************************************************************
** The contents of this file are subject to the vtiger CRM Public License Version 1.0
* ("License"); You may not use this file except in compliance with the License
* The Original Code is: vtiger CRM Open Source
* The Initial Developer of the Original Code is vtiger.
* Portions created by vtiger are Copyright (C) vtiger.
* All Rights Reserved.
*
********************************************************************************/
-->
<!-- BEGIN: main -->
<link rel="stylesheet" type="text/css" href="{THEME_PATH}style.css"/>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="formOuterBorder">
<tr><td>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tbody><tr>
<form name="SearchForm" method="post" action="index.php">
<input type="hidden" name="order_by" value="{ORDER_BY}" />
<input type="hidden" name="sorder" value="{SORDER}" />
<input type="hidden" name="recordid" value="{RECORDID}" />
<input type="hidden" name="return_module" value="{RETURN_MODULE}" />
<td class="dataLabel" noWrap>&nbsp;{MOD.LBL_INVOICE_NAME}&nbsp;</td>
<td class="dataField"><input type=text size="10" name="subject" class=dataField value="{SUBJECT}" />
<td class="dataLabel" noWrap>&nbsp;{MOD.LBL_SALES_ORDER}&nbsp;</td>
<td class="dataField"><input type=text size="10" name="salesorder" class=dataField value='{SALESORDER}' />
<td align="center"><input type="hidden" name="action" value="Popup"/>
<input type="hidden" name="popuptype" value="{POPUPTYPE}"/>
<input type="hidden" name="query" value="true"/>
<input type="hidden" name="module" value="Invoice" />
<input title="{APP.LBL_SEARCH_BUTTON_TITLE}" accessKey="{APP.LBL_SEARCH_BUTTON_KEY}" class="button" type="submit" name="button" value="{APP.LBL_SEARCH_BUTTON_LABEL}"/>
<input title="{APP.LBL_CLEAR_BUTTON_TITLE}" accessKey="{APP.LBL_CLEAR_BUTTON_KEY}" onclick="clear_form(this.form);" class="button" type="button" name="clear" value=" {APP.LBL_CLEAR_BUTTON_LABEL} "/>
<br>
</td>
</tr></form>
</table>
</td></tr>
</table>
<table cellpadding="0" cellspacing="2" border="0" align="center"><tr>
{ALPHABETICAL}
</tr></table>
<script type="text/javascript" language="JavaScript">
function clear_form(form) {
for (j = 0; j < form.elements.length; j++) {
if (form.elements[j].type == 'text' || form.elements[j].type == 'select-one') {
form.elements[j].value = '';
}
}
}
</script>
<BR>
<BR>
{PRODUCTLISTHEADER}
<table border="0" cellpadding="0" cellspacing="0" class="FormBorder" width="100%">
<form name="massdelete" method="POST">
<tr height="20">
<td COLSPAN="11" class="listFormHeaderLinks">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<input name='action' type='hidden' value='Convert'>
<td>&nbsp; {RECORD_COUNTS}</td>
{NAVIGATION}
</tr>
</table>
</td>
</tr>
<tr><td colspan="18" height="1" class="blackLine"><IMG SRC="{IMAGE_PATH}blank.gif"></td></tr>
{LISTHEADER}
<tr><td colspan="18" height="1" class="blackLine"><IMG SRC="{IMAGE_PATH}blank.gif"></td></tr>
{LISTENTITY}
</form>
</table>
<br>
<script type='text/javascript' language='JavaScript' src='include/general.js'></script>
<script type='text/javascript' language='JavaScript'>
function set_return(product_id, product_name) {
window.opener.document.EditView.parent_name.value = product_name;
window.opener.document.EditView.parent_id.value = product_id;
}
function set_return_specific(product_id, product_name) {
window.opener.document.EditView.product_name.value = product_name;
window.opener.document.EditView.product_id.value = product_id;
}
function set_return_formname_specific(formname,product_id, product_name) {
window.opener.document.EditView1.product_name.value = product_name;
window.opener.document.EditView1.product_id.value = product_id;
}
function add_data_to_relatedlist(entity_id,recordid) {
opener.document.location.href="index.php?module={RETURN_MODULE}&action=updateRelations&smodule={SMODULE}&destination_module=Invoice&entityid="+entity_id+"&parid="+recordid;
}
function set_return_inventory(product_id,product_name,unitprice,qtyinstock,curr_row) {
window.opener.document.EditView.elements["txtProduct"+curr_row].value = product_name;
window.opener.document.EditView.elements["hdnProductId"+curr_row].value = product_id;
window.opener.document.EditView.elements["txtListPrice"+curr_row].value = unitprice;
getOpenerObj("unitPrice"+curr_row).innerHTML = unitprice;
getOpenerObj("qtyInStock"+curr_row).innerHTML = qtyinstock;
window.opener.document.EditView.elements["txtQty"+curr_row].focus()
}
</script>
<!-- END: main -->
</table>