src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Bank.html
author Gorka Gil <gorka.gil@openbravo.com>
Mon, 26 May 2008 11:32:48 +0000
changeset 1028 8b85368639cc
parent 961 e244d7005cd9
child 1039 14099eda9d8c
permissions -rw-r--r--
Manual windows of bug 0000436 Blank required fields don't take the focus
carlos@0
     1
<!--
carlos@0
     2
 *************************************************************************
carlos@0
     3
 * The contents of this file are subject to the Openbravo  Public  License
carlos@0
     4
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
carlos@0
     5
 * Version 1.1  with a permitted attribution clause; you may not  use this
carlos@0
     6
 * file except in compliance with the License. You  may  obtain  a copy of
carlos@0
     7
 * the License at http://www.openbravo.com/legal/license.html 
carlos@0
     8
 * Software distributed under the License  is  distributed  on  an "AS IS"
carlos@0
     9
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
carlos@0
    10
 * License for the specific  language  governing  rights  and  limitations
carlos@0
    11
 * under the License. 
carlos@0
    12
 * The Original Code is Openbravo ERP. 
carlos@0
    13
 * The Initial Developer of the Original Code is Openbravo SL 
carlos@0
    14
 * All portions are Copyright (C) 2001-2006 Openbravo SL 
carlos@0
    15
 * All Rights Reserved. 
carlos@0
    16
 * Contributor(s):  ______________________________________.
carlos@0
    17
 ************************************************************************
carlos@0
    18
-->
carlos@0
    19
<HTML>
carlos@0
    20
<HEAD>
carlos@0
    21
<TITLE>Create from Bank</TITLE>
carlos@0
    22
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
carlos@0
    23
  <LINK rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></LINK>
carlos@0
    24
  <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
carlos@0
    25
  <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
carlos@0
    26
  <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
carlos@0
    27
<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
carlos@0
    28
  <SCRIPT language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
carlos@0
    29
  <SCRIPT language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></SCRIPT>
carlos@0
    30
<SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
carlos@0
    31
<SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
asier@528
    32
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
asier@528
    33
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
asier@528
    34
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
carlos@0
    35
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
carlos@0
    36
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></SCRIPT>
carlos@0
    37
<script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
carlos@0
    38
<SCRIPT language="JavaScript" src="../../../../../web/js/calculator.js" type="text/javascript"></SCRIPT>
carlos@0
    39
<SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
asier@528
    40
 <script type="text/javascript">
carlos@0
    41
    dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
carlos@0
    42
  </script>
carlos@0
    43
<SCRIPT language="JavaScript" type="text/javascript">
carlos@0
    44
carlos@0
    45
david@347
    46
function enableLocalShortcuts() {
ivan@770
    47
  keyArray[keyArray.length] = new keyArrayItem("ENTER", "openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value, 'Command', 'KEY');", "inpcBpartnerId_DES", "null");
carlos@0
    48
}
carlos@0
    49
carlos@0
    50
function depurar(action) {
carlos@0
    51
  var frm=document.frmMain;
carlos@0
    52
	if (action=="FIND_BANK") {
carlos@0
    53
		if (frm.inpplanneddateFrom.value!=null && frm.inpplanneddateFrom.value!="" && !isValidDate(frm.inpplanneddateFrom.value, frm.inpplanneddateFrom.displayFormat)) {
gorka@1028
    54
			setWindowElementFocus(frm.inpplanneddateFrom);
carlos@0
    55
			frm.inpplanneddateFrom.select();
carlos@0
    56
			mensaje(5);
carlos@0
    57
			return false;
carlos@0
    58
		} else if (frm.inpplanneddateTo.value!=null && frm.inpplanneddateTo.value!="" && !isValidDate(frm.inpplanneddateTo.value, frm.inpplanneddateTo.displayFormat)) {
gorka@1028
    59
			setWindowElementFocus(frm.inpplanneddateTo);
carlos@0
    60
			frm.inpplanneddateTo.select();
carlos@0
    61
			mensaje(5);
carlos@0
    62
			return false;
carlos@0
    63
		} 
carlos@0
    64
	} else if (radioValue(frm.inpcPaymentId)==null) {
carlos@0
    65
		mensaje(1);
carlos@0
    66
		return false;
carlos@0
    67
	}
carlos@0
    68
  return true;
carlos@0
    69
}
carlos@0
    70
carlos@0
    71
function updatePrice(obj) {
carlos@0
    72
  if (obj==null) return false;
carlos@0
    73
  var price = document.frmMain.inpTotalPrice;
carlos@0
    74
  var actualValue = Number(eval("document.frmMain.inpPrice" + obj.value + ".value"));
carlos@0
    75
  if (obj.checked) price.value = Number(price.value) + actualValue;
carlos@0
    76
  else price.value = Number(price.value) - actualValue;
carlos@0
    77
  if (isNaN(price.value)) price.value = 0;
carlos@0
    78
  layer("paramTotalPrice", price.value, true);
carlos@0
    79
  return true;
carlos@0
    80
}
carlos@0
    81
carlos@0
    82
