src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F2.html
author Iván Perdomo <ivan.perdomo@openbravo.com>
Thu, 24 Apr 2008 17:12:02 +0000
changeset 770 8850d5956eba
parent 528 7aa737db257f
child 1325 af371d42d754
permissions -rw-r--r--
Bug fix [0000111]. Modified mapping name used on manual code.
juanpablo@378
     1
<!--
juanpablo@378
     2
 *************************************************************************
juanpablo@378
     3
 * The contents of this file are subject to the Openbravo  Public  License
juanpablo@378
     4
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
juanpablo@378
     5
 * Version 1.1  with a permitted attribution clause; you may not  use this
juanpablo@378
     6
 * file except in compliance with the License. You  may  obtain  a copy of
juanpablo@378
     7
 * the License at http://www.openbravo.com/legal/license.html 
juanpablo@378
     8
 * Software distributed under the License  is  distributed  on  an "AS IS"
juanpablo@378
     9
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
juanpablo@378
    10
 * License for the specific  language  governing  rights  and  limitations
juanpablo@378
    11
 * under the License. 
juanpablo@378
    12
 * The Original Code is Openbravo ERP. 
juanpablo@378
    13
 * The Initial Developer of the Original Code is Openbravo SL 
juanpablo@378
    14
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
juanpablo@378
    15
 * All Rights Reserved. 
juanpablo@378
    16
 * Contributor(s):  ______________________________________.
juanpablo@378
    17
 ************************************************************************
juanpablo@378
    18
-->
juanpablo@378
    19
<HTML>
juanpablo@378
    20
<HEAD>
juanpablo@378
    21
<TITLE>Payment selector</TITLE>
juanpablo@378
    22
<SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
juanpablo@378
    23
<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
juanpablo@378
    24
<SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
juanpablo@378
    25
<SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
asier@528
    26
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
asier@528
    27
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
asier@528
    28
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
juanpablo@378
    29
<SCRIPT language="JavaScript" type="text/javascript">
juanpablo@378
    30
function cargarDatos() {
juanpablo@378
    31
	var uno = parent.uno;
juanpablo@378
    32
	var frm = document.frmMain;
juanpablo@378
    33
	var tres = parent.tres;
juanpablo@378
    34
	if (uno && uno.document.frmMain) {
juanpablo@378
    35
		frm.inpType.value=uno.document.frmMain.inpfinaldoc.options[uno.document.frmMain.inpfinaldoc.selectedIndex].value;
juanpablo@378
    36
		frm.inpsourcedoc.value=uno.document.frmMain.inpsourcedoc.options[uno.document.frmMain.inpsourcedoc.selectedIndex].value;
juanpablo@378
    37
		frm.inpsearchmode.value=uno.document.frmMain.inpsearchmode.options[uno.document.frmMain.inpsearchmode.selectedIndex].value;
juanpablo@378
    38
		frm.inpDesde.value=uno.document.frmMain.inpDesde.value;
juanpablo@378
    39
		frm.inpHasta.value=uno.document.frmMain.inpHasta.value;
juanpablo@378
    40
	}
juanpablo@378
    41
	if (tres && tres.document.frmMain) {
juanpablo@378
    42
		var aux;
juanpablo@378
    43
		aux=radioValue(tres.document.frmMain.inpSameBpartner);
juanpablo@378
    44
		if (aux==null) frm.inpSameBpartner.value="";
juanpablo@378
    45
		else frm.inpSameBpartner.value=aux;
juanpablo@378
    46
		aux=radioValue(tres.document.frmMain.inpSameProduct);
juanpablo@378
    47
		if (aux==null) frm.inpSameProduct.value="";
juanpablo@378
    48
		else frm.inpSameProduct.value=aux;
juanpablo@378
    49
		aux=radioValue(tres.document.frmMain.inpSameQty);
juanpablo@378
    50
		if (aux==null) frm.inpSameQty.value="";
juanpablo@378
    51
		else frm.inpSameQty.value=aux;
juanpablo@378
    52
	}
juanpablo@378
    53
	if (radioValue(frm.inpClave)!="") {
juanpablo@378
    54
		var cinco=parent.cinco;
juanpablo@378
    55
		if (cinco && cinco.document.frmMain) {
juanpablo@378
    56
			var total=0, totalMatched=0;
juanpablo@378
    57
			if (radioValue(frm.inpClave)!=null && radioValue(frm.inpClave)!="") {
juanpablo@378
    58
				total = eval("document.frmMain.inpTotal" + radioValue(frm.inpClave) + ".value");
juanpablo@378
    59
				totalMatched = eval("document.frmMain.inpMatched" + radioValue(frm.inpClave) + ".value");
juanpablo@378
    60
			}
juanpablo@378
    61
			cinco.setMatch(parseFloat(total) - parseFloat(totalMatched));
juanpablo@378
    62
		}
juanpablo@378
    63
		submitCommandForm("FIND_SECONDARY");
juanpablo@378
    64
	}
juanpablo@378
    65
	return true;
juanpablo@378
    66
}
juanpablo@378
    67
