details:   /erp/devel/pi/rev/0e1a6b0259c3
changeset: 11521:0e1a6b0259c3
user:      Adrián Romero <adrianromero <at> openbravo.com>
date:      Wed Apr 06 17:03:53 2011 +0200
summary:   Fixes issue 0016457: Create Invoices from orders: Links are not 
working as expected.
It has been modified the link that opens the related sales order to follow the 
new UI. It has been modified also in the form Create shipments from orders

diffstat:

 src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html  |  9 
++++++++-
 src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html |  9 
++++++++-
 2 files changed, 16 insertions(+), 2 deletions(-)

diffs (52 lines):

diff -r a60b5a8e0b38 -r 0e1a6b0259c3 
src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html
--- a/src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html  Wed Apr 
06 13:57:59 2011 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/GenerateInvoicesmanual.html  Wed Apr 
06 17:03:53 2011 +0200
@@ -102,6 +102,13 @@
        function onResizeDo(){
                resizeArea();
        }
+       
+       function openSalesOrders(recordid) {
+               var myframe = getFrame('LayoutMDI') || top.opener;
+               if (myframe) {
+                       myframe.OB.Utilities.openDirectTab('186', recordid);
+               }
+       }
        </script>
 </head>
 <body onload="onLoadDo();" onresize="onResizeDo();" leftmargin="0" 
topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
@@ -394,7 +401,7 @@
               </td>
               <td class="DataGrid_Body_Cell" id="fieldAdorgname">xxFrilac</td>
               <td class="DataGrid_Body_Cell" id="fieldCdoctypename">Standard 
order</td>
-              <td class="DataGrid_Body_Cell"> <a href="#" 
onclick="submitCommandFormParameter('DIRECT', document.frmMain.inpcOrderId, 
'xx', false, document.frmMain, '../SalesOrder/Header_Relation.html', null, 
false, true);return false;" onmouseover="window.status='Sales Order';return 
true;" onmouseout="window.status='';return true;" class="Link" id="fieldId"> 
+              <td class="DataGrid_Body_Cell"> <a href="#" 
onclick="openSalesOrders('xx');return false;" onmouseover="window.status='Sales 
Order';return true;" onmouseout="window.status='';return true;" class="Link" 
id="fieldId"> 
                 <span id="fieldDocumentno">xx24/10/2004</span></a></td>
               <td class="DataGrid_Body_Cell" 
id="fieldCbpartnername">xxHuesker</td>
               <td class="DataGrid_Body_Cell" 
id="fieldDateordered">xx12/03/2004</td>
diff -r a60b5a8e0b38 -r 0e1a6b0259c3 
src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html
--- a/src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html Wed Apr 
06 13:57:59 2011 +0200
+++ b/src/org/openbravo/erpCommon/ad_forms/GenerateShipmentsmanual.html Wed Apr 
06 17:03:53 2011 +0200
@@ -99,6 +99,13 @@
        function onResizeDo(){
                resizeArea();
        }
+       
+    function openSalesOrders(recordid) {
+        var myframe = getFrame('LayoutMDI') || top.opener;
+        if (myframe) {
+            myframe.OB.Utilities.openDirectTab('186', recordid);
+        }
+    }  
        </script>
 </head>
 <body onload="onLoadDo();" onresize="onResizeDo();" leftmargin="0" 
topmargin="0" marginwidth="0" marginheight="0" id="paramMessage">
@@ -376,7 +383,7 @@
               <td class="DataGrid_Body_LineNoCell"><span 
class="Checkbox_container_NOT_Focused"><input type="checkbox" name="inpOrder" 
value="" id="fieldCOrderId"></input></span></td>
               <td class="DataGrid_Body_Cell" id="fieldAdorgname">xxFrilac</td>
               <td class="DataGrid_Body_Cell" id="fieldCdoctypename">xxStandard 
order</td>
-              <td class="DataGrid_Body_Cell"> <a href="#" 
onclick="submitCommandFormParameter('DIRECT', document.frmMain.inpcOrderId, 
'xx', false, document.frmMain, '../SalesOrder/Header_Relation.html', null, 
false, true);return false;" onmouseover="window.status='Sales Order';return 
true;" onmouseout="window.status='';return true;" class="Link" id="fieldId"> 
+              <td class="DataGrid_Body_Cell"> <a href="#" 
onclick="openSalesOrders('xx');return false;" onmouseover="window.status='Sales 
Order';return true;" onmouseout="window.status='';return true;" class="Link" 
id="fieldId"> 
                 <span id="fieldDocumentno">xx24/10/2004</span></a></td>
               <td class="DataGrid_Body_Cell" 
id="fieldCbpartnername">xxHuesker</td>
               <td class="DataGrid_Body_Cell" 
id="fieldDateordered">xx12/03/2004</td>

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to