function marcarTodosPersonal(chk, bolMarcar) {
carlos@0
    83
  var updateValues=true;
carlos@0
    84
  if (bolMarcar==null) bolMarcar = false;
carlos@0
    85
  if (!chk) return false;
carlos@0
    86
  else if (!chk.length) {
carlos@0
    87
  	updateValues = (chk.checked!=bolMarcar);
carlos@0
    88
	chk.checked = bolMarcar;
carlos@0
    89
	if (updateValues) updatePrice(chk);
carlos@0
    90
  } else {
carlos@0
    91
    var total = chk.length;
carlos@0
    92
    for (var i=0;i<total;i++) {
carlos@0
    93
	    updateValues = (chk[i].checked!=bolMarcar);
carlos@0
    94
		chk[i].checked = bolMarcar;
carlos@0
    95
		if (updateValues) updatePrice(chk[i]);
carlos@0
    96
	}
carlos@0
    97
  }
carlos@0
    98
	return true;
carlos@0
    99
}
carlos@0
   100
carlos@0
   101
function actualizarDatos(clave, marcar) {
carlos@0
   102
	if (marcar==null) marcar=false;
carlos@0
   103
	var frm = document.frmMain;
carlos@0
   104
	frm.elements["inpplanneddate" + clave].disabled=!marcar;
carlos@0
   105
	return true;
carlos@0
   106
}
carlos@0
   107
carlos@0
   108
function cargarDatos(marcar) {
carlos@0
   109
	var radio=document.frmMain.inpcPaymentId;
carlos@0
   110
	if (marcar==null) marcar=false;
carlos@0
   111
  	var frm = document.frmMain;
carlos@0
   112
	if (!radio) return false;
carlos@0
   113
	else if (!radio.length) {
carlos@0
   114
    	radio.checked = marcar;
carlos@0
   115
    	frm.elements["inpplanneddate" + radio.value].disabled=!marcar;
carlos@0
   116
	} else if (radio.length > 20) {
carlos@0
   117
		return submitCommandForm('FIND_SETTLEMENT', true);
carlos@0
   118
	} else {
carlos@0
   119
    	var total = radio.length;
carlos@0
   120
		for (var i=0;i<total;i++) {
carlos@0
   121
      		radio[i].checked=marcar;
carlos@0
   122
			frm.elements["inpplanneddate" + radio[i].value].disabled=!marcar;
carlos@0
   123
		}
carlos@0
   124
	}
carlos@0
   125
	return true;
carlos@0
   126
}
carlos@0
   127
carlos@0
   128
function onloadFunctions() {
david@347
   129
  enableLocalShortcuts();
carlos@0
   130
}
asier@528
   131
</SCRIPT>	
asier@528
   132
<SCRIPT language="JavaScript" type="text/javascript">
asier@528
   133
	function onLoadDo(){
asier@528
   134
		this.windowTables = new Array(
david@628
   135
		  new windowTableId('client', 'frameButton', 'buttonSearch', 'frameButton'),
david@628
   136
		  new windowTableId('client2', 'frameButton', 'buttonOK', 'frameButton2'),
david@628
   137
		  new windowTableId('tdbottomButtons', 'frameButton2', 'buttonOK', 'frameButton2')
asier@528
   138
		);
asier@528
   139
		setWindowTableParentElement();
asier@528
   140
		enableShortcuts('popup');
asier@528
   141
		
asier@528
   142
		try {
asier@528
   143
		  onloadFunctions();
asier@528
   144
		} catch (e) {}
asier@528
   145
asier@528
   146
		setWindowElementFocus('firstElement');
asier@528
   147
	}
asier@528
   148
asier@528
   149
	function onResizeDo(){
asier@528
   150
	}
asier@528
   151
	</SCRIPT>
asier@528
   152
</HEAD>
asier@528
   153
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
carlos@0
   154
<FORM id="form" method="POST" action="../ad_actionButton/CreateFrom.html" name="frmMain">
carlos@0
   155
<INPUT type="hidden" name="Command">
carlos@0
   156
<INPUT type="hidden" name="IsPopUpCall" value="1">
carlos@0
   157
<INPUT type="hidden" name="inpKey" value="" id="paramKey">
carlos@0
   158
<INPUT type="hidden" name="inpTableId" value="" id="paramTableId">
carlos@0
   159
<INPUT type="hidden" name="inpProcessId" value="" id="paramProcessId">
carlos@0
   160
<INPUT type="hidden" name="inpPath" value="" id="paramPath">
carlos@0
   161
<INPUT type="hidden" name="inpWindowId" value="" id="paramWindowId">
carlos@0
   162
<INPUT type="hidden" name="inpTabName" value="" id="paramTabName">
carlos@0
   163
<INPUT type="hidden" name="inpstatementdate" value="" id="paramStatementDate">
carlos@0
   164
  <div class="Popup_ContentPane_CircleLogo">
carlos@0
   165
    <div class="Popup_WindowLogo">
carlos@0
   166
      <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/></img>
carlos@0
   167
    </div>
carlos@0
   168
  </div>
carlos@0
   169
