src/org/openbravo/erpCommon/ad_forms/MatchingPO-Receipt-Invoice_F4.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>
asier@528
    25
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
asier@528
    26
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
asier@528
    27
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
juanpablo@378
    28
<SCRIPT language="JavaScript" type="text/javascript">
juanpablo@378
    29
function cargarDatos() {
juanpablo@378
    30
	var radio=document.frmMain.inpClave;
juanpablo@378
    31
	var cinco=parent.cinco;
juanpablo@378
    32
	var total=0;
juanpablo@378
    33
	if (cinco && cinco.document.frmMain) {
juanpablo@378
    34
		if (!radio) return false;
juanpablo@378
    35
		else if (!radio.length) {
juanpablo@378
    36
			if (radio.checked) {
juanpablo@378
    37
				if (document.frmMain.inpmProductId.value==eval("document.frmMain.inpProduct" + radio.value + ".value")) {
juanpablo@378
    38
					if (document.frmMain.inpsearchmode.value=="0") {
juanpablo@378
    39
						total += parseFloat(eval("document.frmMain.inpTotal" + radio.value + ".value"));
juanpablo@378
    40
					}
juanpablo@378
    41
					total -= parseFloat(eval("document.frmMain.inpMatched" + radio.value + ".value"));
juanpablo@378
    42
				} else {
juanpablo@378
    43
					radio.checked=false;
juanpablo@378
    44
				}
juanpablo@378
    45
			}
juanpablo@378
    46
		} else {
juanpablo@378
    47
			for (var i=0;i<radio.length;i++) {
juanpablo@378
    48
				if (radio[i].checked) {
juanpablo@378
    49
					if (document.frmMain.inpmProductId.value==eval("document.frmMain.inpProduct" + radio[i].value + ".value")) {
juanpablo@378
    50
						if (document.frmMain.inpsearchmode.value=="0") {
juanpablo@378
    51
							total += parseFloat(eval("document.frmMain.inpTotal" + radio[i].value + ".value"));
juanpablo@378
    52
						}
juanpablo@378
    53
						total -= parseFloat(eval("document.frmMain.inpMatched" + radio[i].value + ".value"));
juanpablo@378
    54
					} else {
juanpablo@378
    55
						radio[i].checked=false;
juanpablo@378
    56
					}
juanpablo@378
    57
				}
juanpablo@378
    58
			}
juanpablo@378
    59
		}
juanpablo@378
    60
		cinco.setMatching(total);
juanpablo@378
    61
	}
juanpablo@378
    62
	return true;
juanpablo@378
    63
}
juanpablo@378
    64
</SCRIPT>
asier@528
    65
	<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    66
	function onLoadDo(){
asier@528
    67
		this.windowTables = new Array(
asier@528
    68
		  new windowTableId('client')
asier@528
    69
		);
asier@528
    70
		setWindowTableParentElement();
asier@528
    71
		this.tabsTables = new Array(
asier@528
    72
		  new tabTableId('tdtopTabs')
asier@528
    73
		);
asier@528
    74
		setTabTableParentElement();
asier@528
    75
		enableShortcuts('edition');
asier@528
    76
		
asier@528
    77
asier@528
    78
		setWindowElementFocus('firstElement');
asier@528
    79
	}
asier@528
    80
asier@528
    81
	function onResizeDo(){
asier@528
    82
	}
asier@528
    83
	</SCRIPT>
juanpablo@378
    84
</HEAD>
asier@528
    85
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
juanpablo@378
    86
<FORM name="frmMain" method="POST" action="MatchingPO-Receipt-Invoice_FS.html">
juanpablo@378
    87
  <INPUT type="hidden" name="Command"></INPUT>
juanpablo@378
    88
  <INPUT type="hidden" name="inpmProductId" value="" id="paramProduct"></INPUT> 
juanpablo@378
    89
  <INPUT type="hidden" name="inpsearchmode" value="" id="paramSearchMode"></INPUT> 
juanpablo@378
    90
  <INPUT type="hidden" name="inpsourcedoc" value="" id="paramSourceDoc"></INPUT> 
juanpablo@378
    91
  <INPUT type="hidden" name="inpfinaldoc" value="" id="paramFinalDoc"></INPUT> 
juanpablo@378
    92
  <INPUT type="hidden" name="inpMatchLine" value="" id="paramMatchLine"></INPUT> 
juanpablo@378
    93
  <INPUT type="hidden" name="inpMatchQty"></INPUT>
juanpablo@378
    94
  <TABLE width="100%" border="1" cellspacing="0" cellpadding="0" >
juanpablo@378
    95
    <TR> 
asier@528
    96
      <td width="2%"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpCheckAll" onclick="marcarTodos(document.frmMain.inpClave, this.checked);cargarDatos();return true;" ></INPUT></SPAN>
juanpablo@378
    97
      </td>
juanpablo@378
    98
      <td width="13%">Doc. No.:</td>
juanpablo@378
    99
      <td width="10%">Date</td>
juanpablo@378
   100
      <td width="29%">Business Partner</td>