</SCRIPT>
asier@528
    68
	<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    69
	function onLoadDo(){
asier@528
    70
		this.windowTables = new Array(
asier@528
    71
		  new windowTableId('client')
asier@528
    72
		);
asier@528
    73
		setWindowTableParentElement();
asier@528
    74
		this.tabsTables = new Array(
asier@528
    75
		  new tabTableId('tdtopTabs')
asier@528
    76
		);
asier@528
    77
		setTabTableParentElement();
asier@528
    78
		enableShortcuts('edition');
asier@528
    79
		
asier@528
    80
asier@528
    81
		setWindowElementFocus('firstElement');
asier@528
    82
	}
asier@528
    83
asier@528
    84
	function onResizeDo(){
asier@528
    85
	}
asier@528
    86
	</SCRIPT>
juanpablo@378
    87
</HEAD>
asier@528
    88
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
juanpablo@378
    89
<FORM name="frmMain" method="POST" action="MatchingPO-Receipt-Invoice_F4.html" target="cuatro">
juanpablo@378
    90
  <INPUT type="hidden" name="Command">
juanpablo@378
    91
  <INPUT type="hidden" name="inpType">
juanpablo@378
    92
  <INPUT type="hidden" name="inpSameBpartner">
juanpablo@378
    93
  <INPUT type="hidden" name="inpSameProduct">
juanpablo@378
    94
  <INPUT type="hidden" name="inpSameQty">
juanpablo@378
    95
  <INPUT type="hidden" name="inpsourcedoc">
juanpablo@378
    96
  <INPUT type="hidden" name="inpsearchmode">
juanpablo@378
    97
  <INPUT type="hidden" name="inpDesde">
juanpablo@378
    98
  <INPUT type="hidden" name="inpHasta">
juanpablo@378
    99
  <TABLE width="100%" border="1" cellspacing="0" cellpadding="0" >
juanpablo@378
   100
    <TR> 
juanpablo@378
   101
      <td width="2%">&nbsp;</td>
juanpablo@378
   102
      <td width="13%">Doc. No.</td>
juanpablo@378
   103
      <td width="10%">Date</td>
juanpablo@378
   104
      <td width="29%">Business Partner</td>
juanpablo@378
   105
      <td width="9%">Line No.</td>
juanpablo@378
   106
      <td width="21%">Product</td>
juanpablo@378
   107
      <td width="7%">Quantity</td>
juanpablo@378
   108
      <td width="9%">Conformed</td>
juanpablo@378
   109
    </TR>
juanpablo@378
   110
    <DIV id="sectionDetail"> 
juanpablo@378
   111
      <TR > 
asier@528
   112
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpClave" value="xx" onclick="cargarDatos();return true;"  id="fieldClave"></INPUT></SPAN>
juanpablo@378
   113
          <INPUT type="hidden" name="inpTotalxx" value="xx" id="fieldTotalImporte"> 
juanpablo@378
   114
          <INPUT type="hidden" name="inpMatchedxx" value="xx" id="fieldMatchedImporte">
juanpablo@378
   115
        </TD>
juanpablo@378
   116
        <TD width="13%" id="fieldDocumentNo" >xx12345</TD>
juanpablo@378
   117
        <TD width="10%" id="fieldDate" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   118
        <TD width="29%" id="fieldBpartnerDes">xxCementos Sarobe enterprise</TD>
juanpablo@378
   119
        <TD width="9%" id="fieldLineNo">xx10</TD>
juanpablo@378
   120
        <TD width="21%" id="fieldProductDes">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   121
        <TD width="7%" id="fieldQty" >xx45</TD>
juanpablo@378
   122
        <TD width="9%" id="fieldMatched" >xx45</TD>
juanpablo@378
   123
      </TR>
juanpablo@378
   124
    </DIV>
juanpablo@378
   125
    <DIV class="discard"> 
juanpablo@378
   126
      <TR > 
asier@528
   127
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpMTransactionId" value="xx" onclick="cargarDatos('xx');return true;"  id="fieldMTransactionId"></INPUT></SPAN>
juanpablo@378
   128
        </TD>
juanpablo@378
   129
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   130
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   131
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   132
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   133
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   134
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   135
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   136
      </TR>
juanpablo@378
   137
      <TR > 