carlos@0
   170
  <table cellspacing="0" cellpadding="0" width="100%">
carlos@0
   171
carlos@0
   172
    <tr>
carlos@0
   173
      <td>
carlos@0
   174
        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
carlos@0
   175
          <tr class="Popup_NavBar_bg"><td></td>
carlos@0
   176
            <td class="Popup_NavBar_separator_cell"></td>
carlos@0
   177
            <td class="Popup_NavBar_bg_logo_left"></td>
carlos@0
   178
            <td class="Popup_NavBar_bg_logo" width="1" onclick="abrirNuevoBrowser('http://www.openbravo.com', 'Openbravo');return false;"><IMG src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
carlos@0
   179
            <td class="Popup_NavBar_bg_logo_right"></td>
carlos@0
   180
            <td class="Popup_NavBar_Popup_title_cell"><span>Create from Bank</span></td>
carlos@0
   181
            <td class="Popup_NavBar_separator_cell"></td>
carlos@0
   182
          </tr>
carlos@0
   183
        </table>
carlos@0
   184
      </td>
carlos@0
   185
    </tr>
carlos@0
   186
carlos@0
   187
    <tr>
carlos@0
   188
      <td>
carlos@0
   189
        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
carlos@0
   190
          <tr>
carlos@0
   191
            <td class="Popup_SeparatorBar_bg"></td>
carlos@0
   192
          </tr>
carlos@0
   193
        </table>
carlos@0
   194
      </td>
carlos@0
   195
    </tr>
carlos@0
   196
carlos@0
   197
    <tr>
carlos@0
   198
      <td>
asier@528
   199
        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client">
carlos@0
   200
carlos@0
   201
           <!-- MessageBox -->
carlos@0
   202
                <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
carlos@0
   203
  <TBODY>
carlos@0
   204
  <tr class="MessageBox_TopMargin">
carlos@0
   205
    <td class="MessageBox_LeftMargin"></td>
carlos@0
   206
    <td></td>
carlos@0
   207
    <td class="MessageBox_RightMargin"></td>
carlos@0
   208
  </tr>
carlos@0
   209
  <tr>
carlos@0
   210
    <td class="MessageBox_LeftMargin"></td>
carlos@0
   211
    <td>
carlos@0
   212
carlos@0
   213
      <table cellpadding="0" cellspacing="0" style="width: 100%;">
carlos@0
   214
        <TBODY>
carlos@0
   215
        <tr>
carlos@0
   216
          <td>
carlos@0
   217
            <div class="MessageBox_TopLeft"></div>
carlos@0
   218
            <div class="MessageBox_Left"></div>
carlos@0
   219
          </td>
carlos@0
   220
          <td class="MessageBox_bg">
carlos@0
   221
carlos@0
   222
            <table class="MessageBox_Top">
carlos@0
   223
            <TBODY>
carlos@0
   224
              <tr>
carlos@0
   225
                <td>
carlos@0
   226
                  <span>
carlos@0
   227
                  <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
carlos@0
   228
                    <TBODY>
carlos@0
   229
                    <tr>
carlos@0
   230
                      <td class="MessageBox_Icon_ContentCell">
carlos@0
   231
                        <div class="MessageBox_Icon"></div>
carlos@0
   232
                      </td>
carlos@0
   233
                      <td style="vertical-align: top;" id="messageBoxIDContent">
carlos@0
   234
                        <span>
carlos@0
   235
                          <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
carlos@0
   236
                            xxInfo: AccessTableWithNoView
carlos@0
   237
                          </div>
carlos@0
   238
                          <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
carlos@0
   239
                            xxThe current information is empty.
carlos@0
   240
                          </div>
carlos@0
   241
                          <div class="MessageBox_TextSeparator"></div>
carlos@0
   242
                        </span>
carlos@0
   243
                      </td>
carlos@0
   244
                    </tr>
carlos@0
   245
                    </TBODY>
carlos@0
   246
                  </table>
carlos@0
   247
                  </span>
carlos@0
   248
                </td>
carlos@0
   249
              </tr>
carlos@0
   250
              </TBODY>
carlos@0
   251
            </table>
carlos@0
   252
carlos@0
   253
          </td>
carlos@0
   254
          <td class="MessageBox_RightTrans">
carlos@0
   255
            <div class="MessageBox_TopRight"></div>
carlos@0
   256
            <div class="MessageBox_Right"></div>
carlos@0
   257
          </td>
carlos@0
   258
        </tr>
carlos@0
   259
        <tr>
carlos@0
   260
          <td rowspan="2" class="MessageBox_BottomLeft">
carlos@0
   261
          </td>
carlos@0
   262
          <td class="MessageBox_BottomTrans MessageBox_bg">
carlos@0
   263
          </td>
carlos@0
   264
          <td rowspan="2" class="MessageBox_BottomRight">
carlos@0
   265
          </td>
carlos@0
   266
        </tr>
carlos@0
   267
        <tr>
carlos@0
   268
          <td class="MessageBox_Bottom">
carlos@0
   269
          </td>
carlos@0
   270
        </tr>