juanpablo@378
   101
      <td width="9%">Line No.:</td>
juanpablo@378
   102
      <td width="21%">Product</td>
juanpablo@378
   103
      <td width="7%">Quantity</td>
juanpablo@378
   104
      <td width="9%">Conformed</td>
juanpablo@378
   105
    </TR>
juanpablo@378
   106
    <DIV id="sectionDetail"> 
juanpablo@378
   107
      <TR > 
asier@528
   108
        <TD width="2%"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpClave" value="xx" onclick="cargarDatos();return true;"  id="fieldClave"></INPUT></SPAN>
juanpablo@378
   109
          <INPUT type="hidden" name="inpMatchedxx" value="xx" id="fieldMatchedImporte"></INPUT> 
juanpablo@378
   110
          <INPUT type="hidden" name="inpTotalxx" value="xx" id="fieldTotalImporte"></INPUT> 
juanpablo@378
   111
          <INPUT type="hidden" name="inpProductxx" value="xx" id="fieldProductLine"></INPUT>
juanpablo@378
   112
        </TD>
juanpablo@378
   113
        <TD width="13%" id="fieldDocumentNo" >xx12345</TD>
juanpablo@378
   114
        <TD width="10%" id="fieldDate" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   115
        <TD width="29%" id="fieldBpartnerDes">xxCementos Sarobe enterprise</TD>
juanpablo@378
   116
        <TD width="9%" id="fieldLineNo">xx10</TD>
juanpablo@378
   117
        <TD width="21%" id="fieldProductDes">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   118
        <TD width="7%" id="fieldQty" >xx45</TD>
juanpablo@378
   119
        <TD width="9%" id="fieldMatched" >xx45</TD>
juanpablo@378
   120
      </TR>
juanpablo@378
   121
    </DIV>
juanpablo@378
   122
    <DIV class="discard"> 
juanpablo@378
   123
      <TR > 
asier@528
   124
        <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
   125
        </TD>
juanpablo@378
   126
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   127
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   128
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   129
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   130
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   131
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   132
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   133
      </TR>
juanpablo@378
   134
      <TR > 
asier@528
   135
        <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
   136
        </TD>
juanpablo@378
   137
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   138
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   139
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   140
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   141
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   142
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   143
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   144
      </TR>
juanpablo@378
   145
      <TR > 
asier@528
   146
        <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
   147
        </TD>
juanpablo@378
   148
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   149
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   150
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   151
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   152
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   153
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   154
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   155
      </TR>
juanpablo@378
   156
      <TR > 
asier@528
   157
        <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
   158
        </TD>
juanpablo@378
   159
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   160
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   161
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   162
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   163
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   164
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   165
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   166
      </TR>
juanpablo@378
   167
      <TR > 
asier@528
   168
        <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
   169
        </TD>
juanpablo@378
   170
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   171
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   172
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   173
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   174
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   175
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   176
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   177
      </TR>
juanpablo@378
   178
      <TR > 
asier@528
   179
        <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
   180
        </TD>
juanpablo@378
   181
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   182
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   183
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   184
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   185
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   186
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   187
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   188
      </TR>
juanpablo@378
   189
      <TR > 
asier@528
   190
        <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
   191
        </TD>
juanpablo@378
   192
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   193
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   194
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   195
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   196
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   197
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   198
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   199
      </TR>
juanpablo@378
   200
      <TR > 
asier@528
   201
        <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
   202
        </TD>
juanpablo@378
   203
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   204
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   205
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   206
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   207
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   208
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   209
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   210
      </TR>
juanpablo@378
   211
      <TR > 
asier@528
   212
        <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
   213
        </TD>
juanpablo@378
   214
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   215
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   216
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   217
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   218
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   219
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   220
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   221
      </TR>
juanpablo@378
   222
      <TR > 
asier@528
   223
        <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
   224
        </TD>
juanpablo@378
   225
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   226
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   227
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   228
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   229
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   230
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   231
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   232
      </TR>
juanpablo@378
   233
      <TR > 
asier@528
   234
        <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
   235
        </TD>
juanpablo@378
   236
        <TD width="13%" id="fieldOrganization" >xx12345</TD>
juanpablo@378
   237
        <TD width="10%" id="fieldLocator" >xx15/03/2490&nbsp;</TD>
juanpablo@378
   238
        <TD width="29%" id="fieldMovementdate">xxCementos Sarobe enterprise</TD>
juanpablo@378
   239
        <TD width="9%" id="fieldProduct">xx10</TD>
juanpablo@378
   240
        <TD width="21%" id="fieldMovementType">xxFortac 10-200-104 30x40</TD>
juanpablo@378
   241
        <TD width="7%" id="fieldMovementqty" >xx45</TD>
juanpablo@378
   242
        <TD width="9%" id="fieldSRLine" >xx45</TD>
juanpablo@378
   243
      </TR>
juanpablo@378
   244
    </DIV>
juanpablo@378
   245
  </TABLE>
juanpablo@378
   246
</FORM>
juanpablo@378
   247
</BODY>
juanpablo@378
   248
</HTML>