modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/SelectExpectedPayments.html
changeset 9076 c4f1a5c7d7c2
child 10028 96d3e090f851
equal deleted inserted replaced
9075:b3ea04de2722 9076:c4f1a5c7d7c2
       
     1 <?xml version="1.0" encoding="UTF-8" ?>
       
     2 <!--
       
     3  *************************************************************************
       
     4  * The contents of this file are subject to the Openbravo  Public  License
       
     5  * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
       
     6  * Version 1.1  with a permitted attribution clause; you may not  use this
       
     7  * file except in compliance with the License. You  may  obtain  a copy of
       
     8  * the License at http://www.openbravo.com/legal/license.html
       
     9  * Software distributed under the License  is  distributed  on  an "AS IS"
       
    10  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
       
    11  * License for the specific  language  governing  rights  and  limitations
       
    12  * under the License.
       
    13  * The Original Code is Openbravo ERP.
       
    14  * The Initial Developer of the Original Code is Openbravo SLU
       
    15  * All portions are Copyright (C) 2010 Openbravo SLU
       
    16  * All Rights Reserved.
       
    17  * Contributor(s):  ______________________________________.
       
    18  *************************************************************************
       
    19 -->
       
    20 <html>
       
    21 <head>
       
    22 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
       
    23 <title>Select Expected Payments</title>
       
    24 <link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
       
    25 <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS"></link>
       
    26 
       
    27 <script language="JavaScript" type="text/javascript" id="paramDirectory">
       
    28   var baseDirectory = "../../../../../web/";
       
    29 </script>
       
    30 <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
       
    31 <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
       
    32 <script language="JavaScript" type="text/javascript" id="paramLanguage">
       
    33   var defaultLang = "en_US";
       
    34 </script>
       
    35 <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
       
    36 <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
       
    37 <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
       
    38 <script language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></script>
       
    39 <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
       
    40 <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
       
    41 <script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
       
    42 <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
       
    43 <script language="JavaScript" src="../../../../../web/org.openbravo.userinterface.selector/js/classic-skin-variable.js" type="text/javascript"></script>
       
    44 <script language="JavaScript" src="../../../../../web/../org.openbravo.client.kernel/OBCLKER_Kernel/StaticResources" type="text/javascript"></script>
       
    45 <script language="JavaScript" src="../../../../../web/js/calculator.js" type="text/javascript"></script>
       
    46 <script language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></script>
       
    47 <script language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></script>
       
    48 <script language="JavaScript" src="../../../../../web/js/default/DateTextBox.js" type="text/javascript"></script>
       
    49 <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
       
    50 <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
       
    51 <script language="JavaScript" src="../../../../../web/org.openbravo.advpaymentmngt/FIN_Utilities.js" type="text/javascript"></script>
       
    52 <script type="text/javascript">
       
    53   window.onunload = reloadOpener; // reloads opener on closing
       
    54 </script>
       
    55 
       
    56 <script language="JavaScript" type="text/javascript">
       
    57 function validate(action) {
       
    58   var frm = document.frmMain;
       
    59   if (action=='SAVE') {
       
    60     if (frm.inpActualPayment.value==null || frm.inpActualPayment.value=="") {
       
    61       setWindowElementFocus(frm.inpActualPayment);
       
    62       showJSMessage(7);
       
    63       return false;
       
    64     } else {
       
    65       var chk = frm.inpScheduledPaymentDetailId;
       
    66       if (!chk) return true;
       
    67       else if (!chk.length) {
       
    68         if (chk.checked) {
       
    69           var pendingAmount = document.frmMain.elements["inpRecordAmt"+chk.value].value;
       
    70           var amount = document.frmMain.elements["inpPaymentAmount"+chk.value].value;
       
    71           if (amount==null || amount=="") {
       
    72             setWindowElementFocus(frm.elements["inpPaymentAmount"+chk.value]);
       
    73             showJSMessage(7);
       
    74             return false;
       
    75           }
       
    76           if ( compare(pendingAmount, '<', amount) ) {
       
    77             setWindowElementFocus(frm.elements["inpPaymentAmount"+chk.value]);
       
    78             showJSMessage(9);
       
    79             return false;
       
    80           }
       
    81         }
       
    82       } else {
       
    83         var total = chk.length;
       
    84         for (var i=0;i<total;i++) {
       
    85           if (chk[i].checked ) {
       
    86             var pendingAmount = document.frmMain.elements["inpRecordAmt"+chk[i].value].value;
       
    87             var amount = document.frmMain.elements["inpPaymentAmount"+chk[i].value].value;
       
    88             if (amount==null || amount=="") {
       
    89               setWindowElementFocus(frm.elements["inpPaymentAmount"+chk[i].value]);
       
    90               showJSMessage(7);
       
    91               return false;
       
    92             }
       
    93             if ( compare(pendingAmount, '<', amount) ) {
       
    94               setWindowElementFocus(frm.elements["inpPaymentAmount"+chk[i].value]);
       
    95               showJSMessage(9);
       
    96               return false;
       
    97             }
       
    98           }
       
    99         }
       
   100       }
       
   101     }
       
   102   }
       
   103   return true;
       
   104 }
       
   105 </script>
       
   106 <script language="JavaScript" type="text/javascript">
       
   107 function closeThisPage() {
       
   108     parent.window.close();
       
   109     return true;
       
   110 }
       
   111 function submitThisPage(strCommand) {
       
   112   if (validate(strCommand)) {
       
   113     submitCommandForm(strCommand, false, null, null, '_top');
       
   114     return true;
       
   115   }
       
   116   return true;
       
   117 }
       
   118 
       
   119 function updateData(key, mark) {
       
   120   if (mark==null) mark=false;
       
   121   updateReadOnly(key, mark);
       
   122   var paymentAmount = document.frmMain.elements['inpPaymentAmount'+key];
       
   123   if (!isTrue('isReceipt')){
       
   124     if (mark && paymentAmount.value=='') {
       
   125       paymentAmount.value = document.frmMain.elements['inpRecordAmt'+key].value;
       
   126       paymentAmountOnChange(paymentAmount);
       
   127     }
       
   128   }
       
   129   updateTotal();
       
   130 
       
   131   return true;
       
   132 }
       
   133 
       
   134 function paymentAmountOnChange(element){
       
   135   updateDiffinTable(element);
       
   136   updateTotal();
       
   137 }
       
   138 function updateDiffinTable(element){
       
   139   var diffRowId = element.getAttribute('name').replace('inpPaymentAmount','');
       
   140   var amount = document.frmMain.elements["inpPaymentAmount"+diffRowId].value;
       
   141   var outstanding = document.frmMain.elements["inpRecordAmt"+diffRowId].value;
       
   142   var selTd = getElementsByName("inpDifference"+diffRowId, "td");
       
   143   selTd[0].innerHTML = subtract(outstanding, amount);
       
   144 }
       
   145 
       
   146 </script>
       
   147 <script language="JavaScript" type="text/javascript">
       
   148     function loadGridList() {
       
   149       try {
       
   150         var url = "../org.openbravo.advpaymentmngt.ad_actionbutton/SelectExpectedPayments.html";
       
   151         var paramXMLReq = null;
       
   152         return submitXmlHttpRequest(callBackGrid, document.frmMain, "GRIDLIST", url, false, null, paramXMLReq);
       
   153       } catch (e) {
       
   154         alert(e);
       
   155       }
       
   156     }
       
   157 
       
   158     function callBackGrid(paramXMLParticular, XMLHttpRequestObj) {
       
   159      var strText = "";
       
   160       if (getReadyStateHandler(XMLHttpRequestObj)) {
       
   161         try {
       
   162           if (XMLHttpRequestObj.responseText) {
       
   163             strText = XMLHttpRequestObj.responseText;
       
   164             var aux = strText.substring(29, strText.length-8);
       
   165             var tableBody = document.getElementById('sectionGrid');
       
   166             var browserName = getBrowserInfo('name');
       
   167             if (browserName.toUpperCase().indexOf('INTERNET EXPLORER') != -1) {
       
   168               var temp = document.createElement("span");
       
   169               temp.id = 'temp';
       
   170               temp.style.display = 'none';
       
   171               var newRows = '<table><tbody id=\"sectionGrid\">'+ aux;
       
   172               temp.innerHTML = newRows;
       
   173               tableBody.parentNode.replaceChild(temp.firstChild.firstChild, tableBody);
       
   174               temp.parentNode.removeChild(temp);
       
   175             }
       
   176             tableBody.innerHTML = aux;
       
   177             
       
   178             updateAll();
       
   179             updateTotal();
       
   180           } else {
       
   181             document.getElementById('sectionGrid').innerHTML = '';
       
   182           }
       
   183         } catch (e) {
       
   184         }
       
   185       }
       
   186       return true;
       
   187     }
       
   188 </script>
       
   189 <script language="JavaScript" type="text/javascript">
       
   190   function onLoadDo(){
       
   191     this.windowTables = new Array(
       
   192       new windowTableId('client_top', 'buttonProcess'),
       
   193       new windowTableId('client_middle', 'buttonProcess'),
       
   194       new windowTableId('client_botton', 'buttonProcess')
       
   195     );
       
   196 
       
   197     setWindowTableParentElement();
       
   198     enableShortcuts('popup');
       
   199     setBrowserAutoComplete(false);
       
   200 
       
   201     initFIN_Utilities(document.frmMain);
       
   202     try {
       
   203       onloadFunctions();
       
   204     } catch (e) {}
       
   205     displayLogicElement('sectionDifference', false);
       
   206     displayLogicElement('sectionDifferenceBox', false);
       
   207     processLabels()
       
   208 
       
   209     loadGridList();
       
   210     setWindowElementFocus('firstElement');
       
   211     resizeAreaInfo();
       
   212   }
       
   213 
       
   214   function onResizeDo(){
       
   215     resizeAreaInfo(true);
       
   216   }
       
   217 </script>
       
   218 </head>
       
   219 <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
       
   220 <form name="frmMain" method="post" action="SelectExpectedPayments.html">
       
   221   <input type="hidden" name="Command" />
       
   222   <input type="hidden" name="IsPopUpCall" value="1" />
       
   223   <input type="hidden" name="inpadOrgId" value="" id="fieldOrg"/>
       
   224   <input type="hidden" name="inpfinPaymentProposalId" value="" id="fieldPaymentProposal"/>
       
   225   <input type="hidden" name="inpadWindowId" value="" id="fieldWindowId"/>
       
   226   <input type="hidden" name="inpTabId" value="" id="fieldTabId"/>
       
   227   <input type="hidden" name="isReceipt" value="" id="fieldReceipt"/>
       
   228   <input type="hidden" name="isFirstLoad" value="true"/>
       
   229   <input type="hidden" name="inpExpectedPayment" value=""/>
       
   230   <input type="hidden" name="inpActualPayment" value=""/>
       
   231   <input type="hidden" name="inpUseCredit" value="N"/>
       
   232   <input type="hidden" name="inpCurrencyId" value="2" id="paramCurrency"/>
       
   233   <input type="hidden" name="curPrecision" value="2" id="paramPrecision"/>
       
   234   <div class="Popup_ContentPane_CircleLogo">
       
   235     <div class="Popup_WindowLogo">
       
   236       <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/></img>
       
   237     </div>
       
   238   </div>
       
   239   <table cellspacing="0" cellpadding="0" width="100%" id="table_header">
       
   240     <tr>
       
   241       <td>
       
   242         <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
       
   243           <tr class="Popup_NavBar_bg"><td></td>
       
   244             <td class="Popup_NavBar_separator_cell"></td>
       
   245             <td class="Popup_NavBar_bg_logo_left"></td>
       
   246             <td class="Popup_NavBar_bg_logo" width="1" onclick="openNewBrowser('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>
       
   247             <td class="Popup_NavBar_bg_logo_right"></td>
       
   248             <td class="Popup_NavBar_Popup_title_cell"><span id="paramTitle">xxSelect Expected Payments</span></td>
       
   249             <td class="Popup_NavBar_separator_cell"></td>
       
   250           </tr>
       
   251         </table>
       
   252       </td>
       
   253     </tr>
       
   254 
       
   255     <tr>
       
   256       <td>
       
   257         <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
       
   258           <tr>
       
   259             <td class="Popup_SeparatorBar_bg"></td>
       
   260           </tr>
       
   261         </table>
       
   262       </td>
       
   263     </tr>
       
   264 
       
   265   </table>
       
   266   <table cellspacing="0" cellpadding="0" width="100%">
       
   267     <tr>
       
   268       <td>
       
   269         <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_messagebox">
       
   270 
       
   271           <!-- MessageBox -->
       
   272           <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
       
   273             <tbody>
       
   274             <tr class="MessageBox_TopMargin">
       
   275               <td class="MessageBox_LeftMargin"></td>
       
   276               <td></td>
       
   277               <td class="MessageBox_RightMargin"></td>
       
   278             </tr>
       
   279             <tr>
       
   280               <td class="MessageBox_LeftMargin"></td>
       
   281               <td>
       
   282 
       
   283                 <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
       
   284                   <tbody>
       
   285                   <tr>
       
   286                     <td class="MessageBox_LeftTrans">
       
   287                       <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
       
   288                         <tbody>
       
   289                         <tr>
       
   290                           <td class="MessageBox_TopLeft"></td>
       
   291                         </tr>
       
   292                         <tr>
       
   293                           <td class="MessageBox_Left"></td>
       
   294                         </tr>
       
   295                         </tbody>
       
   296                       </table>
       
   297                     </td>
       
   298                     <td class="MessageBox_bg">
       
   299 
       
   300                       <table class="MessageBox_Top">
       
   301                       <tbody>
       
   302                         <tr>
       
   303                           <td>
       
   304                             <span>
       
   305                             <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
       
   306                               <tbody>
       
   307                               <tr>
       
   308                                 <td class="MessageBox_Icon_ContentCell">
       
   309                                   <div class="MessageBox_Icon"></div>
       
   310                                 </td>
       
   311                                 <td style="vertical-align: top;" id="messageBoxIDContent">
       
   312                                   <span>
       
   313                                     <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
       
   314                                       xxInfo: AccessTableWithNoView
       
   315                                     </div>
       
   316                                     <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
       
   317                                       xxThe current information is empty.
       
   318                                     </div>
       
   319                                     <div class="MessageBox_TextSeparator"></div>
       
   320                                   </span>
       
   321                                 </td>
       
   322                               </tr>
       
   323                               </tbody>
       
   324                             </table>
       
   325                             </span>
       
   326                           </td>
       
   327                         </tr>
       
   328                         </tbody>
       
   329                       </table>
       
   330 
       
   331                     </td>
       
   332                     <td class="MessageBox_RightTrans">
       
   333                       <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
       
   334                         <tbody>
       
   335                         <tr>
       
   336                           <td class="MessageBox_TopRight"></td>
       
   337                         </tr>
       
   338                         <tr>
       
   339                           <td class="MessageBox_Right"></td>
       
   340                         </tr>
       
   341                         </tbody>
       
   342                       </table>
       
   343                     </td>
       
   344                   </tr>
       
   345                   <tr>
       
   346                     <td rowspan="2" class="MessageBox_BottomLeft">
       
   347                     </td>
       
   348                     <td class="MessageBox_BottomTrans MessageBox_bg">
       
   349                     </td>
       
   350                     <td rowspan="2" class="MessageBox_BottomRight">
       
   351                     </td>
       
   352                   </tr>
       
   353                   <tr>
       
   354                     <td class="MessageBox_Bottom">
       
   355                     </td>
       
   356                   </tr>
       
   357                   </tbody>
       
   358                 </table>
       
   359 
       
   360               </td>
       
   361               <td class="MessageBox_RightMargin"></td>
       
   362             </tr>
       
   363             <tr class="MessageBox_BottomMargin">
       
   364               <td class="MessageBox_LeftMargin"></td>
       
   365               <td></td>
       
   366                 <td class="MessageBox_RightMargin"></td>
       
   367               </tr>
       
   368             </tbody>
       
   369           </table>
       
   370         <!-- MessageBox END -->
       
   371         </div>
       
   372       </td>
       
   373     </tr>
       
   374   </table>
       
   375 
       
   376   <table cellspacing="0" cellpadding="0" width="100%">
       
   377 
       
   378     <tr>
       
   379       <td>
       
   380         <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_top">
       
   381           <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
       
   382 
       
   383             <tr>
       
   384               <td class="TableEdition_OneCell_width"></td>
       
   385               <td class="TableEdition_OneCell_width"></td>
       
   386               <td class="TableEdition_OneCell_width"></td>
       
   387               <td class="TableEdition_OneCell_width"></td>
       
   388               <td class="TableEdition_OneCell_width"></td>
       
   389               <td class="TableEdition_OneCell_width"></td>
       
   390             </tr>
       
   391 
       
   392             <!-- Text -->
       
   393             <tr><td colspan="6" class="LabelText" style="font-weight: bold;">
       
   394                 <span name="lblP" id="lblPText">Select expected payments that you want to put into payment proposal</span>
       
   395             </td></tr>
       
   396             <tr><td colspan="6" class="LabelText">
       
   397                 <span name="lblP" id="lblPText">Payment Proposal:</span>&nbsp;<span style="font-weight: bold;" id="paramProposalNo">xxPROP01</span>
       
   398             </td></tr>
       
   399             <tr><td colspan="6" class="LabelText">
       
   400                 <span name="lblP" id="lblPText">Payment Method:</span>&nbsp;<span style="font-weight: bold;" id="paramPaymentMethod">xxPROP01</span>
       
   401             </td></tr>
       
   402             <tr><td colspan="6" class="LabelText">
       
   403                 <span name="lblP" id="lblPText">Business Partner:</span>&nbsp;<span style="font-weight: bold;" id="paramBusinessPartner">xxPROP01</span>
       
   404             </td></tr>
       
   405             <tr id="dueDateInfoRow"><td colspan="6" class="LabelText">
       
   406                 <span name="lblP" id="lblPText">Due Date:</span>&nbsp;<span style="font-weight: bold;" id="paramDueDate">xxPROP01</span>
       
   407             </td></tr>
       
   408             <tr class="FieldGroup_BottomMargin"></tr>
       
   409 
       
   410             <!-- Row 1 -->
       
   411             <tr>
       
   412               <td class="Radio_Check_ContentCell" colspan="3">
       
   413                 <span class="Radio_Check_ContentCell Checkbox_container_NOT_Focused"><input type="checkbox" name="inpAlternativePaymentMethod" value="Y" id="paramAlternativePaymentMethod" onclick="loadGridList()"></input></span>
       
   414                 <span class="TitleCell LabelText"><label for="paramAlternativePaymentMethod">Show payments for alternative payment methods</label></span>
       
   415               </td>
       
   416               <td class="TableEdition_OneCell_width"></td>
       
   417               <td class="TableEdition_OneCell_width"></td>
       
   418               <td class="TableEdition_OneCell_width"></td>
       
   419             </tr>
       
   420             <tr class="FieldGroup_BottomMargin"></tr>
       
   421 
       
   422           </table>
       
   423         </div>
       
   424       </td>
       
   425     </tr>
       
   426     <tr>
       
   427       <td>
       
   428         <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client_middle">
       
   429           <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
       
   430             <tr>
       
   431               <td valign="top" class="Popup_Client_Selector_DataGrid_LeftMargin">
       
   432                 <table width="100%" border="0" cellspacing="0" cellpadding="0" id="tdleftSeparator">
       
   433                   <tr><td class="Popup_Client_Selector_DataGrid_LeftMargin"></td></tr>
       
   434                 </table>
       
   435               </td>
       
   436               <td valign="top">
       
   437                 <div id="client2" style="overflow: auto;">
       
   438                   <table cellspacing="0" cellpadding="0" width="100%" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;">
       
   439                     <thead>
       
   440                       <tr class="DataGrid_Body_Row">
       
   441                         <th class="DataGrid_Header_LineNoCell DataGrid_Body_Cell_CheckBox" width="25"> 
       
   442                           <input type="checkbox" name="inpAllLines" onclick="markAll(document.frmMain.inpScheduledPaymentDetailId, this.checked);updateAll();return true;"/>
       
   443                         </th>
       
   444                         <th class="DataGrid_Header_Cell" width="80">Order No.</th>
       
   445                         <th class="DataGrid_Header_Cell" width="80">Invoice No.</th>
       
   446                         <th class="DataGrid_Header_Cell" width="110">Payment Method</th>
       
   447                         <th class="DataGrid_Header_Cell" width="110">Business Partner</th>
       
   448                         <th class="DataGrid_Header_Cell" width="70">Due Date</th>
       
   449                         <th class="DataGrid_Header_Cell DataGrid_Header_Cell_Inverse" width="80">Invoiced Amt</th>
       
   450                         <th class="DataGrid_Header_Cell DataGrid_Header_Cell_Inverse" width="80">Expected Amt</th>
       
   451                         <th class="DataGrid_Header_Cell DataGrid_Header_Cell_Inverse" width="80">Outs. Amt</th>
       
   452                         <th class="DataGrid_Header_Cell DataGrid_Header_Cell_Inverse" width="110">Payment</th>
       
   453                         <th class="DataGrid_Header_Cell DataGrid_Header_Cell_Inverse" width="80">Difference</th>
       
   454                       </tr>
       
   455                     </thead>
       
   456                     <tbody id="sectionGrid">
       
   457                     </tbody>
       
   458                   </table>
       
   459                   <input type="hidden" id="inpTotal" value="" outputformat="euroEdition"/>
       
   460                   <input type="hidden" name="inpDifference" id="inpDifference" value="" outputformat="euroEdition"/>
       
   461                   <table cellspacing="0" cellpadding="0" width="100%" class="" style="table-layout: auto;">
       
   462                     <tr class="FieldGroup_BottomMargin"></tr>
       
   463                     <tr>
       
   464                       <td width="710" class="LabelText" style="text-align:right">Total</td>
       
   465                       <td width="110" class="LabelText" style="padding-left:10px;font-weight: bold;"><span id="paramTotal"></span></td>
       
   466                     </tr>
       
   467                     <tr id="sectionDifference">
       
   468                       <td class="LabelText" style="text-align:right">There is a difference of</td>
       
   469                       <td class="LabelText" style="padding-left:10px;font-weight: bold;"><span id="paramDifference"></span></td>
       
   470                     </tr>
       
   471                     <tr id="sectionDifferenceBox">
       
   472                       <td></td>
       
   473                       <td>
       
   474                         <table cellspacing="0" cellpadding="0" width="100%" class="" style="border: #888888 2px solid; table-layout: auto;">
       
   475                           <tr id="underpayment">
       
   476                             <td class="Radio_Check_ContentCell" width="20">
       
   477                               <input type="radio" name="inpDifferenceAction" value="underpayment" checked="checked"/>
       
   478                             </td>
       
   479                             <td><span class="LabelText">Leave this as an underpayment</span></td>
       
   480                           </tr>
       
   481                           <tr id="credit">
       
   482                             <td class="Radio_Check_ContentCell" width="20">
       
   483                               <input type="radio" name="inpDifferenceAction" value="credit"/>
       
   484                             </td>
       
   485                             <td><span class="LabelText">Leave the credit to be used later</span></td>
       
   486                           </tr>
       
   487                           <tr id="refund">
       
   488                             <td class="Radio_Check_ContentCell" width="20">
       
   489                               <input type="radio" name="inpDifferenceAction" value="refund"/>
       
   490                             </td>
       
   491                             <td><span class="LabelText">Refund amount to customer</span></td>
       
   492                           </tr>
       
   493                           <tr id="writeoff">
       
   494                             <td class="Radio_Check_ContentCell">
       
   495                               <input type="radio" name="inpDifferenceAction" value="writeoff"/>
       
   496                             </td>
       
   497                             <td><span class="LabelText">Write off the difference</span></td>
       
   498                           </tr>
       
   499                         </table>
       
   500                       </td>
       
   501                     </tr>
       
   502                   </table>
       
   503                 </div>
       
   504               </td>
       
   505               <td valign="top" class="Popup_Client_Selector_DataGrid_RightMargin">
       
   506                 <table width="100%" border="0" cellspacing="0" cellpadding="0" id="tdrightSeparator">
       
   507                   <tr><td class="Popup_Client_Selector_DataGrid_RightMargin"></td></tr>
       
   508                 </table>
       
   509               </td>
       
   510             </tr>
       
   511             
       
   512           </table>
       
   513         </div>
       
   514       </td>
       
   515     </tr>
       
   516     
       
   517     <tr>
       
   518       <td>
       
   519         <div class="Popup_ContentPane_Client" style="overflow: auto; height:50px;" id="client_bottom">
       
   520           <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
       
   521 
       
   522             <tr>
       
   523               <td class="TableEdition_OneCell_width"></td>
       
   524               <td class="TableEdition_OneCell_width"></td>
       
   525               <td class="TableEdition_OneCell_width"></td>
       
   526               <td class="TableEdition_OneCell_width"></td>
       
   527               <td class="TableEdition_OneCell_width"></td>
       
   528               <td class="TableEdition_OneCell_width"></td>
       
   529             </tr>
       
   530             <tr>
       
   531               <td></td>
       
   532               <td></td>
       
   533               <td class="Button_RightAlign_ContentCell">
       
   534                 <div>
       
   535                   <button type="button" 
       
   536                     id="buttonProcess"
       
   537                     class="ButtonLink" 
       
   538                     onclick="submitThisPage('SAVE');return false;"
       
   539                     onfocus="buttonEvent('onfocus', this); window.status='Create'; return true;"
       
   540                     onblur="buttonEvent('onblur', this);"
       
   541                     onkeyup="buttonEvent('onkeyup', this);"
       
   542                     onkeydown="buttonEvent('onkeydown', this);"
       
   543                     onkeypress="buttonEvent('onkeypress', this);"
       
   544                     onmouseup="buttonEvent('onmouseup', this);"
       
   545                     onmousedown="buttonEvent('onmousedown', this);"
       
   546                     onmouseover="buttonEvent('onmouseover', this); window.status='Create'; return true;"
       
   547                     onmouseout="buttonEvent('onmouseout', this);">
       
   548                     <table class="Button">
       
   549                       <tr>
       
   550                         <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="Process" title="Process" src="../../../../../web/images/blank.gif" border="0" /></td>
       
   551                         <td class="Button_text Button_width">Process</td>
       
   552                         <td class="Button_right"></td>
       
   553                       </tr>
       
   554                     </table>
       
   555                   </button>
       
   556                 </div>
       
   557               </td>
       
   558               <td class="Button_LeftAlign_ContentCell">
       
   559                 <div>
       
   560                   <button type="button" 
       
   561                     id="buttonCancel" 
       
   562                     class="ButtonLink" 
       
   563                     onclick="closeThisPage();return false;"
       
   564                     onfocus="buttonEvent('onfocus', this); window.status='Cancel'; return true;"
       
   565                     onblur="buttonEvent('onblur', this);"
       
   566                     onkeyup="buttonEvent('onkeyup', this);"
       
   567                     onkeydown="buttonEvent('onkeydown', this);"
       
   568                     onkeypress="buttonEvent('onkeypress', this);"
       
   569                     onmouseup="buttonEvent('onmouseup', this);"
       
   570                     onmousedown="buttonEvent('onmousedown', this);"
       
   571                     onmouseover="buttonEvent('onmouseover', this); window.status='Cancel'; return true;"
       
   572                     onmouseout="buttonEvent('onmouseout', this);">
       
   573                     <table class="Button">
       
   574                       <tr>
       
   575                         <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Cancel" title="Cancel" src="../../../../../web/images/blank.gif" border="0" /></td>
       
   576                         <td class="Button_text Button_width">Cancel</td>
       
   577                         <td class="Button_right"></td>
       
   578                       </tr>
       
   579                     </table>
       
   580                   </button>
       
   581                 </div>
       
   582               </td>
       
   583               <td></td>
       
   584               <td></td>
       
   585             </tr>
       
   586           </table>
       
   587         </div>
       
   588       </td>
       
   589     </tr>
       
   590   </table>
       
   591 </form>
       
   592 </body>
       
   593 </html>