carlos@0
   271
        </TBODY>
carlos@0
   272
      </table>
carlos@0
   273
carlos@0
   274
    </td>
carlos@0
   275
    <td class="MessageBox_RightMargin"></td>
carlos@0
   276
  </tr>
carlos@0
   277
  <tr class="MessageBox_BottomMargin">
carlos@0
   278
    <td class="MessageBox_LeftMargin"></td>
carlos@0
   279
    <td></td>
carlos@0
   280
    <td class="MessageBox_RightMargin"></td>
carlos@0
   281
  </tr>
carlos@0
   282
  </TBODY>
carlos@0
   283
</table>
carlos@0
   284
    <!-- MessageBox END -->
carlos@0
   285
carlos@0
   286
          <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
carlos@0
   287
            <tr>
carlos@0
   288
              <td class="TableEdition_OneCell_width"></td>
carlos@0
   289
              <td class="TableEdition_OneCell_width"></td>
carlos@0
   290
              <td class="TableEdition_OneCell_width"></td>
carlos@0
   291
              <td class="TableEdition_OneCell_width"></td>
carlos@0
   292
              <td class="TableEdition_OneCell_width"></td>
carlos@0
   293
              <td class="TableEdition_OneCell_width"></td>
carlos@0
   294
            </tr>
carlos@0
   295
            <TR>
carlos@0
   296
              <td colspan="6">
carlos@0
   297
                <table class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
carlos@0
   298
                <tbody>
carlos@0
   299
                  <tr class="FieldGroup_TopMargin"/>
carlos@0
   300
                  <tr>
carlos@0
   301
                    <td class="FieldGroupTitle_Left"><img class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
carlos@0
   302
                    <td class="FieldGroupTitle">Filters</td>
carlos@0
   303
                    <td class="FieldGroupTitle_Right"><img class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"/></td>
carlos@0
   304
                    <td class="FieldGroupContent"/>
carlos@0
   305
                  </tr>
carlos@0
   306
                  <tr class="FieldGroup_BottomMargin"/>
carlos@0
   307
                </tbody>
carlos@0
   308
                </table>
carlos@0
   309
              </td>
carlos@0
   310
            </TR>
carlos@0
   311
carlos@0
   312
            <tr>
carlos@0
   313
carlos@0
   314
              <td class="TitleCell">
carlos@0
   315
                <SPAN class="LabelText">Business Partner</SPAN>
carlos@0
   316
              </td>
carlos@0
   317
              <TD class="TextBox_ContentCell" colspan="2">
carlos@0
   318
                <TABLE border="0" cellspacing="0" cellpadding="0" summary="" style="padding-top: 0px;">
carlos@0
   319
                  <TR>
carlos@0
   320
                    <td class="TextBox_btn_OneCell">
carlos@0
   321
                      <INPUT type="hidden" name="inpcBpartnerId" id="fieldCBPartnerID" value="">
carlos@0
   322
                      <INPUT type="text" dojoType="openbravo:ValidationTextBox" class="TextBox_btn_TwoCells_width" maxlength="22" name="inpcBpartnerId_DES" id="inpCBPartnerID_DES" value="" ></INPUT><SCRIPT>djConfig.searchIds.push("inpCBPartnerID_DES");</SCRIPT>
carlos@0
   323
                    </td>
carlos@0
   324
                  <td class="TextBox_btn_OneCell">
ivan@770
   325
                    <a onclick="openSearch(null, null, '../info/BusinessPartner.html', 'SELECTOR_BUSINESS', false, 'frmMain', 'inpcBpartnerId', 'inpcBpartnerId_DES', document.frmMain.inpcBpartnerId_DES.value);return false;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onblur="window.status=''; return true;" onfocus="setWindowElementFocus(this); window.status='Business Partner '; return true;" href="#" class="FieldButtonLink" id="C_Bpartner_IDlinkBusinessPartner">
carlos@0
   326
                      <table onmouseout="this.className='FieldButton'; window.status=''; return true;" onmouseover="this.className='FieldButton_hover'; window.status='Business Partner '; return true;" onmouseup="this.className='FieldButton'; return true;" onmousedown="this.className='FieldButton_active'; return true;" class="FieldButton">
carlos@0
   327
                        <tbody>
carlos@0
   328
                          <tr>
carlos@0
   329
                            <td class="FieldButton_bg">
carlos@0
   330
                              <img border="0" src="../../../../../web/images/blank.gif" title="Business Partner " class="FieldButton_Icon FieldButton_Icon_BusinessPartner" alt="Business Partner" id="buttonBPartner"/>
carlos@0
   331
                          </td>
carlos@0
   332
                        </tr>
carlos@0
   333
                      </tbody>
carlos@0
   334
                      </table>
carlos@0
   335
                    </a>
carlos@0
   336
                  </td>
carlos@0
   337
                  </TR>
carlos@0
   338
                </TABLE>
carlos@0
   339
              </TD>
carlos@0
   340
              <TD class="TitleCell"></TD>
asier@528
   341
              <TD class="TitleCell"><SPAN class="LabelText">Payment Rule</SPAN></TD>