asier@528
   138
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpMTransactionId" value="xx" onclick="cargarDatos('xx');return true;"  id="fieldMTransactionId"></INPUT></SPAN>
juanpablo@378
   139
        </TD>
juanpablo@378
   140
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   141
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   142
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   143
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   144
        <TD width="21%" id="fieldMovementType">xxxxFortac 10-200-104 30x40</TD>
juanpablo@378
   145
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   146
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   147
      </TR>
juanpablo@378
   148
      <TR > 
asier@528
   149
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpMTransactionId" value="xx" onclick="cargarDatos('xx');return true;"  id="fieldMTransactionId"></INPUT></SPAN>
juanpablo@378
   150
        </TD>
juanpablo@378
   151
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   152
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   153
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   154
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   155
        <TD width="21%" id="fieldMovementType">xxxxFortac 10-200-104 30x40</TD>
juanpablo@378
   156
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   157
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   158
      </TR>
juanpablo@378
   159
      <TR > 
asier@528
   160
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpMTransactionId" value="xx" onclick="cargarDatos('xx');return true;"  id="fieldMTransactionId"></INPUT></SPAN>
juanpablo@378
   161
        </TD>
juanpablo@378
   162
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   163
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   164
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   165
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   166
        <TD width="21%" id="fieldMovementType">xxxxFortac 10-200-104 30x40</TD>
juanpablo@378
   167
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   168
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   169
      </TR>
juanpablo@378
   170
      <TR > 
asier@528
   171
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpMTransactionId" value="xx" onclick="cargarDatos('xx');return true;"  id="fieldMTransactionId"></INPUT></SPAN>
juanpablo@378
   172
        </TD>
juanpablo@378
   173
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   174
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   175
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   176
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   177
        <TD width="21%" id="fieldMovementType">xxxxFortac 10-200-104 30x40</TD>
juanpablo@378
   178
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   179
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   180
      </TR>
juanpablo@378
   181
      <TR > 
asier@528
   182
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpMTransactionId" value="xx" onclick="cargarDatos('xx');return true;"  id="fieldMTransactionId"></INPUT></SPAN>
juanpablo@378
   183
        </TD>
juanpablo@378
   184
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   185
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   186
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   187
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   188
        <TD width="21%" id="fieldMovementType">xxxxFortac 10-200-104 30x40</TD>
juanpablo@378
   189
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   190
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   191
      </TR>
juanpablo@378
   192
      <TR > 
asier@528
   193
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpMTransactionId" value="xx" onclick="cargarDatos('xx');return true;"  id="fieldMTransactionId"></INPUT></SPAN>
juanpablo@378
   194
        </TD>
juanpablo@378
   195
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   196
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   197
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   198
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   199
        <TD width="21%" id="fieldMovementType">xxxxFortac 10-200-104 30x40</TD>
juanpablo@378
   200
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   201
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   202
      </TR>
juanpablo@378
   203
      <TR > 
asier@528
   204
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpMTransactionId" value="xx" onclick="cargarDatos('xx');return true;"  id="fieldMTransactionId"></INPUT></SPAN>
juanpablo@378
   205
        </TD>
juanpablo@378
   206
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   207
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   208
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   209
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   210
        <TD width="21%" id="fieldMovementType">xxxxFortac 10-200-104 30x40</TD>
juanpablo@378
   211
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   212
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   213
      </TR>
juanpablo@378
   214
      <TR > 
asier@528
   215
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpMTransactionId" value="xx" onclick="cargarDatos('xx');return true;"  id="fieldMTransactionId"></INPUT></SPAN>
juanpablo@378
   216
        </TD>
juanpablo@378
   217
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   218
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   219
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   220
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   221
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   222
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   223
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   224
      </TR>
juanpablo@378
   225
      <TR > 
asier@528
   226
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpMTransactionId" value="xx" onclick="cargarDatos('xx');return true;"  id="fieldMTransactionId"></INPUT></SPAN>
juanpablo@378
   227
        </TD>
juanpablo@378
   228
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   229
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   230
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   231
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   232
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   233
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   234
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   235
      </TR>
juanpablo@378
   236
      <TR > 
asier@528
   237
        <TD width="2%"><SPAN class="Radio_container_NOT_Focused"><INPUT type="radio" name="inpMTransactionId" value="xx" onclick="cargarDatos('xx');return true;"  id="fieldMTransactionId"></INPUT></SPAN>
juanpablo@378
   238
        </TD>
juanpablo@378
   239
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   240
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   241
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   242
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   243
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   244
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   245
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   246
      </TR>
juanpablo@378
   247
    </DIV>
juanpablo@378
   248
  </TABLE>
juanpablo@378
   249
</FORM>
juanpablo@378
   250
</BODY>
juanpablo@378
   251
</HTML>