fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [13756]


From: Nelson Guerra
Subject: [Fmsystem-commits] [13756]
Date: Fri, 21 Aug 2015 00:04:17 +0000

Revision: 13756
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=13756
Author:   nelson224
Date:     2015-08-21 00:04:16 +0000 (Fri, 21 Aug 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/rental/js/rental/contract.edit.js

Modified: branches/dev-syncromind/rental/js/rental/contract.edit.js
===================================================================
--- branches/dev-syncromind/rental/js/rental/contract.edit.js   2015-08-21 
00:03:47 UTC (rev 13755)
+++ branches/dev-syncromind/rental/js/rental/contract.edit.js   2015-08-21 
00:04:16 UTC (rev 13756)
@@ -10,6 +10,14 @@
 var link_included_price_items = null;
 var set_price_data = 0;
 
+var set_invoice_data = 0;
+
+function formatterPrice (key, oData) 
+{
+       var amount = $.number( oData[key], decimalPlaces, decimalSeparator, 
thousandsSeparator ) + ' ' + currency_suffix;
+       return amount;
+}
+       
 $(document).ready(function()
 {
        $("#date_start").change(function(){
@@ -93,6 +101,14 @@
        
        
/******************************************************************************/
        
+       $('#invoice_id').change( function() 
+       {
+               oTable7.dataTableSettings[7]['ajax']['data']['invoice_id'] = 
$('#invoice_id').val();
+               JqueryPortico.updateinlineTableHelper(oTable7);
+       });     
+       
+       
/******************************************************************************/
+       
        get_composite_data = function()
        {
                if (set_composite_data  === 0)
@@ -137,6 +153,17 @@
                        set_price_data = 1;
                }
        };
+       
+       initial_invoice_data = function()
+       {
+               if (set_invoice_data  === 0)
+               {
+                       
oTable7.dataTableSettings[7]['ajax']['data']['invoice_id'] = 
$('#invoice_id').val();
+                       JqueryPortico.updateinlineTableHelper(oTable7);
+
+                       set_invoice_data = 1;
+               }
+       };
 });
 
 
/******************************************************************************/
@@ -379,3 +406,36 @@
 
        }, data, 'POST', 'JSON');
 };
+
+deleteNotification = function(oArgs, parameters){
+    
+       var oTT = TableTools.fnGetInstance( 'datatable-container_9' );
+       var selected = oTT.fnGetSelectedData();
+
+       if (selected.length == 0){
+               alert('None selected');
+               return false;
+       }
+
+       var data = {};
+
+       $.each(parameters.parameter, function( i, val ) {
+               data[val.name] = {};
+       });                                                                     
                                                                
+
+       var n = 0;
+       for ( var n = 0; n < selected.length; ++n )
+       {
+               $.each(parameters.parameter, function( i, val ) {
+                       data[val.name][n] = selected[n][val.source];
+               });             
+       }
+
+       var requestUrl = phpGWLink('index.php', oArgs);
+
+       JqueryPortico.execute_ajax(requestUrl, function(result){
+
+               oTable9.fnDraw();
+
+       }, data, 'POST', 'JSON');
+};




reply via email to

[Prev in Thread] Current Thread [Next in Thread]