carlos@0
   342
              <TD class="Combo_ContentCell">
carlos@0
   343
                <SELECT name="inppaymentrule" class="Combo Combo_OneCell_width" id="inppaymentrule">
carlos@0
   344
                  <OPTION value=""></OPTION><DIV id="reportPaymentRule"></DIV>
carlos@0
   345
                </SELECT>
carlos@0
   346
              </TD>
carlos@0
   347
            </tr>
carlos@0
   348
carlos@0
   349
            <tr>
asier@528
   350
              <TD class="TitleCell"><SPAN class="LabelText">Receipt type</SPAN></TD>
carlos@0
   351
              <TD class="Combo_ContentCell">
carlos@0
   352
                <SELECT name="inpisreceipt" id="inpisreceipt" class="Combo Combo_OneCell_width">
carlos@0
   353
                <OPTION value="">All</OPTION>
carlos@0
   354
                <OPTION value="N" id="fieldIsReceiptPago">Payment</OPTION>
carlos@0
   355
                <OPTION value="Y" id="fieldIsReceiptCobro">Collection</OPTION></SELECT>
carlos@0
   356
              </TD>
carlos@0
   357
asier@528
   358
              <td class="TitleCell"><SPAN class="LabelText">From Date planned</SPAN></td>
carlos@0
   359
              <td class="TextBox_btn_ContentCell">
carlos@0
   360
                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
carlos@0
   361
                  <tr>
carlos@0
   362
                    <td class="TextBox_ContentCell">
carlos@0
   363
                      <INPUT dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddateFrom" id="inpPlannedDateFrom" size="10" maxlength="10" value="" onkeyup="auto_complete_date(this.textbox, this.displayFormat);return true;"></INPUT><script>djConfig.searchIds.push("inpPlannedDateFrom");</script>
carlos@0
   364
                    </td>
carlos@0
   365
                    <td class="FieldButton_ContentCell">
asier@528
   366
                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="showCalendar('frmMain.inpplanneddateFrom', document.frmMain.inpplanneddateFrom.value, false);return false;" >
carlos@0
   367
                      <table class="FieldButton"onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
carlos@0
   368
                        <tr>
carlos@0
   369
                          <td class="FieldButton_bg">
carlos@0
   370
                            <IMG alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0" id="buttonCalendar"></IMG>
carlos@0
   371
                          </td>
carlos@0
   372
                        </tr>
carlos@0
   373
                      </table>
carlos@0
   374
                      </a>
carlos@0
   375
                    </td>
carlos@0
   376
                  </tr>
carlos@0
   377
                </table>
carlos@0
   378
              </td>
asier@528
   379
              <td class="TitleCell"><SPAN class="LabelText">To Date planned</SPAN></td>
carlos@0
   380
              <td class="TextBox_btn_ContentCell">
carlos@0
   381
                <table border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
carlos@0
   382
                  <tr>
carlos@0
   383
                    <td class="TextBox_ContentCell">
carlos@0
   384
                      <INPUT dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddateTo" id="inpPlannedDateTo" size="10" maxlength="10" value="" onkeyup="auto_complete_date(this.textbox, this.displayFormat);return true;"></INPUT><script>djConfig.searchIds.push("inpPlannedDateTo");</script>
carlos@0
   385
                    </td>
carlos@0
   386
                    <td class="FieldButton_ContentCell">
asier@528
   387
                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Calendar'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="showCalendar('frmMain.inpplanneddateTo', document.frmMain.inpplanneddateTo.value, false);return false;">
carlos@0
   388
                      <table class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
carlos@0
   389
                        <tr>
carlos@0
   390
                          <td class="FieldButton_bg">
carlos@0
   391
                            <IMG alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0" id="buttonCalendar"></IMG>
carlos@0
   392
                          </td>
carlos@0
   393
                        </tr>
carlos@0
   394
                      </table>
carlos@0
   395
                      </a>
carlos@0
   396
                    </td>
carlos@0
   397
                  </tr>
carlos@0
   398
                </table>
carlos@0
   399
              </td>
carlos@0
   400
            </tr>
carlos@0
   401
carlos@0
   402
            <tr>
carlos@0
   403
asier@528
   404
              <TD class="TitleCell"><SPAN class="LabelText">Account</SPAN></TD>
carlos@0
   405
              <TD class="Combo_ContentCell" colspan="2">
carlos@0
   406
                <SELECT name="inpcBankaccountId" id="inpcBankaccountId" class="Combo Combo_TwoCells_width">
carlos@0
   407
                  <OPTION value=""></OPTION>
carlos@0
   408
                  <DIV id="reportC_BankAccount_ID"></DIV></SELECT></TD>
carlos@0
   409
              </TD>
carlos@0
   410
              <TD class="TitleCell"></TD>
asier@528
   411
              <TD class="TitleCell"><SPAN class="LabelText">Organization</SPAN></TD>
carlos@0
   412
              <TD class="Combo_ContentCell">
carlos@0
   413
                <SELECT name="inpadOrgId" id="inpadOrgId" class="Combo Combo_OneCell_width">
carlos@0
   414
                <OPTION value=""></OPTION>
carlos@0
   415
                <DIV id="reportAD_Org_ID"></DIV></SELECT>
carlos@0
   416
              </TD>
carlos@0
   417
            </tr>
carlos@0
   418
carlos@0
   419
            <TR>
carlos@0
   420
              <TD class="TitleCell"><SPAN class="LabelText">Invoice No.</SPAN></TD>
carlos@0
   421
              <TD class="TextBox_ContentCell">
carlos@0
   422
                <INPUT type="text" dojotype="openbravo:ValidationTextBox" class="TextBox_OneCell_width" name="inpDocumentNo" id="inpDocumentNo" value="" ><script>djConfig.searchIds.push("inpDocumentNo");</script>
carlos@0
   423
              </TD>
carlos@0
   424
              <TD class="TitleCell"><SPAN class="LabelText">Amount FromĀ </SPAN> </TD>
carlos@0
   425
              <TD class="TextBox_btn_ContentCell">
carlos@0
   426
                  <TABLE border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
carlos@0
   427
                    <TR>
carlos@0
   428
                      <TD class="Textbox_ContentCell">
carlos@0
   429
                        <INPUT type="text" dojoType="openbravo:RealNumberTextbox" id="paramAmountFrom" class="dojoValidateValid TextBox_btn_OneCell_width"  value="" maxlength="10" name="inpamountFrom" onkeyup="" onchange="logChanges(this);return true;"></INPUT><script>djConfig.searchIds.push("paramAmountFrom");</script>
carlos@0
   430
                      </TD>
carlos@0
   431
                      <TD class="FieldButton_ContentCell">
asier@528
   432
                      <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount From'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;"  onclick="calculator('frmMain.inpamountFrom', document.frmMain.inpamountFrom.value, false);return false;">
carlos@0
   433
                      <TABLE class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;" id="NoPackageslinkCalc">
carlos@0
   434
                          <TR>
carlos@0
   435
                            <TD class="FieldButton_bg">
carlos@0
   436
                              <IMG alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount From" src="../../../../../web/images/blank.gif" border="0" id="buttonCalc"></IMG>
carlos@0
   437
                            </TD>
carlos@0
   438
                          </TR>
carlos@0
   439
                        </TABLE>
carlos@0
   440
                      </a>
carlos@0
   441
                      </TD>
carlos@0
   442
                    </TR>
carlos@0
   443
                  </TABLE>
carlos@0
   444
              </TD>
carlos@0
   445
carlos@0
   446
asier@528
   447
              <TD class="TitleCell"><SPAN class="LabelText">Amount To</SPAN> </TD>
carlos@0
   448
              <TD class="TextBox_btn_ContentCell">
carlos@0
   449
                <TABLE border="0" cellspacing="0" cellpadding="0" summary="" class="">
carlos@0
   450
                  <TR>
carlos@0
   451
                    <TD class="Textbox_ContentCell">
carlos@0
   452
                        <INPUT type="text" dojoType="openbravo:RealNumberTextbox" id="paramAmountTo" class="dojoValidateValid TextBox_btn_OneCell_width"  value="" maxlength="10" name="inpamountTo" onkeyup="" onchange="logChanges(this);return true;"></INPUT><script>djConfig.searchIds.push("paramAmountTo");</script>
carlos@0
   453
                    </TD>
carlos@0
   454
carlos@0
   455
                    <TD class="FieldButton_ContentCell">
asier@528
   456
                    <a class="FieldButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Amount From'; return true;" onblur=" window.status=''; return true;" onkeypress="this.className='FieldButtonLink_active'; return true;" onkeyup="this.className='FieldButtonLink_focus'; return true;" onclick="calculator('frmMain.inpamountTo', document.frmMain.inpamountTo.value, false);return false;">
carlos@0
   457
                    <TABLE class="FieldButton" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;" id="NoPackageslinkCalc">
carlos@0
   458
                        <TR>
carlos@0
   459
                          <TD class="FieldButton_bg">
carlos@0
   460
                            <IMG alt="Calculator" class="FieldButton_Icon FieldButton_Icon_Calc" title="Amount to" src="../../../../../web/images/blank.gif" border="0" id="buttonCalc"></IMG>
carlos@0
   461
                          </TD>
carlos@0
   462
                        </TR>
carlos@0
   463
                      </TABLE>
carlos@0
   464
                    </a>
carlos@0
   465
                    </TD>
carlos@0
   466
                  </TR>
carlos@0
   467
                </TABLE>
carlos@0
   468
              </TD>
carlos@0
   469
            </tr>
carlos@0
   470
carlos@0
   471
            <tr>
asier@528
   472
              <TD class="TitleCell"><SPAN class="LabelText">Only Applied</SPAN> </TD>
carlos@0
   473
              <TD class="Radio_Check_ContentCell"> 
asier@528
   474
                <SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpCharge" value="Y" id="paramCharge"></INPUT></SPAN></TD>
carlos@0
   475
              <TD class="TitleCell"></TD>
carlos@0
   476
              <TD class="TitleCell"></TD>
carlos@0
   477
              <TD class="TitleCell"></TD>
carlos@0
   478
              <TD class="TitleCell"></TD>
carlos@0
   479
            </tr>
carlos@0
   480
carlos@0
   481
            <tr><td height="20px"></tr>
carlos@0
   482
carlos@0
   483
            <tr>
carlos@0
   484
              <td class="TitleCell"></td>
carlos@0
   485
              <td class="Button_RightAlign_ContentCell">
carlos@0
   486
                <div>
david@628
   487
                  <a class="ButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Search'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_focus'; return true;" onclick="submitCommandForm('FIND_BANK', false, null, null, '_self');return false;" id="buttonSearch">
carlos@0
   488
                  <table class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Search';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">
carlos@0
   489
                    <tr>
carlos@0
   490
                      <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Search" title="Search" src="../../../../../web/images/blank.gif" border=0/></td>
carlos@0
   491
                      <td class="Button_text Button_width">Search</td>
carlos@0
   492
                      <td class="Button_right"></td>
carlos@0
   493
                    </tr>
carlos@0
   494
                  </table>
carlos@0
   495
                  </a>
carlos@0
   496
                </div>
carlos@0
   497
              </td>
carlos@0
   498
              <td class="Button_LeftAlign_ContentCell">
carlos@0
   499
              </td>
carlos@0
   500
              <TD class="TitleCell"></TD>
carlos@0
   501
              <TD class="TitleCell"></TD>
carlos@0
   502
              <TD class="TitleCell"></TD>
carlos@0
   503
            </tr>
carlos@0
   504
          </table>
carlos@0
   505
        </div>
carlos@0
   506
      </tr>
carlos@0
   507
    </td>
carlos@0
   508
  </table>
carlos@0
   509
<div style="height:15px;"></div>
carlos@0
   510
<table cellspacing="0" cellpadding="0" width="100%" style="text-align:-moz-center;_text-align:center;">
asier@528
   511
  <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client2">
carlos@0
   512
    <TABLE cellspacing="0" cellpadding="0" border="0">
carlos@0
   513
      <tr>
carlos@0
   514
carlos@0
   515
        <td class="TitleCell">
carlos@0
   516
          <SPAN class="LabelText">Total amount</SPAN>
carlos@0
   517
        </td>
carlos@0
   518
        <td style="width: 10px;"></td>
carlos@0
   519
        <td class="TitleCell">
carlos@0
   520
          <SPAN class="Label_ReadOnly_Text" id="paramTotalPrice">0</SPAN>
carlos@0
   521
          <INPUT type="hidden" name="inpTotalPrice" value="0">
carlos@0
   522
        </TD>
carlos@0
   523
carlos@0
   524
        <td style="width: 20px;"></td>
carlos@0
   525
carlos@0
   526
        <td class="TitleCell">
carlos@0
   527
          <SPAN class="LabelText">Proposal date</SPAN>
carlos@0
   528
        <TD class="TextBox_btn_ContentCell" colspan="6">
carlos@0
   529
          <TABLE border="0" cellspacing="0" cellpadding="0" summary=""  style="padding-top: 0px;">
carlos@0
   530
            <TR>
carlos@0
   531
              <TD class="TextBox_ContentCell">
carlos@0
   532
                <INPUT dojoType="openbravo:DateTextbox" displayFormat="xx" saveFormat="yy"  class="TextBox_btn_OneCell_width" type="text" name="inpplanneddate" id="inpterplanneddate" size="10" maxlength="10" value="" onkeyup="auto_complete_date(this.textbox, this.displayFormat);return true;"></INPUT><SCRIPT>djConfig.searchIds.push("inpterplanneddate");</SCRIPT>
carlos@0
   533
              </TD>
carlos@0
   534
              <TD class="FieldButton_ContentCell">
carlos@0
   535
                <TABLE class="FieldButton" onclick="showCalendar('frmMain.inpplanneddate', document.frmMain.inpplanneddate.value, false);return false;" onmouseout="this.className='FieldButton';window.status='';return true;" onmouseover="this.className='FieldButton_hover';window.status='Show calendar';return true;" onmousedown="this.className='FieldButton_active';return true;" onmouseup="this.className='FieldButton';return true;">
carlos@0
   536
                  <TR>
carlos@0
   537
                    <TD class="FieldButton_bg">
carlos@0
   538
                      <IMG alt="Calendar" class="FieldButton_Icon FieldButton_Icon_Calendar" title="Calendar" src="../../../../../web/images/blank.gif" border="0"></IMG>
carlos@0
   539
                    </TD>
carlos@0
   540
                  </TR>
carlos@0
   541
                </TABLE>
carlos@0
   542
              </TD>
carlos@0
   543
            </TR>
carlos@0
   544
          </TABLE>
carlos@0
   545
        </TD>
carlos@0
   546
      </tr>
carlos@0
   547
    </table>
carlos@0
   548
  </div>
carlos@0
   549
carlos@0
   550
  <div class="Popup_ContentPane_Client" style="overflow: auto; width:895px; height:215px;">
carlos@0
   551
    <table cellspacing="0" cellpadding="0" width="100%" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;">
carlos@0
   552
carlos@0
   553
      <TR class="DataGrid_Body_Row">
asier@528
   554
        <TH width="3%" class="DataGrid_Header_LineNoCell DataGrid_Body_Cell_CheckBox"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpTodos" onclick="marcarTodosPersonal(document.frmMain.inpcPaymentId, this.checked);return true;"></INPUT></SPAN></TH>
carlos@0
   555
        <TH width="10%" colspan="3" class="DataGrid_Header_Cell">Payment</TH>
carlos@0
   556
        <TH width="10%" class="DataGrid_Header_Cell">Invoice</TH>
carlos@0
   557
        <TH width="23%" colspan="4" class="DataGrid_Header_Cell">Account</TH>
carlos@0
   558
      </TR>
carlos@0
   559
carlos@0
   560
      <TR class="DataGrid_Body_Row">
carlos@0
   561
        <TH class="DataGrid_Header_LineNoCell DataGrid_Body_Cell_CheckBox"></TD>
carlos@0
   562
        <TH width="8%" class="DataGrid_Header_Cell">Date</TH>
carlos@0
   563
        <TH width="12%" class="DataGrid_Header_Cell">Organization</TH>
carlos@0
   564
        <TH width="12%" class="DataGrid_Header_Cell">Currency</TH>
carlos@0
   565
        <TH width="12%" class="DataGrid_Header_Cell">Amount</TH>
carlos@0
   566
        <TH width="6%" class="DataGrid_Header_Cell">Conversion</TH>
carlos@0
   567
        <TH width="8%" class="DataGrid_Header_Cell">Proposal date</TH>
carlos@0
   568
        <TH width="6%" colspan="2" class="DataGrid_Header_Cell">Cost</TH>
carlos@0
   569
      </TR>
carlos@0
   570
carlos@0
   571
      <DIV id="sectionDetail">
carlos@0
   572
carlos@0
   573
        <TR class="DataGrid_Body_Row DataGrid_Body_Row_yy" id="funcEvenOddRowxx">
asier@528
   574
          <TD class="DataGrid_Body_LineNoCell DataGrid_Body_Cell_CheckBox" style="border-bottom-width:0px; border-bottom: none;"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpcPaymentId" value="" id="fieldCPaymentId" onclick="updatePrice(this);return true;"></INPUT></SPAN><INPUT type="hidden" name="inpPricexx" value="" id="fieldPrice"></TD>
carlos@0
   575
          <TD class="DataGrid_Body_Cell" id="fieldPayment" colspan="3">xxUOM</TD>
carlos@0
   576
          <TD class="DataGrid_Body_Cell" id="fieldInvoice">xxInvoice</TD>
carlos@0
   577
          <TD class="DataGrid_Body_Cell" id="fieldBank" colspan="4">xx</TD>
carlos@0
   578
        </TR>
carlos@0
   579
carlos@0
   580
        <TR class="DataGrid_Body_Row DataGrid_Body_Row_yy">
carlos@0
   581
          <TD class="DataGrid_Body_LineNoCell DataGrid_Body_Cell_CheckBox" style="border-bottom-width:3px"></TD>
carlos@0
   582
          <TD class="DataGrid_Body_Cell" id="fieldDate" style="border-bottom-width:3px">xxQuantity</TD>
carlos@0
   583
          <TD class="DataGrid_Body_Cell" id="fieldOrg" style="border-bottom-width:3px">xx</TD>
carlos@0
   584
          <TD class="DataGrid_Body_Cell" id="fieldCurrency" style="border-bottom-width:3px">xxProduct</TD>
carlos@0
   585
          <TD class="DataGrid_Body_Cell" id="fieldAmount" style="border-bottom-width:3px">xx</TD>
carlos@0
   586
          <TD class="DataGrid_Body_Cell" id="fieldConverted" style="border-bottom-width:3px">xx</TD>
carlos@0
   587
          <TD class="DataGrid_Body_Cell" style="border-bottom-width:3px"><INPUT class="dojoValidateValid" name="inpplanneddatexx" type="text" id="inpterplanneddate" maxlength="10" size="9" value="" onkeyup="auto_complete_date(this);return true;"></TD>
carlos@0
   588
          <TD class="DataGrid_Body_Cell" style="border-bottom-width:3px"><INPUT class="dojoValidateValid" name="inpcostxx" type="text" id="parameterCost" maxlength="8" value=""></TD>
carlos@0
   589
        </TR>
carlos@0
   590
carlos@0
   591
      </DIV>
carlos@0
   592
    </TABLE>
carlos@0
   593
  </div>
carlos@0
   594
carlos@0
   595
carlos@0
   596
  </td>
carlos@0
   597
</tr>
carlos@0
   598
</table>
carlos@0
   599
</div>
carlos@0
   600
</table>
carlos@0
   601
carlos@0
   602
carlos@0
   603
</FORM>
carlos@0
   604
</BODY>
carlos@0
   605
</HTML>